[OE-core] [RFC PATCH 3/7][dora] Fix conflict between procps and base-files

Mark Hatle mark.hatle at windriver.com
Thu Dec 5 22:57:42 UTC 2013


From: "Junxian.Xiao" <Junxian.Xiao at windriver.com>

-- Sent for YP compliance --

These two packages both install /etc/sysctl.conf, but we should
make sure we will install this file in base-files package.

Signed-off-by: Junxian.Xiao <Junxian.Xiao at windriver.com>
Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
---
 meta/recipes-extended/procps/procps_3.2.8.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-extended/procps/procps_3.2.8.bb b/meta/recipes-extended/procps/procps_3.2.8.bb
index e4b82e0..03b2b64 100644
--- a/meta/recipes-extended/procps/procps_3.2.8.bb
+++ b/meta/recipes-extended/procps/procps_3.2.8.bb
@@ -23,6 +23,10 @@ EXTRA_OEMAKE = 'CFLAGS="${CFLAGS} -I${STAGING_INCDIR}" \
                 install="install -D" \
                 ldconfig=echo'
 
+ALTERNATIVE_${PN} += "sysctlconf"
+ALTERNATIVE_LINK_NAME[sysctlconf] = "${sysconfdir}/sysctl.conf"
+ALTERNATIVE_PRIORITY[sysctlconf] = "110"
+
 do_install_append () {
 	install -d ${D}${sysconfdir}
 	install -m 0644 ${WORKDIR}/sysctl.conf ${D}${sysconfdir}/sysctl.conf
-- 
1.8.1.2.545.g2f19ada




More information about the Openembedded-core mailing list