diff options
author | Colin Walters <walters@verbum.org> | 2013-03-07 18:45:22 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-18 13:18:23 +0000 |
commit | fde198b76dd03b09e7d33e37a53310d293d8f259 (patch) | |
tree | 11a32d3348f1947fcd449e6ab7a81d217a5bddee /meta/recipes-extended/cracklib | |
parent | 6019a363054b988dff796af3ac728d617adba03a (diff) | |
download | poky-fde198b76dd03b09e7d33e37a53310d293d8f259.tar.gz |
cracklib: Generate compiled dict using default dictionary
While cracklib compiles, the generated library's FascistCheck() API
will look for the default compiled dictionary, fail to find it, and
invoke exit(1), which then in turn breaks gnome-initial-setup that
uses cracklib via libpwquality. (Quality here obviously referring to
the password, and not the libraries...)
What we do here is basically the same as what happens in the current
Fedora spec file, except the latter uses a far larger dictionary.
To make this work, we need to build cracklib-native because the
dictionary compiler is written in native code.
(From OE-Core rev: ca4d0c455525aa775f7fe0531ad0c6f5dcdc32d7)
Signed-off-by: Colin Walters <walters@verbum.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/cracklib')
-rw-r--r-- | meta/recipes-extended/cracklib/cracklib_2.8.22.bb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/recipes-extended/cracklib/cracklib_2.8.22.bb b/meta/recipes-extended/cracklib/cracklib_2.8.22.bb index 1ae1aca93a..7e398f4e5c 100644 --- a/meta/recipes-extended/cracklib/cracklib_2.8.22.bb +++ b/meta/recipes-extended/cracklib/cracklib_2.8.22.bb | |||
@@ -4,7 +4,8 @@ HOMEPAGE = "http://sourceforge.net/projects/cracklib" | |||
4 | LICENSE = "LGPLv2.1+" | 4 | LICENSE = "LGPLv2.1+" |
5 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06" | 5 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06" |
6 | 6 | ||
7 | DEPENDS = "zlib" | 7 | DEPENDS = "cracklib-native zlib" |
8 | DEPENDS_class-native = "zlib" | ||
8 | PR ="r0" | 9 | PR ="r0" |
9 | 10 | ||
10 | EXTRA_OECONF = "--without-python" | 11 | EXTRA_OECONF = "--without-python" |
@@ -15,3 +16,9 @@ SRC_URI[md5sum] = "463177b5c29c7a598c991e12a4898e06" | |||
15 | SRC_URI[sha256sum] = "feaff49bfb513ec10b2618c00d2f7f60776ba93fcc5fa22dd3479dd9cad9f770" | 16 | SRC_URI[sha256sum] = "feaff49bfb513ec10b2618c00d2f7f60776ba93fcc5fa22dd3479dd9cad9f770" |
16 | 17 | ||
17 | inherit autotools gettext | 18 | inherit autotools gettext |
19 | |||
20 | BBCLASSEXTEND = "native" | ||
21 | |||
22 | do_install_append_class-target() { | ||
23 | create-cracklib-dict -o ${D}${datadir}/cracklib/pw_dict ${D}${datadir}/cracklib/cracklib-small | ||
24 | } | ||