Package Details: mingw-w64-expat 2.6.2-1

Git Clone URL: https://aur.archlinux.org/mingw-w64-expat.git (read-only, click to copy)
Package Base: mingw-w64-expat
Description: An XML parser library (mingw-w64)
Upstream URL: http://expat.sourceforge.net
Licenses: custom
Submitter: Schala
Maintainer: drakkan
Last Packager: drakkan
Votes: 31
Popularity: 0.000000
First Submitted: 2012-08-06 08:29 (UTC)
Last Updated: 2024-03-14 10:20 (UTC)

Latest Comments

1 2 3 Next › Last »

Kostin_Pavel commented on 2022-11-03 08:10 (UTC)

Please update PKGBUILD to the following: pkgname=mingw-w64-expat pkgver=2.5.0 pkgrel=1 pkgdesc="An XML parser library (mingw-w64)" arch=(any) url="http://expat.sourceforge.net" license=("custom") makedepends=(mingw-w64-configure) depends=(mingw-w64-crt) options=(!strip !buildflags staticlibs) source=("https://sourceforge.net/projects/expat/files/expat/${pkgver}/expat-${pkgver}.tar.bz2/download")

sha512sums=('22fd904d75aab7506a85c03519b9cf79e44898c8e1ba6abf6cb7f95de71b8e63a7e2d5cf4395e3627d46035ea29342b3e631a8809fef8aad3f59976dc075ad17')

_architectures="i686-w64-mingw32 x86_64-w64-mingw32"

build() { cd "${srcdir}/expat-${pkgver}" for _arch in ${_architectures}; do mkdir -p build-${_arch} && pushd build-${_arch} ${_arch}-configure --without-docbook --without-examples --without-tests --without-xmlwf .. make popd done }

package() { for _arch in ${_architectures}; do cd "${srcdir}/expat-${pkgver}/build-${_arch}" make DESTDIR="$pkgdir" install ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/.dll ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/.a rm -r "$pkgdir/usr/${_arch}/share" done }

andylinpersonal commented on 2022-02-19 21:11 (UTC)

Link to source package is renamed and broken now due to known vulnerablility.

http://downloads.sourceforge.net/expat/expat-2.4.2.tar.bz2 becomes https://downloads.sourceforge.net/expat/expat-2.4.2-RENAMED-VULNERABLE-PLEASE-USE-2.4.5-INSTEAD.tar.bz2

newmentos commented on 2020-12-03 17:13 (UTC) (edited on 2020-12-03 17:13 (UTC) by newmentos)

/usr/bin/ld: unrecognized option '--enable-auto-image-base'

tuxsavvy commented on 2018-08-31 10:24 (UTC)

docbook2x is now an optional dep(endency). Build log without docbook2x:

==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found expat-2.2.6.tar.bz2
==> Validating source files with sha256sums...
    expat-2.2.6.tar.bz2 ... Passed
==> Extracting sources...
  -> Extracting expat-2.2.6.tar.bz2 with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
