summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2012-06-20 17:42:54 +0800
committerXin Ouyang <Xin.Ouyang@windriver.com>2012-06-28 10:41:58 +0800
commit6975e78270dfb0f2fa803d2cc3843b893442cad2 (patch)
treec5a2f929b192e118484941b1c2a9313cceac5607
parent984a1f5d490a2ea7c5d74291168c4134b27436e2 (diff)
downloadmeta-selinux-6975e78270dfb0f2fa803d2cc3843b893442cad2.tar.gz
rpm: Build with selinux support.
Acked-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
-rw-r--r--recipes-devtools/rpm/rpm/rpm-fix-build-bug.patch25
-rw-r--r--recipes-devtools/rpm/rpm_5.4.9.bbappend14
2 files changed, 39 insertions, 0 deletions
diff --git a/recipes-devtools/rpm/rpm/rpm-fix-build-bug.patch b/recipes-devtools/rpm/rpm/rpm-fix-build-bug.patch
new file mode 100644
index 0000000..d3d36d8
--- /dev/null
+++ b/recipes-devtools/rpm/rpm/rpm-fix-build-bug.patch
@@ -0,0 +1,25 @@
1From: Xin Ouyang <Xin.Ouyang@windriver.com>
2Date: Mon, 25 Jun 2012 15:08:03 +0800
3Subject: [PATCH] rpm: fix build bug.
4
5Upstream-Status: Pending
6---
7 rpmio/macro.c | 2 +-
8 1 files changed, 1 insertions(+), 1 deletions(-)
9
10diff --git a/rpmio/macro.c b/rpmio/macro.c
11index 9f4cb01..cf9ede5 100644
12--- a/rpmio/macro.c
13+++ b/rpmio/macro.c
14@@ -99,7 +99,7 @@ const char * rpmMacrofiles = MACROFILES;
15 #include "debug.h"
16
17 /*@unchecked@*/
18-#if defined(WITH_AUGEAS) || defined(WITH_FICL) || defined(WITH_GPSEE) || defined(WITH_NIX) || defined(WITH_PERLEMBED) || defined(WITH_PYTHONEMBED) || defined(WITH_RUBYEMBED) || defined(WITH_SQLITE) || defined(WITH_SQUIRREL) || defined(WITH_TCL)
19+#if defined(WITH_AUGEAS) || defined(WITH_FICL) || defined(WITH_GPSEE) || defined(WITH_NIX) || defined(WITH_PERLEMBED) || defined(WITH_PYTHONEMBED) || defined(WITH_RUBYEMBED) || defined(WITH_SQLITE) || defined(WITH_SQUIRREL) || defined(WITH_TCL) || defined(WITH_SELINUX)
20 static int _globalI = 0x80000000;
21 #endif
22
23--
241.7.5.4
25
diff --git a/recipes-devtools/rpm/rpm_5.4.9.bbappend b/recipes-devtools/rpm/rpm_5.4.9.bbappend
new file mode 100644
index 0000000..831f581
--- /dev/null
+++ b/recipes-devtools/rpm/rpm_5.4.9.bbappend
@@ -0,0 +1,14 @@
1PR .= ".1"
2
3FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
4
5SRC_URI += "file://rpm-fix-build-bug.patch \
6 "
7
8FILES_${PN} += "${libdir}/rpm/bin/spooktool \
9 ${libdir}/rpm/bin/semodule \
10 "
11
12# Fix incorrect dependency in upstream version
13PACKAGECONFIG[selinux] = "${WITH_SELINUX},${WITHOUT_SELINUX},libselinux,"
14PACKAGECONFIG_append = " ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"