diff options
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/shadow/files/disable-syslog.patch | 34 | ||||
-rw-r--r-- | meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb | 5 |
2 files changed, 37 insertions, 2 deletions
diff --git a/meta/recipes-extended/shadow/files/disable-syslog.patch b/meta/recipes-extended/shadow/files/disable-syslog.patch new file mode 100644 index 0000000000..1943fd6faf --- /dev/null +++ b/meta/recipes-extended/shadow/files/disable-syslog.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | Disable use of syslog to prevent sysroot user and group additions from | ||
2 | writing entries to the host's syslog. This patch should only be used | ||
3 | with the shadow-native recipe. | ||
4 | |||
5 | Upstream-Status: Inappropriate [disable feature] | ||
6 | |||
7 | Signed-off-by: Scott Garman <scott.a.garman@intel.com> | ||
8 | |||
9 | diff -urN shadow-4.1.4.3.orig//src/groupadd.c shadow-4.1.4.3/src/groupadd.c | ||
10 | --- shadow-4.1.4.3.orig//src/groupadd.c 2011-02-13 09:58:16.000000000 -0800 | ||
11 | +++ shadow-4.1.4.3/src/groupadd.c 2012-04-05 10:05:59.440001758 -0700 | ||
12 | @@ -34,6 +34,9 @@ | ||
13 | |||
14 | #ident "$Id: groupadd.c 3015 2009-06-05 22:16:56Z nekral-guest $" | ||
15 | |||
16 | +/* Disable use of syslog since we're running this command against a sysroot */ | ||
17 | +#undef USE_SYSLOG | ||
18 | + | ||
19 | #include <ctype.h> | ||
20 | #include <fcntl.h> | ||
21 | #include <getopt.h> | ||
22 | diff -urN shadow-4.1.4.3.orig//src/useradd.c shadow-4.1.4.3/src/useradd.c | ||
23 | --- shadow-4.1.4.3.orig//src/useradd.c 2011-02-13 09:58:16.000000000 -0800 | ||
24 | +++ shadow-4.1.4.3/src/useradd.c 2012-04-05 10:06:25.076001315 -0700 | ||
25 | @@ -34,6 +34,9 @@ | ||
26 | |||
27 | #ident "$Id: useradd.c 3015 2009-06-05 22:16:56Z nekral-guest $" | ||
28 | |||
29 | +/* Disable use of syslog since we're running this command against a sysroot */ | ||
30 | +#undef USE_SYSLOG | ||
31 | + | ||
32 | #include <assert.h> | ||
33 | #include <ctype.h> | ||
34 | #include <errno.h> | ||
diff --git a/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb index 42ecc6a878..38bb922282 100644 --- a/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb +++ b/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb | |||
@@ -7,14 +7,15 @@ LICENSE = "BSD | Artistic-1.0" | |||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=08c553a87d4e51bbed50b20e0adcaede \ | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=08c553a87d4e51bbed50b20e0adcaede \ |
8 | file://src/passwd.c;firstline=8;endline=30;md5=2899a045e90511d0e043b85a7db7e2fe" | 8 | file://src/passwd.c;firstline=8;endline=30;md5=2899a045e90511d0e043b85a7db7e2fe" |
9 | 9 | ||
10 | PR = "r3" | 10 | PR = "r4" |
11 | 11 | ||
12 | SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \ | 12 | SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \ |
13 | file://shadow.automake-1.11.patch \ | 13 | file://shadow.automake-1.11.patch \ |
14 | file://shadow-4.1.3-dots-in-usernames.patch \ | 14 | file://shadow-4.1.3-dots-in-usernames.patch \ |
15 | file://shadow-4.1.4.2-env-reset-keep-locale.patch \ | 15 | file://shadow-4.1.4.2-env-reset-keep-locale.patch \ |
16 | file://add_root_cmd_options.patch \ | 16 | file://add_root_cmd_options.patch \ |
17 | file://useradd.patch" | 17 | file://disable-syslog.patch \ |
18 | file://useradd.patch" | ||
18 | 19 | ||
19 | SRC_URI[md5sum] = "b8608d8294ac88974f27b20f991c0e79" | 20 | SRC_URI[md5sum] = "b8608d8294ac88974f27b20f991c0e79" |
20 | SRC_URI[sha256sum] = "633f5bb4ea0c88c55f3642c97f9d25cbef74f82e0b4cf8d54e7ad6f9f9caa778" | 21 | SRC_URI[sha256sum] = "633f5bb4ea0c88c55f3642c97f9d25cbef74f82e0b4cf8d54e7ad6f9f9caa778" |