Skip to contentSkip to conversation

nss-myhostname: blacklist because of conflict with systemd

RFC PATCH In review Martin Jansa 3 participants 3 messages Oct 7, 2014 – Oct 9, 2014

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 nss-myhostname: blacklist because of conflict with systemd

---
 meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb +2 -0
index 1237602..575ad9d 100644
@@ -11,6 +11,8 @@ SRC_URI = "http://0pointer.de/lennart/projects/nss-myhostname/nss-myhostname-${P
 SRC_URI[md5sum] = "d4ab9ac36c053ab8fb836db1cbd4a48f"
 SRC_URI[sha256sum] = "2ba744ea8d578d1c57c85884e94a3042ee17843a5294434d3a7f6c4d67e7caf2"
 
+PNBLACKLIST[nss-myhostname] = "CONFLICT: systemd provides sysroots/qemux86-64/usr/lib/libnss_myhostname.so.2"
+
 inherit autotools
 
 pkg_postinst_${PN} () {
Signature · 1 line
2.1.1
#1 lore raw
Quoted 1 line · Martin Jansa

+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?

Ross

#2 lore raw
Quoted 7 lines · Ross
Quoted 1 line · Martin Jansa

+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.

meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb +6 -0
index 1237602..071e639 100644
@@ -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

Quoted 2 lines

Ross