Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Robert Yang <liezhi.yang@windriver.com>
To: "Burton, Ross" <ross.burton@intel.com>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] nss-myhostname: skip it when systemd
Date: Thu, 9 Oct 2014 21:25:52 +0800	[thread overview]
Message-ID: <54368CE0.9060601@windriver.com> (raw)
In-Reply-To: <CAJTo0LZ+6dC=FZFYO17YyCKNLr8=-wGFOGTmL+tE9teDKzhJ=g@mail.gmail.com>



On 10/09/2014 08:49 PM, Burton, Ross wrote:
> On 9 October 2014 10:45, Robert Yang <liezhi.yang@windriver.com> wrote:
>> +python () {
>> +       if bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d):
>> +               raise bb.parse.SkipPackage("'systemd' in DISTRO_FEATURES")
>> +}
>
> Please use distro_features_check for conciseness.

Sounds good, updated:
git://git.openembedded.org/openembedded-core-contrib rbt/nss

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..bbce9e9 100644
--- a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
+++ b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
@@ -11,7 +11,10 @@ SRC_URI = 
"http://0pointer.de/lennart/projects/nss-myhostname/nss-myhostname-${P
  SRC_URI[md5sum] = "d4ab9ac36c053ab8fb836db1cbd4a48f"
  SRC_URI[sha256sum] = 
"2ba744ea8d578d1c57c85884e94a3042ee17843a5294434d3a7f6c4d67e7caf2"

-inherit autotools
+inherit autotools distro_features_check
+
+# The systemd has its own copy of nss-myhostname
+CONFLICT_DISTRO_FEATURES = "systemd"

  pkg_postinst_${PN} () {
         sed -e '/^hosts:/s/\s*\<myhostname\>//' \


>
> Ross
>
>


      reply	other threads:[~2014-10-09 13:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-09  9:45 [PATCH 0/1] nss-myhostname: skip it when systemd Robert Yang
2014-10-09  9:45 ` [PATCH 1/1] " Robert Yang
2014-10-09 12:49   ` Burton, Ross
2014-10-09 13:25     ` Robert Yang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54368CE0.9060601@windriver.com \
    --to=liezhi.yang@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=ross.burton@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox