diff --git a/mingw-w64-python-bsddb3/PKGBUILD b/mingw-w64-python-bsddb3/PKGBUILD index ee0e64f3db..0076dd168c 100644 --- a/mingw-w64-python-bsddb3/PKGBUILD +++ b/mingw-w64-python-bsddb3/PKGBUILD @@ -7,7 +7,7 @@ provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}") pkgver=6.2.9 -pkgrel=3 +pkgrel=4 pkgdesc="Python bindings for Oracle Berkeley DB (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32') @@ -18,14 +18,17 @@ depends=("${MINGW_PACKAGE_PREFIX}-python" makedepends=("${MINGW_PACKAGE_PREFIX}-python3-setuptools" "${MINGW_PACKAGE_PREFIX}-cc") options=('staticlibs' 'strip' '!debug') source=("https://pypi.python.org/packages/source/b/bsddb3/${_realname}-${pkgver}.tar.gz" - db-6.0-support.patch) + db-6.0-support.patch + unsupported-runtime-dirs.patch) sha256sums=('70d05ec8dc568f42e70fc919a442e0daadc2a905a1cfb7ca77f549d49d6e7801' - 'b96b05360f9a86af62e4c644be0fffc368f755d89ce14e23a93a75442c570cd6') + 'b96b05360f9a86af62e4c644be0fffc368f755d89ce14e23a93a75442c570cd6' + '1f686654150ff23c485c34a63d664d537e4ac47316e1f0ef74a9644e27d77442') prepare() { plain "Patching setup files ..." cd "${srcdir}/${_realname}-${pkgver}" patch -p1 -i ${srcdir}/db-6.0-support.patch + patch -p1 -i ${srcdir}/unsupported-runtime-dirs.patch sed -i -e "s|if os.name == 'posix':|if os.name == 'nt':|g" setup{2,3}.py sed -i -e "s|elif os.name == 'nt':|elif os.name == 'FOO':|g" setup{2,3}.py diff --git a/mingw-w64-python-bsddb3/unsupported-runtime-dirs.patch b/mingw-w64-python-bsddb3/unsupported-runtime-dirs.patch new file mode 100644 index 0000000000..272470d69b --- /dev/null +++ b/mingw-w64-python-bsddb3/unsupported-runtime-dirs.patch @@ -0,0 +1,10 @@ +--- bsddb3-6.2.9/setup3.py.orig 2022-06-12 09:37:28.978102500 +0200 ++++ bsddb3-6.2.9/setup3.py 2022-06-12 10:00:04.408752300 +0200 +@@ -539,7 +539,6 @@ + depends = ['Modules/bsddb.h'], + include_dirs = [ incdir ], + library_dirs = [ libdir ], +- runtime_library_dirs = [ libdir ], + libraries = libname, + extra_link_args = lflags_arg, + )],