[OE-core] [oe-core][RFC][PATCH] nss-myhostname: blacklist because of conflict with systemd
Robert Yang
liezhi.yang at windriver.com
Thu Oct 9 09:38:35 UTC 2014
On 10/07/2014 06:09 PM, Burton, Ross wrote:
> On 7 October 2014 02:12, Martin Jansa <martin.jansa at gmail.com> wrote:
>> +PNBLACKLIST[nss-myhostname] = "CONFLICT: systemd provides sysroots/qemux86-64/usr/lib/libnss_myhostname.so.2"
>
> How about we don't build throw a SkipPackage if nss-myhostname is
> building with the systemd DISTRO_FEATURE, as the conflict is because
> systemd has its own copy of nss-myhostname in the source tree?
>
Do you mean something like this ? I will send a patch for it and add Martin
in the CC list.
diff --git a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
index 1237602..071e639 100644
--- a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
+++ b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
@@ -13,6 +13,12 @@ SRC_URI[sha256sum] =
"2ba744ea8d578d1c57c85884e94a3042ee17843a5294434d3a7f6c4d67
inherit autotools
+# The systemd has its own copy of nss-myhostname
+python () {
+ if bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d):
+ raise bb.parse.SkipPackage("'systemd' in DISTRO_FEATURES")
+}
+
pkg_postinst_${PN} () {
sed -e '/^hosts:/s/\s*\<myhostname\>//' \
-e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2
myhostname \3\4\5/' \
// Robert
> Ross
>
More information about the Openembedded-core
mailing list