summaryrefslogtreecommitdiffstats
path: root/security-libs
diff options
context:
space:
mode:
authorIsmael Luceno2021-05-16 21:51:24 +0200
committerIsmael Luceno2021-05-16 21:51:24 +0200
commit7b86e1ad93eccecdf9ffeb2b2cf9686cc724a15d (patch)
treeccacaa69b86e7e39d134a7d6da654fa71dbf712a /security-libs
parentbb81ef02eaa1c57aab6dc061681806ddf07ff70d (diff)
cracklib: Fix build with python3
Diffstat (limited to 'security-libs')
-rwxr-xr-xsecurity-libs/cracklib/BUILD5
-rwxr-xr-xsecurity-libs/cracklib/DEPENDS5
-rw-r--r--security-libs/cracklib/HISTORY1
3 files changed, 10 insertions, 1 deletions
diff --git a/security-libs/cracklib/BUILD b/security-libs/cracklib/BUILD
index 683152d57a..d26b217464 100755
--- a/security-libs/cracklib/BUILD
+++ b/security-libs/cracklib/BUILD
@@ -1,3 +1,8 @@
+if is_depends_enabled "$SPELL" python3; then
+ # Fix build failure with Python 3.9.5, and possibly other versions
+ pyinc=("$INSTALL_ROOT"/usr/include/python3.*/Python.h)
+ CFLAGS+=" -I${pyinc%/Python.h}"
+fi &&
# --datadir=... defines dictionary directory for cracklib;
# dictionary files ARE platform-dependent so it must not be /usr/shared
OPTS="$OPTS --datadir=$INSTALL_ROOT/usr/lib" &&
diff --git a/security-libs/cracklib/DEPENDS b/security-libs/cracklib/DEPENDS
index f56310e619..3a476d6d5b 100755
--- a/security-libs/cracklib/DEPENDS
+++ b/security-libs/cracklib/DEPENDS
@@ -1,3 +1,6 @@
depends smgl-fhs &&
depends zlib &&
-optional_depends PYTHON '--with-python' '--without-python' 'Python support'
+optional_depends python3 \
+ '--with-python PYTHON=python3' \
+ '--without-python' \
+ 'Python support'
diff --git a/security-libs/cracklib/HISTORY b/security-libs/cracklib/HISTORY
index 69264c4808..fdbcede1f6 100644
--- a/security-libs/cracklib/HISTORY
+++ b/security-libs/cracklib/HISTORY
@@ -2,6 +2,7 @@
* DEPENDS: removed autotools, not needed anymore
* INSTALL, PRE_BUILD: moved unpacking of wordlist to PRE_BUILD
* PRE_BUILD: added patching of libtool for non-glibc systems
+ * BUILD, DEPENDS: fixed build with python3
2019-08-26 Treeve Jelbert <treeve@sourcemage.org>
* DETAILS: version 2.9.7