From ee6d68a0491082333ad2c2bc613cc86a5e65904a Mon Sep 17 00:00:00 2001 From: mgondan Date: Sat, 21 Dec 2024 13:10:17 +0100 Subject: [PATCH] swi-prolog: update to 9.2.9 (#22855) --- mingw-w64-swi-prolog/01-mqi-specify-encoding.patch | 12 ------------ mingw-w64-swi-prolog/PKGBUILD | 13 +++---------- 2 files changed, 3 insertions(+), 22 deletions(-) delete mode 100644 mingw-w64-swi-prolog/01-mqi-specify-encoding.patch diff --git a/mingw-w64-swi-prolog/01-mqi-specify-encoding.patch b/mingw-w64-swi-prolog/01-mqi-specify-encoding.patch deleted file mode 100644 index 66b87764b9ff6..0000000000000 --- a/mingw-w64-swi-prolog/01-mqi-specify-encoding.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- swipl-9.2.8/packages/mqi/python/test_prologserver.py 2024-08-26 18:00:12.000000000 +0200 -+++ swipl-9.2.8/packages/mqi/python/test_prologserver.py 2024-09-04 22:30:28.330505000 +0200 -@@ -120,7 +120,7 @@ - if os.name == "nt": - call = "TASKLIST", "/FI", "imagename eq %s" % process_name + ".exe" - # use buildin check_output right away -- output = subprocess.check_output(call).decode() -+ output = subprocess.check_output(call).decode(encoding='UTF-8', errors='replace') - # check each line for process name - count = 0 - for line in output.strip().split("\r\n"): - diff --git a/mingw-w64-swi-prolog/PKGBUILD b/mingw-w64-swi-prolog/PKGBUILD index 1ffeadf02f142..ac837308c2b61 100644 --- a/mingw-w64-swi-prolog/PKGBUILD +++ b/mingw-w64-swi-prolog/PKGBUILD @@ -3,7 +3,7 @@ _realname=swi-prolog pkgbase=mingw-w64-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}-full" "${MINGW_PACKAGE_PREFIX}-${_realname}-core" "${MINGW_PACKAGE_PREFIX}-${_realname}-packages" "${MINGW_PACKAGE_PREFIX}-${_realname}-archive" "${MINGW_PACKAGE_PREFIX}-${_realname}-bdb" "${MINGW_PACKAGE_PREFIX}-${_realname}-pcre2" "${MINGW_PACKAGE_PREFIX}-${_realname}-yaml" "${MINGW_PACKAGE_PREFIX}-${_realname}-ssl" "${MINGW_PACKAGE_PREFIX}-${_realname}-x" "${MINGW_PACKAGE_PREFIX}-${_realname}-python" "${MINGW_PACKAGE_PREFIX}-${_realname}-doc" "${MINGW_PACKAGE_PREFIX}-${_realname}-examples" "${MINGW_PACKAGE_PREFIX}-${_realname}-tests") -pkgver=9.2.8 +pkgver=9.2.9 pkgrel=1 pkgdesc="Prolog environment (mingw-w64)" arch=(any) @@ -28,15 +28,8 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cc" "${MINGW_PACKAGE_PREFIX}-openssl" "${MINGW_PACKAGE_PREFIX}-openjpeg2" "${MINGW_PACKAGE_PREFIX}-python") -source=("https://www.swi-prolog.org/download/stable/src/swipl-${pkgver}.tar.gz" - "01-mqi-specify-encoding.patch") -sha256sums=('b331637a57c913c49edcfcb10ddcf6c031278ce93d2411d54542778531abb5c7' - 'b1e2341590c46d3bcc2e4b7ad85645a91a5979d7aa6ad39e6899c9c3fbdf2f94') - -prepare() { - cd ${srcdir}/swipl-${pkgver} - patch -p1 < ${srcdir}/01-mqi-specify-encoding.patch -} +source=("https://www.swi-prolog.org/download/stable/src/swipl-${pkgver}.tar.gz") +sha256sums=('53f428e2d9bbdf30e53b06c9c42def9a13ff82fc36a111d410fc8b0bc889ee2d') build() { mkdir -p "${srcdir}/build-${MSYSTEM}" && cd "${srcdir}/build-${MSYSTEM}"