[OE-core] [PATCH 1/1] nss-myhostname: skip it when systemd

Robert Yang liezhi.yang at windriver.com
Thu Oct 9 13:25:52 UTC 2014



On 10/09/2014 08:49 PM, Burton, Ross wrote:
> On 9 October 2014 10:45, Robert Yang <liezhi.yang at 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
>
>



More information about the Openembedded-core mailing list