Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 324966 Details for
Bug 167248
sys-libs/cracklib: support ${ROOT}/usr/lib/cracklib_dict*
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
generate dictionary in src_install
cracklib.patch (text/plain), 2.02 KB, created by
Ambroz Bizjak
on 2012-09-25 15:33:41 UTC
(
hide
)
Description:
generate dictionary in src_install
Filename:
MIME Type:
Creator:
Ambroz Bizjak
Created:
2012-09-25 15:33:41 UTC
Size:
2.02 KB
patch
obsolete
>--- cracklib-2.8.19.ebuild.old 2012-08-26 17:31:32.000000000 +0000 >+++ cracklib-2.8.19.ebuild 2012-09-25 13:55:42.457367880 +0000 >@@ -2,7 +2,7 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/cracklib-2.8.19.ebuild,v 1.10 2012/08/26 17:23:41 armin76 Exp $ > >-EAPI="3" >+EAPI="4" > PYTHON_DEPEND="python? 2" > SUPPORT_PYTHON_ABIS="1" > RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-* *-jython" >@@ -40,6 +40,30 @@ > esac > } > >+# @FUNCTION: library-path-run >+# @DESCRIPTION: >+# Run a program with modified environment such that the system will first look for shared >+# libraries in the directory specified by the first argument. Multiple directories >+# can be specified by separating then with colons. >+library-path-run() { >+ local extra=$1 >+ shift >+ if [[ ${CHOST} != *-darwin* ]]; then >+ LD_LIBRARY_PATH="${extra}:${LD_LIBRARY_PATH}" "$@" >+ else >+ DYLD_LIBRARY_PATH="${extra}:${DYLD_LIBRARY_PATH}" "$@" >+ fi >+} >+ >+pkg_pretend() { >+ if [ "${ROOT}" != "/" ]; then >+ local prog=$(which create-cracklib-dict) >+ if [ -z "$prog" ]; then >+ die "Please install cracklib on the host." >+ fi >+ fi >+} >+ > pkg_setup() { > # workaround #195017 > if has unmerge-orphans ${FEATURES} && has_version "<${CATEGORY}/${PN}-2.8.10" ; then >@@ -84,16 +108,22 @@ > insinto /usr/share/dict > doins dicts/cracklib-small || die > >+ # generate dictionary >+ if [ "${ROOT}" = / ]; then >+ "${S}/util/cracklib-format" "${ED}"/usr/share/dict/* \ >+ | library-path-run "${S}/lib/.libs" "${S}/util/cracklib-packer" cracklib_dict || die >+ else >+ create-cracklib-dict -o cracklib_dict "${ED}"/usr/share/dict/* || die >+ fi >+ insinto /usr/$(get_libdir) >+ doins cracklib_dict.hwm >+ doins cracklib_dict.pwd >+ doins cracklib_dict.pwi >+ > dodoc AUTHORS ChangeLog NEWS README* > } > > pkg_postinst() { >- if [[ ${ROOT} == "/" ]] ; then >- ebegin "Regenerating cracklib dictionary" >- create-cracklib-dict "${EPREFIX}"/usr/share/dict/* > /dev/null >- eend $? >- fi >- > do_python > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 167248
:
110410
|
324966
|
324972
|
324974
|
669989