diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2013-06-18 11:40:43 +0800 |
---|---|---|
committer | Xin Ouyang <Xin.Ouyang@windriver.com> | 2013-06-18 12:38:26 +0800 |
commit | 4d840e5e841f013cc8e00409db2e275ebda2e641 (patch) | |
tree | dfb4e3335c782084f1f878b54c8837f18e9b5b8b | |
parent | 908a4aadce02adf06d0441403f5e043c836c70aa (diff) | |
download | meta-selinux-4d840e5e841f013cc8e00409db2e275ebda2e641.tar.gz |
selinux packages: uprev git recipes to lastest tag 20130423.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
10 files changed, 95 insertions, 19 deletions
diff --git a/recipes-security/selinux/checkpolicy_git.bb b/recipes-security/selinux/checkpolicy_git.bb index 32240c1..bd59001 100644 --- a/recipes-security/selinux/checkpolicy_git.bb +++ b/recipes-security/selinux/checkpolicy_git.bb | |||
@@ -1,5 +1,5 @@ | |||
1 | PR = "r2" | 1 | PR = "r0" |
2 | PV = "2.1.8+git${SRCPV}" | 2 | PV = "2.1.12+git${SRCPV}" |
3 | 3 | ||
4 | include selinux_git.inc | 4 | include selinux_git.inc |
5 | include ${BPN}.inc | 5 | include ${BPN}.inc |
diff --git a/recipes-security/selinux/libselinux/libselinux-pcre-link-order.patch b/recipes-security/selinux/libselinux/libselinux-pcre-link-order.patch new file mode 100644 index 0000000..f011f1a --- /dev/null +++ b/recipes-security/selinux/libselinux/libselinux-pcre-link-order.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | Subject: [PATCH] libselinux: Put -lpcre in LDADD for correct linking order | ||
2 | |||
3 | Upstream-Status: pending | ||
4 | |||
5 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
6 | --- | ||
7 | src/Makefile | 4 ++-- | ||
8 | 1 files changed, 2 insertions(+), 2 deletions(-) | ||
9 | |||
10 | diff --git a/src/Makefile b/src/Makefile | ||
11 | index c4f5d4c..8f5aec5 100644 | ||
12 | --- a/src/Makefile | ||
13 | +++ b/src/Makefile | ||
14 | @@ -20,7 +20,7 @@ RUBYINC ?= $(shell pkg-config --cflags ruby) | ||
15 | RUBYINSTALL ?= $(LIBDIR)/ruby/site_ruby/$(RUBYLIBVER)/$(RUBYPLATFORM) | ||
16 | LIBBASE=$(shell basename $(LIBDIR)) | ||
17 | |||
18 | -LDFLAGS ?= -lpcre -lpthread | ||
19 | +LDADD ?= -lpcre -lpthread | ||
20 | |||
21 | VERSION = $(shell cat ../VERSION) | ||
22 | LIBVERSION = 1 | ||
23 | @@ -116,7 +116,7 @@ $(LIBA): $(OBJS) | ||
24 | $(RANLIB) $@ | ||
25 | |||
26 | $(LIBSO): $(LOBJS) | ||
27 | - $(CC) $(CFLAGS) -shared -o $@ $^ -ldl $(LDFLAGS) -L$(LIBDIR) -Wl,-soname,$(LIBSO),-z,defs,-z,relro | ||
28 | + $(CC) $(CFLAGS) -shared -o $@ $^ -ldl $(LDFLAGS) -L$(LIBDIR) -Wl,-soname,$(LIBSO),-z,defs,-z,relro $(LDADD) | ||
29 | ln -sf $@ $(TARGET) | ||
30 | |||
31 | $(LIBPC): $(LIBPC).in ../VERSION | ||
diff --git a/recipes-security/selinux/libselinux_git.bb b/recipes-security/selinux/libselinux_git.bb index 902e859..6f93fd4 100644 --- a/recipes-security/selinux/libselinux_git.bb +++ b/recipes-security/selinux/libselinux_git.bb | |||
@@ -1,9 +1,10 @@ | |||
1 | PR = "r3" | 1 | PR = "r0" |
2 | PV = "2.1.9+git${SRCPV}" | 2 | PV = "2.1.13+git${SRCPV}" |
3 | 3 | ||
4 | include selinux_git.inc | 4 | include selinux_git.inc |
5 | include ${BPN}.inc | 5 | include ${BPN}.inc |
6 | 6 | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0" | 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0" |
8 | 8 | ||
9 | SRC_URI += "file://libselinux-fix-init-load-policy.patch" | 9 | SRC_URI += "file://libselinux-fix-init-load-policy.patch \ |
10 | file://libselinux-pcre-link-order.patch" | ||
diff --git a/recipes-security/selinux/libsemanage_git.bb b/recipes-security/selinux/libsemanage_git.bb index b3819a0..6553c6b 100644 --- a/recipes-security/selinux/libsemanage_git.bb +++ b/recipes-security/selinux/libsemanage_git.bb | |||
@@ -1,14 +1,13 @@ | |||
1 | PR = "r5" | 1 | PR = "r0" |
2 | PV = "2.1.6+git${SRCPV}" | 2 | PV = "2.1.10+git${SRCPV}" |
3 | 3 | ||
4 | include selinux_git.inc | 4 | include selinux_git.inc |
5 | include ${BPN}.inc | 5 | include ${BPN}.inc |
6 | 6 | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343" | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343" |
8 | 8 | ||
9 | SRC_URI += "file://Fix-segfault-for-standard-policy.patch \ | 9 | SRC_URI += "\ |
10 | file://libsemanage-Fix-execve-segfaults-on-Ubuntu.patch \ | 10 | file://libsemanage-Fix-execve-segfaults-on-Ubuntu.patch \ |
11 | file://libsemanage-semanage.conf-for-cross-compile.patch \ | ||
12 | file://libsemanage-fix-path-len-limit.patch \ | 11 | file://libsemanage-fix-path-len-limit.patch \ |
13 | file://libsemanage-fix-path-nologin.patch \ | 12 | file://libsemanage-fix-path-nologin.patch \ |
14 | file://libsemanage-drop-Wno-unused-but-set-variable.patch \ | 13 | file://libsemanage-drop-Wno-unused-but-set-variable.patch \ |
diff --git a/recipes-security/selinux/libsepol_git.bb b/recipes-security/selinux/libsepol_git.bb index f7d801c..1fa83a4 100644 --- a/recipes-security/selinux/libsepol_git.bb +++ b/recipes-security/selinux/libsepol_git.bb | |||
@@ -1,5 +1,5 @@ | |||
1 | PR = "r1" | 1 | PR = "r0" |
2 | PV = "2.1.4+git${SRCPV}" | 2 | PV = "2.1.9+git${SRCPV}" |
3 | 3 | ||
4 | include selinux_git.inc | 4 | include selinux_git.inc |
5 | include ${BPN}.inc | 5 | include ${BPN}.inc |
diff --git a/recipes-security/selinux/policycoreutils.inc b/recipes-security/selinux/policycoreutils.inc index 434d7ab..08b14eb 100644 --- a/recipes-security/selinux/policycoreutils.inc +++ b/recipes-security/selinux/policycoreutils.inc | |||
@@ -52,6 +52,11 @@ FILES_system-config-selinux = "${datadir}/system-config-selinux/*" | |||
52 | 52 | ||
53 | inherit pythonnative | 53 | inherit pythonnative |
54 | 54 | ||
55 | export STAGING_INCDIR | ||
56 | export STAGING_LIBDIR | ||
57 | export BUILD_SYS | ||
58 | export HOST_SYS | ||
59 | |||
55 | AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `" | 60 | AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `" |
56 | PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `" | 61 | PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `" |
57 | EXTRA_OEMAKE += "${@target_selinux(d, 'PAMH=${PAMH} AUDITH=${AUDITH}', 'PAMH= AUDITH= ')} INOTIFYH=n" | 62 | EXTRA_OEMAKE += "${@target_selinux(d, 'PAMH=${PAMH} AUDITH=${AUDITH}', 'PAMH= AUDITH= ')} INOTIFYH=n" |
@@ -70,6 +75,14 @@ do_compile_virtclass-native() { | |||
70 | done | 75 | done |
71 | } | 76 | } |
72 | 77 | ||
78 | do_compile_prepend() { | ||
79 | export PYTHON=python | ||
80 | export PYLIBVER='python${PYTHON_BASEVERSION}' | ||
81 | export PYTHON_CPPFLAGS="-I${STAGING_INCDIR}/${PYLIBVER}" | ||
82 | export PYTHON_LDFLAGS="${STAGING_LIBDIR}/lib${PYLIBVER}.so" | ||
83 | export PYTHON_SITE_PKG="${libdir}/${PYLIBVER}/site-packages" | ||
84 | } | ||
85 | |||
73 | do_install_virtclass-native() { | 86 | do_install_virtclass-native() { |
74 | for PCU_CMD in ${PCU_NATIVE_CMDS} ; do | 87 | for PCU_CMD in ${PCU_NATIVE_CMDS} ; do |
75 | oe_runmake -C $PCU_CMD install \ | 88 | oe_runmake -C $PCU_CMD install \ |
diff --git a/recipes-security/selinux/policycoreutils/policycoreutils-fix-strict-prototypes.patch b/recipes-security/selinux/policycoreutils/policycoreutils-fix-strict-prototypes.patch new file mode 100644 index 0000000..9bb353a --- /dev/null +++ b/recipes-security/selinux/policycoreutils/policycoreutils-fix-strict-prototypes.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From 5944e9908fc12d69d19a1d24128cbc6d1a423c3d Mon Sep 17 00:00:00 2001 | ||
2 | From: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
3 | Date: Tue, 18 Jun 2013 12:29:00 +0800 | ||
4 | Subject: [PATCH] policycoreutils: fix build strict-prototypes failure | ||
5 | |||
6 | | policy.c:90:6: error: function declaration isn't a prototype | ||
7 | [-Werror=strict-prototypes] | ||
8 | | cc1: all warnings being treated as errors | ||
9 | | error: command 'i586-poky-linux-gcc' failed with exit status 1 | ||
10 | | make[1]: *** [python-build] Error 1 | ||
11 | |||
12 | Upstream-Status: pending | ||
13 | |||
14 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
15 | --- | ||
16 | sepolicy/policy.c | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/sepolicy/policy.c b/sepolicy/policy.c | ||
20 | index 4eca22d..e454e75 100644 | ||
21 | --- a/sepolicy/policy.c | ||
22 | +++ b/sepolicy/policy.c | ||
23 | @@ -87,7 +87,7 @@ static PyMethodDef methods[] = { | ||
24 | {NULL, NULL, 0, NULL} /* sentinel */ | ||
25 | }; | ||
26 | |||
27 | -void init_policy() { | ||
28 | +void init_policy(void) { | ||
29 | PyObject *m; | ||
30 | m = Py_InitModule("_policy", methods); | ||
31 | init_info(m); | ||
32 | -- | ||
33 | 1.7.9.5 | ||
34 | |||
diff --git a/recipes-security/selinux/policycoreutils_git.bb b/recipes-security/selinux/policycoreutils_git.bb index cef84f1..fb7b48f 100644 --- a/recipes-security/selinux/policycoreutils_git.bb +++ b/recipes-security/selinux/policycoreutils_git.bb | |||
@@ -1,11 +1,9 @@ | |||
1 | PR = "r7" | 1 | PR = "r0" |
2 | PV = "2.1.10+git${SRCPV}" | 2 | PV = "2.1.14+git${SRCPV}" |
3 | 3 | ||
4 | include selinux_git.inc | 4 | include selinux_git.inc |
5 | include ${BPN}.inc | 5 | include ${BPN}.inc |
6 | 6 | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" |
8 | 8 | ||
9 | SRC_URI += "file://policycoreutils-fix-format-security.patch \ | 9 | SRC_URI += "file://policycoreutils-fix-strict-prototypes.patch" |
10 | file://policycoreutils-remove-empty-po-files.patch \ | ||
11 | " | ||
diff --git a/recipes-security/selinux/selinux_git.inc b/recipes-security/selinux/selinux_git.inc index 5dd1aad..37ea8e8 100644 --- a/recipes-security/selinux/selinux_git.inc +++ b/recipes-security/selinux/selinux_git.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | SRCREV = "339f8079d7b9dd1e0b0138e2d096dc7c60b2092e" | 1 | SRCREV = "3f52a123af40bae33bde2a1f2ecfb2320b61f9ad" |
2 | 2 | ||
3 | SRC_URI = "git://oss.tresys.com/git/selinux.git;protocol=http" | 3 | SRC_URI = "git://oss.tresys.com/git/selinux.git;protocol=http" |
4 | SRC_URI[md5sum] = "4ec64a0d24aaa77c80b86e74d271e464" | 4 | SRC_URI[md5sum] = "4ec64a0d24aaa77c80b86e74d271e464" |
diff --git a/recipes-security/selinux/sepolgen_git.bb b/recipes-security/selinux/sepolgen_git.bb index 4c8b7df..710019d 100644 --- a/recipes-security/selinux/sepolgen_git.bb +++ b/recipes-security/selinux/sepolgen_git.bb | |||
@@ -1,5 +1,5 @@ | |||
1 | PR = "r1" | 1 | PR = "r0" |
2 | PV = "1.1.5+git${SRCPV}" | 2 | PV = "1.1.9+git${SRCPV}" |
3 | 3 | ||
4 | include selinux_git.inc | 4 | include selinux_git.inc |
5 | include ${BPN}.inc | 5 | include ${BPN}.inc |