From 005f5eae2f28e3b442cc25bf41610e53582a1159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 18 Feb 2024 09:51:44 +0700 Subject: [PATCH] xerces-c: update to 3.2.5. --- .../patches/fix-configure-cross.patch | 52 +++++++++++++++++-- srcpkgs/xerces-c/template | 6 +-- 2 files changed, 51 insertions(+), 7 deletions(-) diff --git a/srcpkgs/xerces-c/patches/fix-configure-cross.patch b/srcpkgs/xerces-c/patches/fix-configure-cross.patch index 7608d142f71e6..4a0b73c0eccda 100644 --- a/srcpkgs/xerces-c/patches/fix-configure-cross.patch +++ b/srcpkgs/xerces-c/patches/fix-configure-cross.patch @@ -3,9 +3,9 @@ make cross compiling possible again. The results are all true for glibc and musl libc, thus unconditionally add the corresponding defines via AC_DEFINE_UNQUOTED. ---- a/configure.ac 2017-08-06 20:09:44.000000000 +0200 -+++ b/configure.ac 2017-09-01 14:22:45.842676418 +0200 -@@ -174,69 +174,9 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -208,113 +208,9 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#in ] ) @@ -48,6 +48,28 @@ the corresponding defines via AC_DEFINE_UNQUOTED. - [ - AC_MSG_RESULT([no]) - AC_DEFINE_UNQUOTED([HAVE_WCSRTOMBS], 0, [Define to 1 if you have the `wcsrtombs' function.]) +- ], +- [ +- AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include +- #include ]], +- [[ +- mbstate_t st; +- memset(&st, 0, sizeof(st)); +- char buffer[32]; +- const wchar_t* src=L"help"; +- wcsrtombs(buffer, &src, 32, &st); +- if(src==0) +- return 0; +- else +- return 1;]])], +- [ +- AC_MSG_RESULT([yes]) +- AC_DEFINE_UNQUOTED([HAVE_WCSRTOMBS], 1, [Define to 1 if you have the `wcsrtombs' function.]) +- ], +- [ +- AC_MSG_RESULT([no]) +- AC_DEFINE_UNQUOTED([HAVE_WCSRTOMBS], 0, [Define to 1 if you have the `wcsrtombs' function.]) +- ]) - ] - ) -AC_MSG_CHECKING([for mbsrtowcs]) @@ -70,7 +92,29 @@ the corresponding defines via AC_DEFINE_UNQUOTED. - [ - AC_MSG_RESULT([no]) - AC_DEFINE_UNQUOTED([HAVE_MBSRTOWCS], 0, [Define to 1 if you have the `mbsrtowcs' function.]) -- ] +- ], +- [ +- AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include +- #include ]], +- [[ +- mbstate_t st; +- memset(&st, 0, sizeof(st)); +- wchar_t buffer[32]; +- const char* src="help"; +- mbsrtowcs(buffer, &src, 32, &st); +- if(src==0) +- return 0; +- else +- return 1;]])], +- [ +- AC_MSG_RESULT([yes]) +- AC_DEFINE_UNQUOTED([HAVE_MBSRTOWCS], 1, [Define to 1 if you have the `mbsrtowcs' function.]) +- ], +- [ +- AC_MSG_RESULT([no]) +- AC_DEFINE_UNQUOTED([HAVE_MBSRTOWCS], 0, [Define to 1 if you have the `mbsrtowcs' function.]) +- ]) +- ] - ) +AC_DEFINE_UNQUOTED([HAVE_MBRLEN], 1, [Define to 1 if you have the `mbrlen' function.]) +AC_DEFINE_UNQUOTED([HAVE_WCSRTOMBS], 1, [Define to 1 if you have the `wcsrtombs' function.]) diff --git a/srcpkgs/xerces-c/template b/srcpkgs/xerces-c/template index 1ac8de6b568be..9da01274b50f9 100644 --- a/srcpkgs/xerces-c/template +++ b/srcpkgs/xerces-c/template @@ -1,7 +1,7 @@ # Template file for 'xerces-c' pkgname=xerces-c -version=3.2.3 -revision=8 +version=3.2.5 +revision=1 build_style=gnu-configure hostmakedepends="automake libtool pkg-config" makedepends="libcurl-devel icu-devel" @@ -11,7 +11,7 @@ maintainer="Orphaned " license="Apache-2.0" homepage="http://xerces.apache.org/xerces-c/" distfiles="http://archive.apache.org/dist/xerces/c/3/sources/${pkgname}-${version}.tar.bz2" -checksum=45c2329e684405f2b8854ecbddfb8d5b055cdf0fe4d35736cc352c504989bbb6 +checksum=1db4028c9b7f1f778efbf4a9462d65e13f9938f2c22f9e9994e12c49ba97e252 pre_configure() { autoreconf -fi