diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-08-11 15:25:21 +0800 |
---|---|---|
committer | Mark Hatle <mark.hatle@windriver.com> | 2012-08-13 11:53:21 -0500 |
commit | 9ed24fae8ceb02c52fe979ad74a820632e11d93f (patch) | |
tree | 36ae86a06f51669abc26e50294b425a616125e2e | |
parent | b4b777458fa279831374aee049bacb7d117b9832 (diff) | |
download | meta-selinux-9ed24fae8ceb02c52fe979ad74a820632e11d93f.tar.gz |
findutils-4.4.2: suitable version of gnulib for selinux
Add a suitable version of gnulib into SRC_URI, and run
import-gnulib.sh to update it.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
3 files changed, 61 insertions, 39 deletions
diff --git a/recipes-extended/findutils/findutils-4.4.2/findutils-with-selinux-gnulib.patch b/recipes-extended/findutils/findutils-4.4.2/findutils-with-selinux-gnulib.patch new file mode 100644 index 0000000..285c495 --- /dev/null +++ b/recipes-extended/findutils/findutils-4.4.2/findutils-with-selinux-gnulib.patch | |||
@@ -0,0 +1,55 @@ | |||
1 | Subject: [PATCH] selinux: fetch proper version of gnulib. | ||
2 | |||
3 | This patch will fetch a proper version of gnulib, and import | ||
4 | needed modules including selinux-at. | ||
5 | |||
6 | * lstat module has removed lstat.h and now we should include | ||
7 | <sys/stat.h> instead. | ||
8 | - http://git.savannah.gnu.org/cgit/gnulib.git/tree/modules/lstat | ||
9 | |||
10 | Upstream-Status: Backport | ||
11 | |||
12 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
13 | --- | ||
14 | import-gnulib.config | 3 ++- | ||
15 | lib/dircallback.c | 2 +- | ||
16 | 2 files changed, 3 insertions(+), 2 deletions(-) | ||
17 | |||
18 | diff --git a/import-gnulib.config b/import-gnulib.config | ||
19 | index f2e8998..aeeb638 100644 | ||
20 | --- a/import-gnulib.config | ||
21 | +++ b/import-gnulib.config | ||
22 | @@ -1,7 +1,7 @@ | ||
23 | # findutils gnulib.config -*- sh -*- | ||
24 | |||
25 | # What version of gnulib to use? | ||
26 | -gnulib_version="e5573b1bad88bfabcda181b9e0125fb0c52b7d3b" | ||
27 | +gnulib_version="0e0635af0b23826911dc456bd0da40dcb19247de" | ||
28 | destdir="gnulib" | ||
29 | |||
30 | # Random extra gnulib files needed for findutils. | ||
31 | @@ -68,6 +68,7 @@ realloc | ||
32 | regex | ||
33 | rpmatch | ||
34 | savedir | ||
35 | +selinux-at | ||
36 | stat-macros | ||
37 | stat-time | ||
38 | stpcpy | ||
39 | diff --git a/lib/dircallback.c b/lib/dircallback.c | ||
40 | index 5dbf3b3..a692b38 100644 | ||
41 | --- a/lib/dircallback.c | ||
42 | +++ b/lib/dircallback.c | ||
43 | @@ -28,8 +28,8 @@ | ||
44 | #include <errno.h> | ||
45 | |||
46 | #include "fcntl--.h" | ||
47 | -#include "lstat.h" | ||
48 | #include "save-cwd.h" | ||
49 | +#include <sys/stat.h> | ||
50 | |||
51 | |||
52 | #ifdef HAVE_LOCALE_H | ||
53 | -- | ||
54 | 1.7.5.4 | ||
55 | |||
diff --git a/recipes-extended/findutils/findutils-4.4.2/findutils-with-selinux-supplemental.patch b/recipes-extended/findutils/findutils-4.4.2/findutils-with-selinux-supplemental.patch deleted file mode 100644 index f4db6ac..0000000 --- a/recipes-extended/findutils/findutils-4.4.2/findutils-with-selinux-supplemental.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | Subject: [PATCH] Fetch support for selinux in gnulib | ||
2 | |||
3 | This eliminates the need for the following patch: | ||
4 | findutils: support selinux and gnulib | ||
5 | |||
6 | This is done by fetching the latest gnulib updates | ||
7 | up to the point where the selinux-at module was | ||
8 | introduced from coreutils. | ||
9 | |||
10 | Upstream-Status: Backport | ||
11 | |||
12 | diff --git a/import-gnulib.config b/import-gnulib.config | ||
13 | index f2e8998..fa24d99 100644 | ||
14 | --- a/import-gnulib.config | ||
15 | +++ b/import-gnulib.config | ||
16 | @@ -1,7 +1,8 @@ | ||
17 | # findutils gnulib.config -*- sh -*- | ||
18 | |||
19 | # What version of gnulib to use? | ||
20 | -gnulib_version="e5573b1bad88bfabcda181b9e0125fb0c52b7d3b" | ||
21 | +gnulib_version="7dfa1250265017223e36c72713a7521421b4d27c" | ||
22 | destdir="gnulib" | ||
23 | |||
24 | # Random extra gnulib files needed for findutils. | ||
25 | @@ -68,6 +69,7 @@ realloc | ||
26 | regex | ||
27 | rpmatch | ||
28 | savedir | ||
29 | +selinux-at | ||
30 | stat-macros | ||
31 | stat-time | ||
32 | stpcpy | ||
diff --git a/recipes-extended/findutils/findutils_4.4.2.bbappend b/recipes-extended/findutils/findutils_4.4.2.bbappend index 5488839..ba56fbe 100644 --- a/recipes-extended/findutils/findutils_4.4.2.bbappend +++ b/recipes-extended/findutils/findutils_4.4.2.bbappend | |||
@@ -1,17 +1,16 @@ | |||
1 | PR .= ".3" | 1 | PR .= ".4" |
2 | 2 | ||
3 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" | 3 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" |
4 | 4 | ||
5 | SRC_URI += "git://git.yoctogit.savannah.gnu.org/gnulib.git" | 5 | SRC_URI += "git://git.savannah.gnu.org/gnulib.git;protocol=git;rev=0e0635af0b23826911dc456bd0da40dcb19247de" |
6 | SRC_URI += "file://findutils-with-selinux.patch" | 6 | SRC_URI += "file://findutils-with-selinux.patch" |
7 | SRC_URI += "file://findutils-with-selinux-supplemental.patch" | 7 | SRC_URI += "file://findutils-with-selinux-gnulib.patch" |
8 | SRCREV = "7dfa1250265017223e36c72713a7521421b4d27c" | ||
9 | 8 | ||
10 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'selinux', 'libselinux', '', d)}" | 9 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'selinux', 'libselinux', '', d)}" |
11 | 10 | ||
12 | EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'selinux', '--with-selinux', '--without-selinux', d)}" | 11 | EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'selinux', '--with-selinux', '--without-selinux', d)}" |
13 | 12 | ||
14 | #Make sure we call import-gnulib to reflect on the new changes to its config. | 13 | do_configure_prepend() { |
15 | do_configure_prepend () { | 14 | ./import-gnulib.sh -d ${WORKDIR}/git |
16 | ${S}/import-gnulib.sh | ||
17 | } | 15 | } |
16 | |||