Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 233975 Details for
Bug 316951
sys-libs/cracklib: Verify and potentially improve Python-related code
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cracklib-2.8.16.ebuild.patch
cracklib-2.8.16.ebuild.patch (text/plain), 2.37 KB, created by
Arfrever Frehtes Taifersar Arahesis (RETIRED)
on 2010-06-03 14:07:52 UTC
(
hide
)
Description:
cracklib-2.8.16.ebuild.patch
Filename:
MIME Type:
Creator:
Arfrever Frehtes Taifersar Arahesis (RETIRED)
Created:
2010-06-03 14:07:52 UTC
Size:
2.37 KB
patch
obsolete
>--- cracklib-2.8.16.ebuild >+++ cracklib-2.8.16.ebuild >@@ -2,7 +2,12 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/cracklib-2.8.16.ebuild,v 1.1 2010/04/30 13:02:14 vapier Exp $ > >-inherit eutils toolchain-funcs multilib libtool >+EAPI="3" >+PYTHON_DEPEND="python? 2" >+SUPPORT_PYTHON_ABIS="1" >+RESTRICT_PYTHON_ABIS="3.*" >+ >+inherit distutils libtool toolchain-funcs > > MY_P=${P/_} > DESCRIPTION="Password Checking Library" >@@ -14,10 +19,14 @@ > KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" > IUSE="nls python" > >-DEPEND="python? ( <dev-lang/python-3 )" >+DEPEND="sys-libs/zlib >+ python? ( dev-python/setuptools )" >+RDEPEND="${DEPEND}" > > S=${WORKDIR}/${MY_P} > >+PYTHON_MODNAME="cracklib.py" >+ > pkg_setup() { > # workaround #195017 > if has unmerge-orphans ${FEATURES} && has_version "<${CATEGORY}/${PN}-2.8.10" ; then >@@ -25,30 +34,46 @@ > eerror "Please run: FEATURES=-unmerge-orphans emerge cracklib" > die "Please run: FEATURES=-unmerge-orphans emerge cracklib" > fi >+ >+ use python && python_pkg_setup > } > >-src_unpack() { >- unpack ${A} >- cd "${S}" >- epatch "${FILESDIR}"/${PN}-2.8.13-python-linkage.patch #246747 >- sed -i '/PYTHON/s:\(print\) \([^"]*\):\1(\2):' configure #302908 >+src_prepare() { > elibtoolize #269003 >+ >+ if use python; then >+ pushd python > /dev/null >+ distutils_src_prepare >+ popd > /dev/null >+ fi > } > >-src_compile() { >+src_configure() { > econf \ > --with-default-dict='$(libdir)/cracklib_dict' \ >- $(use_enable nls) \ >- $(use_with python) \ >- || die >- emake || die >+ --without-python \ >+ $(use_enable nls) >+} >+ >+src_compile() { >+ default >+ >+ if use python; then >+ pushd python > /dev/null >+ distutils_src_compile >+ popd > /dev/null >+ fi > } > > src_install() { >- emake DESTDIR="${D}" install || die "make install failed" >- rm -r "${D}"/usr/share/cracklib >+ emake DESTDIR="${D}" install || die "emake install failed" >+ rm -r "${ED}usr/share/cracklib" > >- find "${D}" -name '_cracklibmodule.*a' -exec rm {} + #316495 >+ if use python; then >+ pushd python > /dev/null >+ distutils_src_install >+ popd > /dev/null >+ fi > > # move shared libs to / > gen_usr_ldscript -a crack >@@ -65,4 +90,10 @@ > create-cracklib-dict /usr/share/dict/* > /dev/null > eend $? > fi >+ >+ use python && distutils_pkg_postinst >+} >+ >+pkg_postrm() { >+ use python && distutils_pkg_postrm > }
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 316951
:
233809
|
233811
|
233867
|
233971
| 233975 |
234115