diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-07-17 15:53:34 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-17 12:36:18 +0100 |
commit | 012a572e861d95d35c97a4da34dbad6d93cc9962 (patch) | |
tree | bb885411bed3c3990523650ccf1d10cd004d7328 /meta/recipes-extended/shadow/shadow-sysroot_4.2.1.bb | |
parent | 3ab35e4a47fdf76f86b7b84fbb61e79a25b230fa (diff) | |
download | poky-012a572e861d95d35c97a4da34dbad6d93cc9962.tar.gz |
shadow: upgrade from 4.1.4.3 to 4.2.1
Upgrade shadow from 4.1.4.3 to 4.2.1.
Changes during this upgrade are as following.
1. Remove the "merged" patches. These patches are either merged or
the same functionality has been implemented upstream.
add_root_cmd_groupmems.patch
add_root_cmd_options.patch
fix-etc-gshadow-reading.patch
shadow-4.1.4.2-env-reset-keep-locale.patch
shadow-4.1.4.2-groupmod-pam-check.patch
shadow-4.1.4.2-su_no_sanitize_env.patch
shadow.automake-1.11.patch
shadow_fix_for_automake-1.12.patch
useradd.patch
2. Remove the unneeded patch.
The following patch has been removed because the logic in the related
codes of the new version has been changed. In specific, the codes now
can handle the 'NULL' return value. So there's no need for the following
patch.
slackware_fix_for_glib-2.17_crypt.patch
3. Teak the current patch to match the new version.
allow-for-setting-password-in-clear-text.patch
4. Add a patch to fix compilation failure.
usermod-fix-compilation-failure-with-subids-disabled.patch
5. Add a patch to fix the installation failure.
fix-installation-failure-with-subids-disabled.patch
5. Add a patch to fix the failure at rootfs time if extrausers is inherited.
commonio.c-fix-unexpected-open-failure-in-chroot-env.patch
6. Fix the bad section in the recipe.
7. Disable the new subids feature in the new version as it doesn't support
cross compilation for now.
8. Modify the pkg_postinst to `exit 1' if the `pwconv' or `grpconv' fails.
Also, fix the arguments to use '--root $D' instead of '--root=$D'.
9. Add a patch for shadow-native to create parent directories when necessary.
0001-useradd.c-create-parent-directories-when-necessary.patch
(From OE-Core rev: b73e5cd51551556f9e6a4f7d9e7deec4d9d661bd)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/shadow/shadow-sysroot_4.2.1.bb')
-rw-r--r-- | meta/recipes-extended/shadow/shadow-sysroot_4.2.1.bb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-extended/shadow/shadow-sysroot_4.2.1.bb b/meta/recipes-extended/shadow/shadow-sysroot_4.2.1.bb new file mode 100644 index 0000000000..697569c47e --- /dev/null +++ b/meta/recipes-extended/shadow/shadow-sysroot_4.2.1.bb | |||
@@ -0,0 +1,34 @@ | |||
1 | SUMMARY = "Shadow utils requirements for useradd.bbclass" | ||
2 | HOMEPAGE = "http://pkg-shadow.alioth.debian.org" | ||
3 | BUGTRACKER = "https://alioth.debian.org/tracker/?group_id=30580" | ||
4 | SECTION = "base utils" | ||
5 | LICENSE = "BSD | Artistic-1.0" | ||
6 | LIC_FILES_CHKSUM = "file://login.defs_shadow-sysroot;md5=25e2f2de4dfc8f966ac5cdfce45cd7d5" | ||
7 | |||
8 | DEPENDS = "base-passwd" | ||
9 | |||
10 | PR = "r3" | ||
11 | |||
12 | # The sole purpose of this recipe is to provide the /etc/login.defs | ||
13 | # file for the target sysroot - needed so the shadow-native utilities | ||
14 | # can add custom users/groups for recipes that use inherit useradd. | ||
15 | SRC_URI = "file://login.defs_shadow-sysroot" | ||
16 | |||
17 | SRC_URI[md5sum] = "b8608d8294ac88974f27b20f991c0e79" | ||
18 | SRC_URI[sha256sum] = "633f5bb4ea0c88c55f3642c97f9d25cbef74f82e0b4cf8d54e7ad6f9f9caa778" | ||
19 | |||
20 | S = "${WORKDIR}" | ||
21 | |||
22 | do_install() { | ||
23 | install -d ${D}${sysconfdir} | ||
24 | install -p -m 755 ${S}/login.defs_shadow-sysroot ${D}${sysconfdir}/login.defs | ||
25 | } | ||
26 | |||
27 | sysroot_stage_all() { | ||
28 | sysroot_stage_dir ${D} ${SYSROOT_DESTDIR} | ||
29 | } | ||
30 | |||
31 | # don't create any packages | ||
32 | # otherwise: dbus-dev depends on shadow-sysroot-dev which depends on shadow-sysroot | ||
33 | # and this has another copy of /etc/login.defs already provided by shadow | ||
34 | PACKAGES = "" | ||