diff options
author | Treeve Jelbert | 2012-04-22 16:58:00 +0200 |
---|---|---|
committer | Treeve Jelbert | 2012-04-23 22:29:46 +0200 |
commit | 5727ed6401d1f2acc4c51906ce267baa8c21c054 (patch) | |
tree | d882f2d67860a4dc7f79c81bf17a8db85951a6ff /security-libs | |
parent | 95bb0e300182eab250e46e07c36d3bfc41eecb1f (diff) |
cracklib - fix build with python3
Diffstat (limited to 'security-libs')
-rwxr-xr-x | security-libs/cracklib/DEPENDS | 3 | ||||
-rw-r--r-- | security-libs/cracklib/HISTORY | 5 | ||||
-rwxr-xr-x | security-libs/cracklib/PRE_BUILD | 13 |
3 files changed, 16 insertions, 5 deletions
diff --git a/security-libs/cracklib/DEPENDS b/security-libs/cracklib/DEPENDS index de562a5421..29b928cbeb 100755 --- a/security-libs/cracklib/DEPENDS +++ b/security-libs/cracklib/DEPENDS @@ -3,4 +3,5 @@ depends automake && depends gnupg && depends libtool && depends smgl-fhs && -optional_depends python '--with-python' '--without-python' 'Python support' +depends zlib && +optional_depends PYTHON '--with-python' '--without-python' 'Python support' diff --git a/security-libs/cracklib/HISTORY b/security-libs/cracklib/HISTORY index ea5c697916..6ae22211a8 100644 --- a/security-libs/cracklib/HISTORY +++ b/security-libs/cracklib/HISTORY @@ -1,3 +1,8 @@ +2012-04-22 Treeve Jelbert <treeve@sourcemage.org> + * DEPENDS: python => PYTHON + add zlib + * PRE_BUILD: update config scripts, fix detection of python3 + 2010-10-01 Ladislav Hagara <hgr@vabo.cz> * DETAILS: 2.8.18 diff --git a/security-libs/cracklib/PRE_BUILD b/security-libs/cracklib/PRE_BUILD index d5375cb7e5..c4879f0d14 100755 --- a/security-libs/cracklib/PRE_BUILD +++ b/security-libs/cracklib/PRE_BUILD @@ -3,7 +3,12 @@ default_pre_build && unpack_file 2 # Doesn't really need C++... -#cd $SOURCE_DIRECTORY && -#aclocal && -#autoconf && -#automake +cd $SOURCE_DIRECTORY && +# update the config scripts +sed -i "s/AM_GNU_GETTEXT_VERSION/&(0.18.1)/" configure.in && +# fix detection of python3 +if is_depends_enabled $SPELL python3;then + sed -i "s/}/}m/" configure.in && + sed -i "s|@/|@m/|" python/Makefile.am +fi && +autoreconf -f -i --symlink |