Openembedded Core Discussions
 help / color / mirror / Atom feed
* [RFC][PATCH] nss-myhostname: blacklist because of conflict with systemd
@ 2014-10-07  1:12 Martin Jansa
  2014-10-07 10:09 ` Burton, Ross
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Jansa @ 2014-10-07  1:12 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb | 2 ++
 1 file changed, 2 insertions(+)

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..575ad9d 100644
--- a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
+++ b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
@@ -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} () {
-- 
2.1.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [RFC][PATCH] nss-myhostname: blacklist because of conflict with systemd
  2014-10-07  1:12 [RFC][PATCH] nss-myhostname: blacklist because of conflict with systemd Martin Jansa
@ 2014-10-07 10:09 ` Burton, Ross
  2014-10-09  9:38   ` Robert Yang
  0 siblings, 1 reply; 3+ messages in thread
From: Burton, Ross @ 2014-10-07 10:09 UTC (permalink / raw)
  To: Martin Jansa; +Cc: OE-core

On 7 October 2014 02:12, Martin Jansa <martin.jansa@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?

Ross


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC][PATCH] nss-myhostname: blacklist because of conflict with systemd
  2014-10-07 10:09 ` Burton, Ross
@ 2014-10-09  9:38   ` Robert Yang
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Yang @ 2014-10-09  9:38 UTC (permalink / raw)
  To: Burton, Ross, Martin Jansa; +Cc: OE-core



On 10/07/2014 06:09 PM, Burton, Ross wrote:
> On 7 October 2014 02:12, Martin Jansa <martin.jansa@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
>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-10-09  9:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-07  1:12 [RFC][PATCH] nss-myhostname: blacklist because of conflict with systemd Martin Jansa
2014-10-07 10:09 ` Burton, Ross
2014-10-09  9:38   ` Robert Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox