python-bsddb3: don't set runtime_library_dirs

Not supported on Windows

In our stdlib distutils it will end up using rpath, which clang errors out on,
and in upstream distutils there is a PR pending making it a proper error:
https://github.com/pypa/distutils/pull/150
This commit is contained in:
Christoph Reiter
2022-06-12 10:04:28 +02:00
parent b68948ca73
commit ba355ea033
2 changed files with 16 additions and 3 deletions

View File

@@ -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

View File

@@ -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,
)],