* [PR PATCH] libpwquality: enable python3 binding
@ 2019-09-04 8:53 voidlinux-github
2019-09-04 10:25 ` [PR PATCH] [Updated] [WIP] " voidlinux-github
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: voidlinux-github @ 2019-09-04 8:53 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 392 bytes --]
There is a new pull request by bra1nwave against master on the void-packages repository
https://github.com/bra1nwave/void-packages libpwquality
https://github.com/void-linux/void-packages/pull/14203
libpwquality: enable python3 binding
fixes https://github.com/void-linux/void-packages/issues/14184
A patch file from https://github.com/void-linux/void-packages/pull/14203.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libpwquality-14203.patch --]
[-- Type: text/x-diff, Size: 1580 bytes --]
From fcc468eec621b0d9863ede367d94353ffb7717a7 Mon Sep 17 00:00:00 2001
From: bra1nwave <brainwave@openmailbox.org>
Date: Wed, 4 Sep 2019 10:48:32 +0200
Subject: [PATCH] libpwquality: enable python3 binding
---
srcpkgs/libpwquality/template | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/srcpkgs/libpwquality/template b/srcpkgs/libpwquality/template
index 3093808c526..bd9a181c251 100644
--- a/srcpkgs/libpwquality/template
+++ b/srcpkgs/libpwquality/template
@@ -1,17 +1,16 @@
# Template file for 'libpwquality'
pkgname=libpwquality
version=1.4.0
-revision=1
+revision=2
build_style=gnu-configure
-configure_args="--disable-static --enable-pam --disable-python-bindings
- --with-securedir=/usr/lib/security"
+configure_args="--disable-static --enable-pam --with-securedir=/usr/lib/security"
hostmakedepends="libtool automake gettext-devel"
-makedepends="cracklib-devel pam-devel"
+makedepends="cracklib-devel pam-devel python3-devel"
conf_files="/etc/security/pwquality.conf"
short_desc="Library for password quality checking and generating random passwords"
maintainer="Orphaned <orphan@voidlinux.org>"
+license="GPL-2.0-or-later"
homepage="https://github.com/libpwquality/libpwquality"
-license="GPL-2"
distfiles="${homepage}/releases/download/libpwquality-${version}/libpwquality-${version}.tar.bz2"
checksum=1de6ff046cf2172d265a2cb6f8da439d894f3e4e8157b056c515515232fade6b
@@ -26,5 +25,6 @@ libpwquality-devel_package() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
+ vmove usr/share/man/man3
}
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Updated] [WIP] libpwquality: enable python3 binding
2019-09-04 8:53 [PR PATCH] libpwquality: enable python3 binding voidlinux-github
@ 2019-09-04 10:25 ` voidlinux-github
2019-09-04 10:25 ` voidlinux-github
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-09-04 10:25 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 403 bytes --]
There is an updated pull request by bra1nwave against master on the void-packages repository
https://github.com/bra1nwave/void-packages libpwquality
https://github.com/void-linux/void-packages/pull/14203
[WIP] libpwquality: enable python3 binding
fixes https://github.com/void-linux/void-packages/issues/14184
A patch file from https://github.com/void-linux/void-packages/pull/14203.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libpwquality-14203.patch --]
[-- Type: text/x-diff, Size: 1735 bytes --]
From b6cdd87613ab799b004f0133d7b37ebc31511d92 Mon Sep 17 00:00:00 2001
From: bra1nwave <brainwave@openmailbox.org>
Date: Wed, 4 Sep 2019 10:48:32 +0200
Subject: [PATCH] libpwquality: enable python3 binding
---
srcpkgs/libpwquality/template | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/srcpkgs/libpwquality/template b/srcpkgs/libpwquality/template
index 3093808c526..22c5ccd1931 100644
--- a/srcpkgs/libpwquality/template
+++ b/srcpkgs/libpwquality/template
@@ -1,20 +1,24 @@
# Template file for 'libpwquality'
pkgname=libpwquality
version=1.4.0
-revision=1
+revision=2
build_style=gnu-configure
-configure_args="--disable-static --enable-pam --disable-python-bindings
- --with-securedir=/usr/lib/security"
+configure_args="--disable-static --enable-pam --with-securedir=/usr/lib/security"
hostmakedepends="libtool automake gettext-devel"
-makedepends="cracklib-devel pam-devel"
+makedepends="cracklib-devel pam-devel python3-devel"
conf_files="/etc/security/pwquality.conf"
short_desc="Library for password quality checking and generating random passwords"
maintainer="Orphaned <orphan@voidlinux.org>"
+license="GPL-2.0-or-later"
homepage="https://github.com/libpwquality/libpwquality"
-license="GPL-2"
distfiles="${homepage}/releases/download/libpwquality-${version}/libpwquality-${version}.tar.bz2"
checksum=1de6ff046cf2172d265a2cb6f8da439d894f3e4e8157b056c515515232fade6b
+if [ "$CROSS_BUILD" ]; then
+ hostmakedepends+=" python3"
+ CFLAGS+=" -I${XBPS_CROSS_BASE}/${py3_inc}"
+fi
+
pre_configure() {
autoreconf -fi
}
@@ -26,5 +30,6 @@ libpwquality-devel_package() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
+ vmove usr/share/man/man3
}
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Updated] [WIP] libpwquality: enable python3 binding
2019-09-04 8:53 [PR PATCH] libpwquality: enable python3 binding voidlinux-github
2019-09-04 10:25 ` [PR PATCH] [Updated] [WIP] " voidlinux-github
@ 2019-09-04 10:25 ` voidlinux-github
2019-09-04 14:59 ` voidlinux-github
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-09-04 10:25 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 403 bytes --]
There is an updated pull request by bra1nwave against master on the void-packages repository
https://github.com/bra1nwave/void-packages libpwquality
https://github.com/void-linux/void-packages/pull/14203
[WIP] libpwquality: enable python3 binding
fixes https://github.com/void-linux/void-packages/issues/14184
A patch file from https://github.com/void-linux/void-packages/pull/14203.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libpwquality-14203.patch --]
[-- Type: text/x-diff, Size: 1735 bytes --]
From b6cdd87613ab799b004f0133d7b37ebc31511d92 Mon Sep 17 00:00:00 2001
From: bra1nwave <brainwave@openmailbox.org>
Date: Wed, 4 Sep 2019 10:48:32 +0200
Subject: [PATCH] libpwquality: enable python3 binding
---
srcpkgs/libpwquality/template | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/srcpkgs/libpwquality/template b/srcpkgs/libpwquality/template
index 3093808c526..22c5ccd1931 100644
--- a/srcpkgs/libpwquality/template
+++ b/srcpkgs/libpwquality/template
@@ -1,20 +1,24 @@
# Template file for 'libpwquality'
pkgname=libpwquality
version=1.4.0
-revision=1
+revision=2
build_style=gnu-configure
-configure_args="--disable-static --enable-pam --disable-python-bindings
- --with-securedir=/usr/lib/security"
+configure_args="--disable-static --enable-pam --with-securedir=/usr/lib/security"
hostmakedepends="libtool automake gettext-devel"
-makedepends="cracklib-devel pam-devel"
+makedepends="cracklib-devel pam-devel python3-devel"
conf_files="/etc/security/pwquality.conf"
short_desc="Library for password quality checking and generating random passwords"
maintainer="Orphaned <orphan@voidlinux.org>"
+license="GPL-2.0-or-later"
homepage="https://github.com/libpwquality/libpwquality"
-license="GPL-2"
distfiles="${homepage}/releases/download/libpwquality-${version}/libpwquality-${version}.tar.bz2"
checksum=1de6ff046cf2172d265a2cb6f8da439d894f3e4e8157b056c515515232fade6b
+if [ "$CROSS_BUILD" ]; then
+ hostmakedepends+=" python3"
+ CFLAGS+=" -I${XBPS_CROSS_BASE}/${py3_inc}"
+fi
+
pre_configure() {
autoreconf -fi
}
@@ -26,5 +30,6 @@ libpwquality-devel_package() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
+ vmove usr/share/man/man3
}
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Updated] [WIP] libpwquality: enable python3 binding
2019-09-04 8:53 [PR PATCH] libpwquality: enable python3 binding voidlinux-github
` (2 preceding siblings ...)
2019-09-04 14:59 ` voidlinux-github
@ 2019-09-04 14:59 ` voidlinux-github
2019-09-05 0:55 ` voidlinux-github
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-09-04 14:59 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 403 bytes --]
There is an updated pull request by bra1nwave against master on the void-packages repository
https://github.com/bra1nwave/void-packages libpwquality
https://github.com/void-linux/void-packages/pull/14203
[WIP] libpwquality: enable python3 binding
fixes https://github.com/void-linux/void-packages/issues/14184
A patch file from https://github.com/void-linux/void-packages/pull/14203.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libpwquality-14203.patch --]
[-- Type: text/x-diff, Size: 2730 bytes --]
From 1850b81ce30ce3dd4c165cc7c6f21c852adc1448 Mon Sep 17 00:00:00 2001
From: bra1nwave <brainwave@openmailbox.org>
Date: Wed, 4 Sep 2019 10:48:32 +0200
Subject: [PATCH] libpwquality: enable python3 binding
---
srcpkgs/libpwquality/patches/pythoncross.patch | 12 ++++++++++++
srcpkgs/libpwquality/template | 15 ++++++++++-----
2 files changed, 22 insertions(+), 5 deletions(-)
create mode 100644 srcpkgs/libpwquality/patches/pythoncross.patch
diff --git a/srcpkgs/libpwquality/patches/pythoncross.patch b/srcpkgs/libpwquality/patches/pythoncross.patch
new file mode 100644
index 00000000000..5e7ea7bd5d1
--- /dev/null
+++ b/srcpkgs/libpwquality/patches/pythoncross.patch
@@ -0,0 +1,12 @@
+--- python/Makefile.am.orig
++++ python/Makefile.am
+@@ -11,7 +11,7 @@
+ EXTRA_DIST = pwquality.c setup.py
+
+ all-local:
+- CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-lib=.
++ LDSHARED="${CC} -pthread -shared" CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-lib=.
+
+ install-exec-local:
+- CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py install --prefix=${DESTDIR}${prefix}
++ LDSHARED="${CC} -pthread -shared" CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py install --prefix=${DESTDIR}${prefix}
diff --git a/srcpkgs/libpwquality/template b/srcpkgs/libpwquality/template
index 3093808c526..22c5ccd1931 100644
--- a/srcpkgs/libpwquality/template
+++ b/srcpkgs/libpwquality/template
@@ -1,20 +1,24 @@
# Template file for 'libpwquality'
pkgname=libpwquality
version=1.4.0
-revision=1
+revision=2
build_style=gnu-configure
-configure_args="--disable-static --enable-pam --disable-python-bindings
- --with-securedir=/usr/lib/security"
+configure_args="--disable-static --enable-pam --with-securedir=/usr/lib/security"
hostmakedepends="libtool automake gettext-devel"
-makedepends="cracklib-devel pam-devel"
+makedepends="cracklib-devel pam-devel python3-devel"
conf_files="/etc/security/pwquality.conf"
short_desc="Library for password quality checking and generating random passwords"
maintainer="Orphaned <orphan@voidlinux.org>"
+license="GPL-2.0-or-later"
homepage="https://github.com/libpwquality/libpwquality"
-license="GPL-2"
distfiles="${homepage}/releases/download/libpwquality-${version}/libpwquality-${version}.tar.bz2"
checksum=1de6ff046cf2172d265a2cb6f8da439d894f3e4e8157b056c515515232fade6b
+if [ "$CROSS_BUILD" ]; then
+ hostmakedepends+=" python3"
+ CFLAGS+=" -I${XBPS_CROSS_BASE}/${py3_inc}"
+fi
+
pre_configure() {
autoreconf -fi
}
@@ -26,5 +30,6 @@ libpwquality-devel_package() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
+ vmove usr/share/man/man3
}
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Updated] [WIP] libpwquality: enable python3 binding
2019-09-04 8:53 [PR PATCH] libpwquality: enable python3 binding voidlinux-github
2019-09-04 10:25 ` [PR PATCH] [Updated] [WIP] " voidlinux-github
2019-09-04 10:25 ` voidlinux-github
@ 2019-09-04 14:59 ` voidlinux-github
2019-09-04 14:59 ` voidlinux-github
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-09-04 14:59 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 403 bytes --]
There is an updated pull request by bra1nwave against master on the void-packages repository
https://github.com/bra1nwave/void-packages libpwquality
https://github.com/void-linux/void-packages/pull/14203
[WIP] libpwquality: enable python3 binding
fixes https://github.com/void-linux/void-packages/issues/14184
A patch file from https://github.com/void-linux/void-packages/pull/14203.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libpwquality-14203.patch --]
[-- Type: text/x-diff, Size: 2730 bytes --]
From 1850b81ce30ce3dd4c165cc7c6f21c852adc1448 Mon Sep 17 00:00:00 2001
From: bra1nwave <brainwave@openmailbox.org>
Date: Wed, 4 Sep 2019 10:48:32 +0200
Subject: [PATCH] libpwquality: enable python3 binding
---
srcpkgs/libpwquality/patches/pythoncross.patch | 12 ++++++++++++
srcpkgs/libpwquality/template | 15 ++++++++++-----
2 files changed, 22 insertions(+), 5 deletions(-)
create mode 100644 srcpkgs/libpwquality/patches/pythoncross.patch
diff --git a/srcpkgs/libpwquality/patches/pythoncross.patch b/srcpkgs/libpwquality/patches/pythoncross.patch
new file mode 100644
index 00000000000..5e7ea7bd5d1
--- /dev/null
+++ b/srcpkgs/libpwquality/patches/pythoncross.patch
@@ -0,0 +1,12 @@
+--- python/Makefile.am.orig
++++ python/Makefile.am
+@@ -11,7 +11,7 @@
+ EXTRA_DIST = pwquality.c setup.py
+
+ all-local:
+- CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-lib=.
++ LDSHARED="${CC} -pthread -shared" CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-lib=.
+
+ install-exec-local:
+- CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py install --prefix=${DESTDIR}${prefix}
++ LDSHARED="${CC} -pthread -shared" CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py install --prefix=${DESTDIR}${prefix}
diff --git a/srcpkgs/libpwquality/template b/srcpkgs/libpwquality/template
index 3093808c526..22c5ccd1931 100644
--- a/srcpkgs/libpwquality/template
+++ b/srcpkgs/libpwquality/template
@@ -1,20 +1,24 @@
# Template file for 'libpwquality'
pkgname=libpwquality
version=1.4.0
-revision=1
+revision=2
build_style=gnu-configure
-configure_args="--disable-static --enable-pam --disable-python-bindings
- --with-securedir=/usr/lib/security"
+configure_args="--disable-static --enable-pam --with-securedir=/usr/lib/security"
hostmakedepends="libtool automake gettext-devel"
-makedepends="cracklib-devel pam-devel"
+makedepends="cracklib-devel pam-devel python3-devel"
conf_files="/etc/security/pwquality.conf"
short_desc="Library for password quality checking and generating random passwords"
maintainer="Orphaned <orphan@voidlinux.org>"
+license="GPL-2.0-or-later"
homepage="https://github.com/libpwquality/libpwquality"
-license="GPL-2"
distfiles="${homepage}/releases/download/libpwquality-${version}/libpwquality-${version}.tar.bz2"
checksum=1de6ff046cf2172d265a2cb6f8da439d894f3e4e8157b056c515515232fade6b
+if [ "$CROSS_BUILD" ]; then
+ hostmakedepends+=" python3"
+ CFLAGS+=" -I${XBPS_CROSS_BASE}/${py3_inc}"
+fi
+
pre_configure() {
autoreconf -fi
}
@@ -26,5 +30,6 @@ libpwquality-devel_package() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
+ vmove usr/share/man/man3
}
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: libpwquality: enable python3 binding
2019-09-04 8:53 [PR PATCH] libpwquality: enable python3 binding voidlinux-github
` (3 preceding siblings ...)
2019-09-04 14:59 ` voidlinux-github
@ 2019-09-05 0:55 ` voidlinux-github
2019-09-05 7:59 ` [PR PATCH] [Updated] " voidlinux-github
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-09-05 0:55 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 213 bytes --]
New comment by Duncaen on void-packages repository
https://github.com/void-linux/void-packages/pull/14203#issuecomment-528149894
Comment:
Might be worth to move the python module into a sub package if possible.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Updated] libpwquality: enable python3 binding
2019-09-04 8:53 [PR PATCH] libpwquality: enable python3 binding voidlinux-github
` (5 preceding siblings ...)
2019-09-05 7:59 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-09-05 7:59 ` voidlinux-github
2019-09-05 8:00 ` voidlinux-github
2019-09-06 6:43 ` [PR PATCH] [Merged]: " voidlinux-github
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-09-05 7:59 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 397 bytes --]
There is an updated pull request by bra1nwave against master on the void-packages repository
https://github.com/bra1nwave/void-packages libpwquality
https://github.com/void-linux/void-packages/pull/14203
libpwquality: enable python3 binding
fixes https://github.com/void-linux/void-packages/issues/14184
A patch file from https://github.com/void-linux/void-packages/pull/14203.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libpwquality-14203.patch --]
[-- Type: text/x-diff, Size: 4473 bytes --]
From 4ff80e46c4de634d3b4473c4f71cc561128a9a4b Mon Sep 17 00:00:00 2001
From: bra1nwave <brainwave@openmailbox.org>
Date: Wed, 4 Sep 2019 10:48:32 +0200
Subject: [PATCH 1/2] libpwquality: enable python3 binding
---
srcpkgs/libpwquality-python3 | 1 +
.../libpwquality/patches/pythoncross.patch | 12 ++++++++++
srcpkgs/libpwquality/template | 23 +++++++++++++++----
3 files changed, 31 insertions(+), 5 deletions(-)
create mode 120000 srcpkgs/libpwquality-python3
create mode 100644 srcpkgs/libpwquality/patches/pythoncross.patch
diff --git a/srcpkgs/libpwquality-python3 b/srcpkgs/libpwquality-python3
new file mode 120000
index 00000000000..db26e623f28
--- /dev/null
+++ b/srcpkgs/libpwquality-python3
@@ -0,0 +1 @@
+libpwquality
\ No newline at end of file
diff --git a/srcpkgs/libpwquality/patches/pythoncross.patch b/srcpkgs/libpwquality/patches/pythoncross.patch
new file mode 100644
index 00000000000..5e7ea7bd5d1
--- /dev/null
+++ b/srcpkgs/libpwquality/patches/pythoncross.patch
@@ -0,0 +1,12 @@
+--- python/Makefile.am.orig
++++ python/Makefile.am
+@@ -11,7 +11,7 @@
+ EXTRA_DIST = pwquality.c setup.py
+
+ all-local:
+- CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-lib=.
++ LDSHARED="${CC} -pthread -shared" CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-lib=.
+
+ install-exec-local:
+- CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py install --prefix=${DESTDIR}${prefix}
++ LDSHARED="${CC} -pthread -shared" CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py install --prefix=${DESTDIR}${prefix}
diff --git a/srcpkgs/libpwquality/template b/srcpkgs/libpwquality/template
index 3093808c526..9a90dcf3acb 100644
--- a/srcpkgs/libpwquality/template
+++ b/srcpkgs/libpwquality/template
@@ -1,20 +1,24 @@
# Template file for 'libpwquality'
pkgname=libpwquality
version=1.4.0
-revision=1
+revision=2
build_style=gnu-configure
-configure_args="--disable-static --enable-pam --disable-python-bindings
- --with-securedir=/usr/lib/security"
+configure_args="--disable-static --enable-pam --with-securedir=/usr/lib/security"
hostmakedepends="libtool automake gettext-devel"
-makedepends="cracklib-devel pam-devel"
+makedepends="cracklib-devel pam-devel python3-devel"
conf_files="/etc/security/pwquality.conf"
short_desc="Library for password quality checking and generating random passwords"
maintainer="Orphaned <orphan@voidlinux.org>"
+license="GPL-2.0-or-later"
homepage="https://github.com/libpwquality/libpwquality"
-license="GPL-2"
distfiles="${homepage}/releases/download/libpwquality-${version}/libpwquality-${version}.tar.bz2"
checksum=1de6ff046cf2172d265a2cb6f8da439d894f3e4e8157b056c515515232fade6b
+if [ "$CROSS_BUILD" ]; then
+ hostmakedepends+=" python3"
+ CFLAGS+=" -I${XBPS_CROSS_BASE}/${py3_inc}"
+fi
+
pre_configure() {
autoreconf -fi
}
@@ -26,5 +30,14 @@ libpwquality-devel_package() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
+ vmove usr/share/man/man3
+ }
+}
+
+libpwquality-python3_package() {
+ lib32disabled=yes
+ short_desc+=" - Python3 bindings"
+ pkg_install() {
+ vmove "usr/lib/python3*"
}
}
From 1375819255f1510a1baee455f832c3dcd7ccf531 Mon Sep 17 00:00:00 2001
From: bra1nwave <brainwave@openmailbox.org>
Date: Thu, 5 Sep 2019 09:56:35 +0200
Subject: [PATCH 2/2] gnome-passwordsafe: add missing runtime dependency
---
srcpkgs/gnome-passwordsafe/template | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gnome-passwordsafe/template b/srcpkgs/gnome-passwordsafe/template
index cec9f84e238..f310ce03a08 100644
--- a/srcpkgs/gnome-passwordsafe/template
+++ b/srcpkgs/gnome-passwordsafe/template
@@ -1,14 +1,15 @@
# Template file for 'gnome-passwordsafe'
pkgname=gnome-passwordsafe
version=3.32.0
-revision=1
+revision=2
archs=noarch
wrksrc="PasswordSafe-${version}"
build_style=meson
pycompile_module="passwordsafe"
hostmakedepends="glib-devel pkg-config gobject-introspection python3-pykeepass"
makedepends="gtk+3-devel libhandy-devel python3-pykeepass libpwquality-devel"
-depends="gtk+3 libnotify libhandy python3-gobject python3-pykeepass python3-construct"
+depends="gtk+3 libnotify libhandy python3-gobject python3-pykeepass python3-construct
+ libpwquality-python3"
short_desc="Keepass compatible password manager for GNOME"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Updated] libpwquality: enable python3 binding
2019-09-04 8:53 [PR PATCH] libpwquality: enable python3 binding voidlinux-github
` (4 preceding siblings ...)
2019-09-05 0:55 ` voidlinux-github
@ 2019-09-05 7:59 ` voidlinux-github
2019-09-05 7:59 ` voidlinux-github
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-09-05 7:59 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 397 bytes --]
There is an updated pull request by bra1nwave against master on the void-packages repository
https://github.com/bra1nwave/void-packages libpwquality
https://github.com/void-linux/void-packages/pull/14203
libpwquality: enable python3 binding
fixes https://github.com/void-linux/void-packages/issues/14184
A patch file from https://github.com/void-linux/void-packages/pull/14203.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libpwquality-14203.patch --]
[-- Type: text/x-diff, Size: 4473 bytes --]
From 4ff80e46c4de634d3b4473c4f71cc561128a9a4b Mon Sep 17 00:00:00 2001
From: bra1nwave <brainwave@openmailbox.org>
Date: Wed, 4 Sep 2019 10:48:32 +0200
Subject: [PATCH 1/2] libpwquality: enable python3 binding
---
srcpkgs/libpwquality-python3 | 1 +
.../libpwquality/patches/pythoncross.patch | 12 ++++++++++
srcpkgs/libpwquality/template | 23 +++++++++++++++----
3 files changed, 31 insertions(+), 5 deletions(-)
create mode 120000 srcpkgs/libpwquality-python3
create mode 100644 srcpkgs/libpwquality/patches/pythoncross.patch
diff --git a/srcpkgs/libpwquality-python3 b/srcpkgs/libpwquality-python3
new file mode 120000
index 00000000000..db26e623f28
--- /dev/null
+++ b/srcpkgs/libpwquality-python3
@@ -0,0 +1 @@
+libpwquality
\ No newline at end of file
diff --git a/srcpkgs/libpwquality/patches/pythoncross.patch b/srcpkgs/libpwquality/patches/pythoncross.patch
new file mode 100644
index 00000000000..5e7ea7bd5d1
--- /dev/null
+++ b/srcpkgs/libpwquality/patches/pythoncross.patch
@@ -0,0 +1,12 @@
+--- python/Makefile.am.orig
++++ python/Makefile.am
+@@ -11,7 +11,7 @@
+ EXTRA_DIST = pwquality.c setup.py
+
+ all-local:
+- CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-lib=.
++ LDSHARED="${CC} -pthread -shared" CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-lib=.
+
+ install-exec-local:
+- CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py install --prefix=${DESTDIR}${prefix}
++ LDSHARED="${CC} -pthread -shared" CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py install --prefix=${DESTDIR}${prefix}
diff --git a/srcpkgs/libpwquality/template b/srcpkgs/libpwquality/template
index 3093808c526..9a90dcf3acb 100644
--- a/srcpkgs/libpwquality/template
+++ b/srcpkgs/libpwquality/template
@@ -1,20 +1,24 @@
# Template file for 'libpwquality'
pkgname=libpwquality
version=1.4.0
-revision=1
+revision=2
build_style=gnu-configure
-configure_args="--disable-static --enable-pam --disable-python-bindings
- --with-securedir=/usr/lib/security"
+configure_args="--disable-static --enable-pam --with-securedir=/usr/lib/security"
hostmakedepends="libtool automake gettext-devel"
-makedepends="cracklib-devel pam-devel"
+makedepends="cracklib-devel pam-devel python3-devel"
conf_files="/etc/security/pwquality.conf"
short_desc="Library for password quality checking and generating random passwords"
maintainer="Orphaned <orphan@voidlinux.org>"
+license="GPL-2.0-or-later"
homepage="https://github.com/libpwquality/libpwquality"
-license="GPL-2"
distfiles="${homepage}/releases/download/libpwquality-${version}/libpwquality-${version}.tar.bz2"
checksum=1de6ff046cf2172d265a2cb6f8da439d894f3e4e8157b056c515515232fade6b
+if [ "$CROSS_BUILD" ]; then
+ hostmakedepends+=" python3"
+ CFLAGS+=" -I${XBPS_CROSS_BASE}/${py3_inc}"
+fi
+
pre_configure() {
autoreconf -fi
}
@@ -26,5 +30,14 @@ libpwquality-devel_package() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
+ vmove usr/share/man/man3
+ }
+}
+
+libpwquality-python3_package() {
+ lib32disabled=yes
+ short_desc+=" - Python3 bindings"
+ pkg_install() {
+ vmove "usr/lib/python3*"
}
}
From 1375819255f1510a1baee455f832c3dcd7ccf531 Mon Sep 17 00:00:00 2001
From: bra1nwave <brainwave@openmailbox.org>
Date: Thu, 5 Sep 2019 09:56:35 +0200
Subject: [PATCH 2/2] gnome-passwordsafe: add missing runtime dependency
---
srcpkgs/gnome-passwordsafe/template | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gnome-passwordsafe/template b/srcpkgs/gnome-passwordsafe/template
index cec9f84e238..f310ce03a08 100644
--- a/srcpkgs/gnome-passwordsafe/template
+++ b/srcpkgs/gnome-passwordsafe/template
@@ -1,14 +1,15 @@
# Template file for 'gnome-passwordsafe'
pkgname=gnome-passwordsafe
version=3.32.0
-revision=1
+revision=2
archs=noarch
wrksrc="PasswordSafe-${version}"
build_style=meson
pycompile_module="passwordsafe"
hostmakedepends="glib-devel pkg-config gobject-introspection python3-pykeepass"
makedepends="gtk+3-devel libhandy-devel python3-pykeepass libpwquality-devel"
-depends="gtk+3 libnotify libhandy python3-gobject python3-pykeepass python3-construct"
+depends="gtk+3 libnotify libhandy python3-gobject python3-pykeepass python3-construct
+ libpwquality-python3"
short_desc="Keepass compatible password manager for GNOME"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: libpwquality: enable python3 binding
2019-09-04 8:53 [PR PATCH] libpwquality: enable python3 binding voidlinux-github
` (6 preceding siblings ...)
2019-09-05 7:59 ` voidlinux-github
@ 2019-09-05 8:00 ` voidlinux-github
2019-09-06 6:43 ` [PR PATCH] [Merged]: " voidlinux-github
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-09-05 8:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 147 bytes --]
New comment by bra1nwave on void-packages repository
https://github.com/void-linux/void-packages/pull/14203#issuecomment-528248063
Comment:
Done
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PR PATCH] [Merged]: libpwquality: enable python3 binding
2019-09-04 8:53 [PR PATCH] libpwquality: enable python3 binding voidlinux-github
` (7 preceding siblings ...)
2019-09-05 8:00 ` voidlinux-github
@ 2019-09-06 6:43 ` voidlinux-github
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-09-06 6:43 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 232 bytes --]
There's a merged pull request on the void-packages repository
libpwquality: enable python3 binding
https://github.com/void-linux/void-packages/pull/14203
Description:
fixes https://github.com/void-linux/void-packages/issues/14184
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2019-09-06 6:43 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-04 8:53 [PR PATCH] libpwquality: enable python3 binding voidlinux-github
2019-09-04 10:25 ` [PR PATCH] [Updated] [WIP] " voidlinux-github
2019-09-04 10:25 ` voidlinux-github
2019-09-04 14:59 ` voidlinux-github
2019-09-04 14:59 ` voidlinux-github
2019-09-05 0:55 ` voidlinux-github
2019-09-05 7:59 ` [PR PATCH] [Updated] " voidlinux-github
2019-09-05 7:59 ` voidlinux-github
2019-09-05 8:00 ` voidlinux-github
2019-09-06 6:43 ` [PR PATCH] [Merged]: " voidlinux-github
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).