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:
@@ -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
|
||||
|
||||
10
mingw-w64-python-bsddb3/unsupported-runtime-dirs.patch
Normal file
10
mingw-w64-python-bsddb3/unsupported-runtime-dirs.patch
Normal 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,
|
||||
)],
|
||||
Reference in New Issue
Block a user