summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/shadow
diff options
context:
space:
mode:
authorZhai Edwin <edwin.zhai@intel.com>2011-08-30 16:05:01 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-31 19:59:59 +0100
commit7a27253f56f4dd14a4fff56d46083009ae9cb421 (patch)
treed8eb1a3d1b2876ed7c3f2e299af649efef8d3bba /meta/recipes-extended/shadow
parentc9f5a4f9306501ee269cbcefeeab68c3819c7d03 (diff)
downloadpoky-7a27253f56f4dd14a4fff56d46083009ae9cb421.tar.gz
shadow: Fix rpm failed dependencies when install
There are some links become invalid after rename, so that failed dependencies detected when install rpm package. This commit update links to resolve it. [YOCTO #1158] got fixed. (From OE-Core rev: 48ec20d1331eb665d9fc1a06bdb1ea79e4513159) Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/shadow')
-rw-r--r--meta/recipes-extended/shadow/shadow_4.1.4.3.bb7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
index 728b8e5b20..5bc4a6183e 100644
--- a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
+++ b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=08c553a87d4e51bbed50b20e0adcaede \
9 9
10DEPENDS = "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" 10DEPENDS = "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
11RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_PLUGINS}', '', d)}" 11RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_PLUGINS}', '', d)}"
12PR = "r3" 12PR = "r4"
13 13
14SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \ 14SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \
15 file://login_defs_pam.sed \ 15 file://login_defs_pam.sed \
@@ -97,6 +97,11 @@ do_install_append() {
97 mv ${D}${sbindir}/vipw ${D}${base_sbindir}/vipw.${PN} 97 mv ${D}${sbindir}/vipw ${D}${base_sbindir}/vipw.${PN}
98 mv ${D}${bindir}/login ${D}${base_bindir}/login.${PN} 98 mv ${D}${bindir}/login ${D}${base_bindir}/login.${PN}
99 99
100 # Handle link properly after rename, otherwise missing files would
101 # lead rpm failed dependencies.
102 ln -sf vipw.${PN} ${D}${base_sbindir}/vigr.${PN}
103 ln -sf newgrp.${PN} ${D}${bindir}/sg
104
100 # Ensure we add a suitable securetty file to the package that has 105 # Ensure we add a suitable securetty file to the package that has
101 # most common embedded TTYs defined. 106 # most common embedded TTYs defined.
102 if [ ! -z "${SERIAL_CONSOLE}" ]; then 107 if [ ! -z "${SERIAL_CONSOLE}" ]; then