diff options
author | David Nyström <david.c.nystrom@gmail.com> | 2013-09-25 11:52:22 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-26 16:37:55 +0100 |
commit | d43d7b1893841f9f65e992921c0808a61d25da60 (patch) | |
tree | da8b75c0a935bd53fd128796fed4414f890781d2 /meta/recipes-extended/shadow | |
parent | 5b5e1b90087bf4aab7b52fd0676fe7a30db84bfe (diff) | |
download | poky-d43d7b1893841f9f65e992921c0808a61d25da60.tar.gz |
shadow: Add nativesdk to BBCLASSEXTEND
This is a second in a series of patches to enable
offline rootfs creation from a package repository.
Some postinstall cmds are Yocto specific and needed to create a
rootfs with pre and post install hooks successfully run,
using only the toolchain tarball + a package repo.
End goal is to create a sandbox where users of a Yocto
based distribution can customize a rootfs from a package feed
with their package manager of choice.
With this patch, I can successfully create packagegroup-core-boot
with only the toolchain tarball(OPKG). More fixes for a few postinstall
hooks outside of packagegroup-core-boot will come next.
(From OE-Core rev: f90e1a45a042468e4e9a0fc91b57c6dba6f7adc9)
Signed-off-by: David Nyström <david.nystrom@enea.com>
Signed-off-by: Saul Wold <sgw@linux.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.inc | 10 | ||||
-rw-r--r-- | meta/recipes-extended/shadow/shadow_4.1.4.3.bb | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index 75b0afcab1..5ab978ac51 100644 --- a/meta/recipes-extended/shadow/shadow.inc +++ b/meta/recipes-extended/shadow/shadow.inc | |||
@@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=08c553a87d4e51bbed50b20e0adcaede \ | |||
9 | 9 | ||
10 | DEPENDS = "shadow-native" | 10 | DEPENDS = "shadow-native" |
11 | DEPENDS_class-native = "" | 11 | DEPENDS_class-native = "" |
12 | DEPENDS_class-nativesdk = "" | ||
12 | 13 | ||
13 | SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \ | 14 | SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \ |
14 | file://shadow.automake-1.11.patch \ | 15 | file://shadow.automake-1.11.patch \ |
@@ -33,6 +34,12 @@ SRC_URI_append_class-native = " \ | |||
33 | file://useradd.patch \ | 34 | file://useradd.patch \ |
34 | file://add_root_cmd_groupmems.patch \ | 35 | file://add_root_cmd_groupmems.patch \ |
35 | " | 36 | " |
37 | SRC_URI_append_class-nativesdk = " \ | ||
38 | file://add_root_cmd_options.patch \ | ||
39 | file://disable-syslog.patch \ | ||
40 | file://useradd.patch \ | ||
41 | file://add_root_cmd_groupmems.patch \ | ||
42 | " | ||
36 | 43 | ||
37 | SRC_URI[md5sum] = "b8608d8294ac88974f27b20f991c0e79" | 44 | SRC_URI[md5sum] = "b8608d8294ac88974f27b20f991c0e79" |
38 | SRC_URI[sha256sum] = "633f5bb4ea0c88c55f3642c97f9d25cbef74f82e0b4cf8d54e7ad6f9f9caa778" | 45 | SRC_URI[sha256sum] = "633f5bb4ea0c88c55f3642c97f9d25cbef74f82e0b4cf8d54e7ad6f9f9caa778" |
@@ -57,6 +64,7 @@ EXTRA_OECONF += "--without-audit \ | |||
57 | 64 | ||
58 | NSCDOPT = "" | 65 | NSCDOPT = "" |
59 | NSCDOPT_class-native = "--without-nscd" | 66 | NSCDOPT_class-native = "--without-nscd" |
67 | NSCDOPT_class-nativesdk = "--without-nscd" | ||
60 | NSCDOPT_libc-uclibc = " --without-nscd" | 68 | NSCDOPT_libc-uclibc = " --without-nscd" |
61 | 69 | ||
62 | PAM_PLUGINS = "libpam-runtime \ | 70 | PAM_PLUGINS = "libpam-runtime \ |
@@ -74,11 +82,13 @@ PAM_PLUGINS = "libpam-runtime \ | |||
74 | 82 | ||
75 | PACKAGECONFIG = "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" | 83 | PACKAGECONFIG = "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" |
76 | PACKAGECONFIG_class-native = "" | 84 | PACKAGECONFIG_class-native = "" |
85 | PACKAGECONFIG_class-nativesdk = "" | ||
77 | PACKAGECONFIG[pam] = "--with-libpam,--without-libpam,libpam,${PAM_PLUGINS}" | 86 | PACKAGECONFIG[pam] = "--with-libpam,--without-libpam,libpam,${PAM_PLUGINS}" |
78 | 87 | ||
79 | RDEPENDS_${PN} = "shadow-securetty \ | 88 | RDEPENDS_${PN} = "shadow-securetty \ |
80 | base-passwd" | 89 | base-passwd" |
81 | RDEPENDS_${PN}_class-native = "" | 90 | RDEPENDS_${PN}_class-native = "" |
91 | RDEPENDS_${PN}_class-nativesdk = "" | ||
82 | 92 | ||
83 | do_install() { | 93 | do_install() { |
84 | oe_runmake DESTDIR="${D}" sbindir="${base_sbindir}" usbindir="${sbindir}" install | 94 | oe_runmake DESTDIR="${D}" sbindir="${base_sbindir}" usbindir="${sbindir}" install |
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 6f1723ed6d..43e578fe4f 100644 --- a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb +++ b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb | |||
@@ -4,7 +4,7 @@ require shadow.inc | |||
4 | # libcrypt. This breaks chsh. | 4 | # libcrypt. This breaks chsh. |
5 | BUILD_LDFLAGS_append_class-target = " ${@base_contains('DISTRO_FEATURES', 'pam', base_contains('DISTRO_FEATURES', 'libc-crypt', '-lcrypt', '', d), '', d)}" | 5 | BUILD_LDFLAGS_append_class-target = " ${@base_contains('DISTRO_FEATURES', 'pam', base_contains('DISTRO_FEATURES', 'libc-crypt', '-lcrypt', '', d), '', d)}" |
6 | 6 | ||
7 | BBCLASSEXTEND = "native" | 7 | BBCLASSEXTEND = "native nativesdk" |
8 | 8 | ||
9 | 9 | ||
10 | 10 | ||