~/.cache/aurman/mingw-w64-expat/src/expat-2.2.6/build-i686-w64-mingw32 ~/.cache/aurman/mingw-w64-expat/src/expat-2.2.6
configure: WARNING: you should use --build, --host, --target
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i686-w64-mingw32-strip... i686-w64-mingw32-strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... i686-w64-mingw32
checking for i686-w64-mingw32-as... i686-w64-mingw32-as
checking for i686-w64-mingw32-dlltool... i686-w64-mingw32-dlltool
checking for i686-w64-mingw32-objdump... i686-w64-mingw32-objdump
checking how to print strings... printf
checking for style of include used by make... GNU
checking for i686-w64-mingw32-gcc... i686-w64-mingw32-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-w64-mingw32-gcc accepts -g... yes
checking for i686-w64-mingw32-gcc option to accept ISO C89... none needed
checking whether i686-w64-mingw32-gcc understands -c and -o together... yes
checking dependency style of i686-w64-mingw32-gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by i686-w64-mingw32-gcc... /usr/i686-w64-mingw32/bin/ld
checking if the linker (/usr/i686-w64-mingw32/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/i686-w64-mingw32-nm -B
checking the name lister (/usr/bin/i686-w64-mingw32-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to i686-w64-mingw32 format... func_convert_file_nix_to_w32
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/i686-w64-mingw32/bin/ld option to reload object files... -r
checking for i686-w64-mingw32-objdump... (cached) i686-w64-mingw32-objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for i686-w64-mingw32-dlltool... (cached) i686-w64-mingw32-dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for i686-w64-mingw32-ar... i686-w64-mingw32-ar
checking for archiver @FILE support... @
checking for i686-w64-mingw32-strip... (cached) i686-w64-mingw32-strip
checking for i686-w64-mingw32-ranlib... i686-w64-mingw32-ranlib
checking command to parse /usr/bin/i686-w64-mingw32-nm -B output from i686-w64-mingw32-gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for i686-w64-mingw32-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... i686-w64-mingw32-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if i686-w64-mingw32-gcc supports -fno-rtti -fno-exceptions... no
checking for i686-w64-mingw32-gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if i686-w64-mingw32-gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if i686-w64-mingw32-gcc static flag -static works... yes
checking if i686-w64-mingw32-gcc supports -c -o file.o... yes
checking if i686-w64-mingw32-gcc supports -c -o file.o... (cached) yes
checking whether the i686-w64-mingw32-gcc linker (/usr/i686-w64-mingw32/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for i686-w64-mingw32-gcc option to accept ISO C99... none needed
checking for i686-w64-mingw32-g++... i686-w64-mingw32-g++
checking whether we are using the GNU C++ compiler... yes
checking whether i686-w64-mingw32-g++ accepts -g... yes
checking dependency style of i686-w64-mingw32-g++... gcc3
checking how to run the C++ preprocessor... i686-w64-mingw32-g++ -E
checking for ld used by i686-w64-mingw32-g++... /usr/i686-w64-mingw32/bin/ld
checking if the linker (/usr/i686-w64-mingw32/bin/ld) is GNU ld... yes
checking whether the i686-w64-mingw32-g++ linker (/usr/i686-w64-mingw32/bin/ld) supports shared libraries... yes
checking for i686-w64-mingw32-g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if i686-w64-mingw32-g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if i686-w64-mingw32-g++ static flag -static works... yes
checking if i686-w64-mingw32-g++ supports -c -o file.o... yes
checking if i686-w64-mingw32-g++ supports -c -o file.o... (cached) yes
checking whether the i686-w64-mingw32-g++ linker (/usr/i686-w64-mingw32/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether i686-w64-mingw32-gcc accepts -fexceptions... yes
checking for ANSI C header files... (cached) yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for memmove... yes
checking for bcopy... no
checking for arc4random_buf (BSD or libbsd)... no
checking for arc4random (BSD, macOS or libbsd)... no
checking for getrandom (Linux 3.17+, glibc 2.25+)... no
checking for syscall SYS_getrandom (Linux 3.17+)... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking for off_t... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... no
checking for docbook2x-man... no
checking for db2x_docbook2man... no
checking for docbook2man... docbook2man
configure: error: Your local docbook2man was found to work with SGML rather
  than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point
  configure to command docbook2x-man of docbook2X.
  Or use DOCBOOK_TO_MAN="xmlto man --skip-validation" if you have xmlto around.
  You can also configure using --without-docbook if you can do without a man
  page for xmlwf.
==> ERROR: A failure occurred in build().
    Aborting...

calegria commented on 2017-08-30 01:48 (UTC)

I confirm that the package can be built by just changing the version to 2.2.4, and changing the line rm "$pkgdir/usr/${_arch}/bin/xmlwf" to rm "$pkgdir/usr/${_arch}/bin/xmlwf.exe" in the package() function

ricco19 commented on 2015-07-17 14:20 (UTC)

If anyone is having issues it's because sourceforge is having issues. I had to change the source mirror to this: http://pkgs.fedoraproject.org/repo/pkgs/expat/expat-2.1.0.tar.gz/dd7dab7a5fea97d2a6a43f511449b7cd/expat-2.1.0.tar.gz

xantares commented on 2015-02-26 14:12 (UTC)

hello, could you use the mingw-w64-configure package to pass the right compilation flags ?

carstene1ns commented on 2014-11-22 13:07 (UTC)

This executes the xmlwf executable with wine once build (if installed). Consider to disable building it, as it is deleted afterwards anyway.