cracklib: add python support back
cover cracklib: add python support back
The following changes since commit e72aac2ae9e5fce1715fa04b7e94034fd06892d9:
alsa-lib: libasound should runtime depends on alsa-conf (2014-09-03 11:30:11 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib rbt/cracklib
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/cracklib
Robert Yang (1):
cracklib: add python support back
meta/recipes-extended/cracklib/cracklib_2.9.1.bb | 29 +++++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-)
Signature · 1 line
1.7.9.5
PATCH 1/1 cracklib: add python support back
It had been disabled because of installed-vs-shipped:
WARNING: /usr/lib/python2.7
WARNING: /usr/lib/python2.7/site-packages
Now we fix it and add cracklib-python back.
Signed-off-by Robert Yang <[email protected]>
--- meta/recipes-extended/cracklib/cracklib_2.9.1.bb | 29 +++++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-)
meta/recipes-extended/cracklib/cracklib_2.9.1.bb +25 -4
@@ -4,10 +4,13 @@ HOMEPAGE = "http://sourceforge.net/projects/cracklib" LICENSE = "LGPLv2.1+" LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06" -DEPENDS = "cracklib-native zlib" -DEPENDS_class-native = "zlib-native" +DEPENDS = "cracklib-native zlib python" +DEPENDS_class-native = "zlib-native python-native" +RDEPEND_${PN}-python += "python" -EXTRA_OECONF = "--without-python --libdir=${base_libdir}" +PACKAGES += "${PN}-python" + +EXTRA_OECONF = "--with-python --libdir=${base_libdir}" SRC_URI = "${SOURCEFORGE_MIRROR}/cracklib/cracklib-${PV}.tar.gz \ file://0001-packlib.c-support-dictionary-byte-order-dependent.patch \
@@ -16,10 +19,28 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/cracklib/cracklib-${PV}.tar.gz \ SRC_URI[md5sum] = "90536219c520add2ceb3c26f0d7da404" SRC_URI[sha256sum] = "408905c2539a97dc8cbbb6d7cd2046cb5647a345b4bda399220d9471be16d156" -inherit autotools-brokensep gettext +inherit autotools-brokensep gettext pythonnative do_install_append_class-target() { create-cracklib-dict -o ${D}${datadir}/cracklib/pw_dict ${D}${datadir}/cracklib/cracklib-small } +do_install_append() { + src_dir="${D}${base_libdir}/${PYTHON_DIR}/site-packages" + rm -f $src_dir/*.pyo + rm -f $src_dir/test_cracklib.py + # Move python files from ${base_libdir} to ${libdir} since used --libdir=${base_libdir} + install -d -m 0755 ${D}${PYTHON_SITEPACKAGES_DIR}/ + mv $src_dir/* ${D}${PYTHON_SITEPACKAGES_DIR} + rm -fr ${D}${base_libdir}/${PYTHON_DIR} +} + BBCLASSEXTEND = "native nativesdk" + +FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/cracklib.py \ + ${PYTHON_SITEPACKAGES_DIR}/_cracklib.so \ + " +FILES_${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/_cracklib.so" +FILES_${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/_cracklib.a \ + ${PYTHON_SITEPACKAGES_DIR}/_cracklib.la \ + "
Signature · 1 line
1.7.9.5