From patchwork Thu Aug 15 05:56:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 171388 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1769957ily; Wed, 14 Aug 2019 22:57:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhJjpFUKhobqjIApTe58WDb2TU2q3eOeQdf1+uSyfCIRI/T6drQSytnL9nc9fKaGBjGPQN X-Received: by 2002:a65:56c1:: with SMTP id w1mr2203944pgs.395.1565848641067; Wed, 14 Aug 2019 22:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565848641; cv=none; d=google.com; s=arc-20160816; b=i5toU/KV+84ysm77wEMjAaa2JgW7CUvB+rZMPEMWzPcmI+ajiUc6zyokZye89IN3AH GDClVZCOkgGACpefpY1ieSixCEanUNlnD640N57OuGiEiM9jw+h5wK03s3aptpyI3yzR fG1nuXur7iXB/D2GARfs7221n+NjC9rAHJgCqqAPUYYxkzANBOWMJ37GvwuWJ7r69smq C9BXkNAdgsHV/yh+woNPh3jH0EFojbmfDlf/LgUgKkGPLXGTLd4iYMsmPHmXB9MaIC7C jSC2kXnlRhb1MrOh7yiOvS3PGCOY0GwZYp4uARuLt6/8SFB7uNc4eR7YhuWOeVfIc5d1 AWWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=yq6/7Jt+bjSUDPtN+P50GJriSprM5BtfxdWyg+6kg5Y=; b=yqY0bMgjLbySE4r3fEmBUeg5u97MTpLfW9JRwOf227gzg8+umo9TepiU/V+QeRMccM hwSu9EoflPwTHyiAh4tCOkMd7HOMyyjykk+KozrIMYOkkmJ7zqggvwkp+Puq+MI2ZtQ0 wMGLHivFXz9SLr2aRWXYhA5rN+kR3CsD8kOJUY39jR3/1E2UgxqqlvZw4xsPuPQCxYyO G6yjffZ85YeSSzWk+Io4XW56TEqLe7LPVp3WGiVv77YWsvE7hFwHRDtNR2v+/RIsErnJ CnNc38NFfCSzEivZnS6Sm37oOXMCQ2+1SCRGf7o79jJSIcUo9DtY24tvxO7GJ4umBPYX ZRRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=iewgRJwE; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id e13si1238158pgs.275.2019.08.14.22.57.10; Wed, 14 Aug 2019 22:57:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=iewgRJwE; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3B4C77F2AB; Thu, 15 Aug 2019 05:57:07 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by mail.openembedded.org (Postfix) with ESMTP id C442C7F29D for ; Thu, 15 Aug 2019 05:57:05 +0000 (UTC) Received: by mail-pl1-f194.google.com with SMTP id c2so697631plz.13 for ; Wed, 14 Aug 2019 22:57:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=F/P5mBb6vSshdZm48hiQW2YdtnA58ht19R3mcVV+owU=; b=iewgRJwEmwxHN/BGO63vvv/LBxerJK/LLuWIqUdqeSdKU/7CFJ2hvz2v2OM4tzo531 y2YPB2m8hLfLQGReR+4sX10gm4C0e5rj/bu/OlNiTlht6J7gCs8Up7q1VIhOh7YQaUDK U5WoSmlUy6uwnaCPctTjbhgsdYIPXETex1KHA8HWp6gajCQKPXfumcFaX01iMxrRVOqq G4XEQSTEbPHgAJ5eDeN/C8+sJeKqDPfU6IWb7Y7asuTJ1dOv5bNscjpVfynr1jQnrGKh 8HLr4qO/Zty2ADqZyIH+eYCfu85Wax7NxR+am4wcrI4Mn69dgciz/+FYslN6fXOvDB2H ti4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=F/P5mBb6vSshdZm48hiQW2YdtnA58ht19R3mcVV+owU=; b=ofLgTsXvhMznH/RsAxfmEiILls4+cffSNTlqXs/WvokBMpBM+WLIUmtrsCInwX+8go CIf6iCN4bZCzI4OfA+xxT8Cm3Yay0f11UMES0vnkMmGpuO+lsJwlql6zgWvD68/q+kce 8rvdmi02RdntvyAZbRNGHTV9JqBD3bdit8hURQYTJi59HSSlQ94QcBva/5ganVefy4+Q ICmcUfxNk7gQfffDjL9bc1k1D3gLDTdLbbn9jJ2UMgoFUo4xOhy3+MMuoyP8fcaxZeUM TJox6XANEiYMr+fgI9ee+0vim+WdB8pf2vkfNi096uhKw5ir5rF7GlBWWINfuYf45JsX EtPg== X-Gm-Message-State: APjAAAXWdg0TXlOpsFYKQN2nUnrCxfxP2HNRyGCjyCskCq5as+za5KCn lr7WAcdnD4VoWwJKpV08kINM3d2alVQ= X-Received: by 2002:a17:902:1a4:: with SMTP id b33mr2785436plb.141.1565848626212; Wed, 14 Aug 2019 22:57:06 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id a12sm1285396pgv.48.2019.08.14.22.57.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2019 22:57:05 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 14 Aug 2019 22:56:54 -0700 Message-Id: <20190815055655.6759-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH V2 1/2] util-linux: Make pam specific logic apply to target recipe alone X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org This helps with a case where a distro builds one image with systemd and another with sysvinit, it ends up recompiling almost everything since python3-native gets rebuilt and tracing dependencies with bitbake-diffsigs shows that the chain ends at util-linux-native being recompiled because distro features now does or does not have 'pam' Hash for dependent task python/python3_3.7.4.bb:do_prepare_recipe_sysroot:virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes-devt ools/python/python3_3.7.4.bb changed from 8befaac4f995aaff3f95d27c9caaf1006f86e1344b02c1ae82f5d12f885f2240 to 2a45fe0cd0d3640a88c4a5c8b1880c4e9 a089cc7446a91d2a920c1cef6fa916a Hash for dependent task util-linux/util-linux_2.34.bb:do_populate_sysroot:virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes- core/util-linux/util-linux_2.34.bb changed from 0db292cb2e37d5788bdcf51038b2802d748b719d860aca3a26d7a793b0cf3905 to 15d6e165f025f10c2c455df8a87 5cafe021eaed4214c793e708d4827a58ca89d Hash for dependent task util-linux/util-linux_2.34.bb:do_install:virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes-core/util-linux/util-linux_2.34.bb changed from 54bb4ee6bdb5c7fc260dabddb4932cb0e554a62cd92aba080a18306291fb470b to e25b1119ce8dd7ca43fbd2db771e04fa 6ff6b9d701fd78ac6c443224b036ed9f basehash changed from 8e8687a866689a697001dedc0a43f478e68e6efe270bd77362f24c6000f9e882 to 62df6610eab9c1b1a17d7132943507641c8538690 f26186843c86144d4598e64 Variable do_install value changed: rm -f ${D}${bindir}/chkdupexe - if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then + if [ "${@bb.utils.filter('PACKAGECONFIG', 'pam', d)}" ]; then install -d ${D}${sysconfdir}/pam.d install -m 0644 ${WORKDIR}/runuser.pamd ${D}${sysconfdir}/pam.d/runuser install -m 0644 ${WORKDIR}/runuser-l.pamd ${D}${sysconfdir}/pam.d/runuser-l @@ -47,5 +47,4 @@ rm -f ${D}${base_sbindir}/nologin rm -f ${D}${base_bindir}/kill -DISTRO_FEATURES{pam} = Unset PACKAGECONFIG{pam} = Unset So far it seems this pam conditional code in util-linux is target specific and would not apply to native or nativesdk recipes Signed-off-by: Khem Raj --- v2: - Add missing do_install append qualifier - No need to mark ALTERNATIVE_${PN}-doc target specific meta/recipes-core/util-linux/util-linux.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 2.22.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index 84c7012752..1fa82363b1 100644 --- a/meta/recipes-core/util-linux/util-linux.inc +++ b/meta/recipes-core/util-linux/util-linux.inc @@ -190,20 +190,19 @@ do_install () { echo 'MOUNTALL="-t nonfs,nosmbfs,noncpfs"' > ${D}${sysconfdir}/default/mountall rm -f ${D}${bindir}/chkdupexe +} - if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then +do_install_append_class-target () { + if [ "${@bb.utils.filter('PACKAGECONFIG', 'pam', d)}" ]; then install -d ${D}${sysconfdir}/pam.d install -m 0644 ${WORKDIR}/runuser.pamd ${D}${sysconfdir}/pam.d/runuser install -m 0644 ${WORKDIR}/runuser-l.pamd ${D}${sysconfdir}/pam.d/runuser-l - fi - if [ "${@bb.utils.filter('PACKAGECONFIG', 'pam', d)}" ]; then # Required for "su -" aka "su --login" because # otherwise it uses "other", which has "auth pam_deny.so" # and thus prevents the operation. ln -s su ${D}${sysconfdir}/pam.d/su-l fi } - # nologin causes a conflict with shadow-native # kill causes a conflict with coreutils-native (if ${bindir}==${base_bindir}) do_install_append_class-native () { From patchwork Thu Aug 15 05:56:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 171389 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp1769973ily; Wed, 14 Aug 2019 22:57:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkbY5F0PtqcTlVL1q6gqHOJTtBsCPVJPY4khKaLWpb2gsZ4CvvRhG9o/FMAExTUvRlpzw4 X-Received: by 2002:a17:90a:a489:: with SMTP id z9mr792372pjp.24.1565848642259; Wed, 14 Aug 2019 22:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565848642; cv=none; d=google.com; s=arc-20160816; b=OJKvTcLN+ai4mI2m19k4Sj2sZJx2QKZEd/kcGri/okTnj7pWlsUDIUnsvZeT6HczRN gNDKC+yOUjMNfMwJBSmz4kX8EotgVDAv5T668QNdJST91Vk5nref2I6+wb1oHPm22EbH /RmLkGroXWNagNK1YqL6ebDEvaq5noa4ODSek1CQs9B4ozuJXoiw/mILL9ZthfXXjSC5 UY6nCE1/fRJvZuY6LC2byWdaMzswau95qa+ReBk4P3JSHt43fohiZrYMCoOtsCsP76Wm yC5Xh+vylIhitKwWKdOiyC+aZL3jeCrliJH8BFkBahNfPCOvmVorhhH7d8q2hlgMF20c UK4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=qkJFiVrg4VYUW5ytvjn/YLT/1hsYFJp+NGe5F8lozTQ=; b=dFsDJ6GB075tDDOi79lM9fYjUliTduyT0WEVDRgjS6oRdEIaGPpJrc9l+p1STzzNfg 9PKduEKD3emJEM8URVGvoXVfVSAPQ/ecMH1JZhFauRLK42FuVs5C2tNTprrZEa2AKEy/ hdD/l+dVg/Aut1E1AidMNzJrXp/jHA0IRYXvgXsb5Q3YoHC0yAxJJdsW6fZIJDM9vWWB crBmkIjiGjyAqpYY3e8Ujl8gzbtIIReo+P0KMAARN9tP0vNvHawwiBJSauxr4YGQL5G8 echF2zK/QiOmB9qZrxe1CS3+InQfhnv7HCPt0WOtfPgikQ5wx430CsLuQkBuvySL+zvT UXWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=VBNG5jYW; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id 1si1371713plz.129.2019.08.14.22.57.21; Wed, 14 Aug 2019 22:57:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=VBNG5jYW; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 0E1187F2B6; Thu, 15 Aug 2019 05:57:19 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mail.openembedded.org (Postfix) with ESMTP id 42E547F29D for ; Thu, 15 Aug 2019 05:57:06 +0000 (UTC) Received: by mail-pl1-f180.google.com with SMTP id i2so723714plt.1 for ; Wed, 14 Aug 2019 22:57:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+mXViqYx47wjQl6EKaIq9HCtv4gonR5UTnUh1BDb5O4=; b=VBNG5jYWihR51RC/WQgJKX6LmTCaraKYZfEI5VTUcUYP/DTZ4bk/vPcyhLwq99xeze vizVwdCuSUJ9LPCACbED2n0wmT4tYXb0b/Un/kZG3/ccew/R1jFYaG/qsRp38f2A7ibe DiI2GTot8hcyURGHLPiUcP9s7z1hHre44w3es1zw45VQwACPon0WNH4dfBWLrhJX6Fhh U2nfQ4xSQhXe9PdKUm+afh+bWisFBFJOVjhgvdAH4tFAlDyHPhx/5AjZsJL90SAbm/BZ gTKlLboGRzWVkgmfvTXI+fL/FGTEJR2/V9ykL57YyMNYbw1stBS/lTa/iUPvIJ1TY/lH BDbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+mXViqYx47wjQl6EKaIq9HCtv4gonR5UTnUh1BDb5O4=; b=r1WsXdhEJSqNyb82t5Ky6+QscUA2fF7CZsarRbgZcMHqu970AJFnsz2nx2wpvxI6AC yi9gXhsQYYAE/8Vp73xV0oY6xaoSynR+mKreFTIIYy8+XfZrXk36wrkh5U1HcQ33/7QY BZ4Ui/NUdOW9+b7NWqsAVxoPWSCODfXl4vI9LX1QK0jM9ej7+83TKKSDxZVRsKY6VkRO U1mroV1n7iwZD2YIUXrhEyVZp4eb5fNkMYZLdPL8EmYFLVqWY4CURjdJWJrXArPwtQ8u b/KTnuV2kK2ukZXqh2jGNla4pRvzvhS6NhBfWS5hCAc/TeEdQyPhjsKnWxgfhMbUi/ZV q3Xw== X-Gm-Message-State: APjAAAW4XGDRSgMj1KAryHu2Q8DeVsM1eTms1guVxTAfJjufVwlKmT6k ApDCNPKAgE9IMZ9Lvf7XXDzmIXDoxOg= X-Received: by 2002:a17:902:e493:: with SMTP id cj19mr2846402plb.292.1565848626865; Wed, 14 Aug 2019 22:57:06 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id a12sm1285396pgv.48.2019.08.14.22.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2019 22:57:06 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 14 Aug 2019 22:56:55 -0700 Message-Id: <20190815055655.6759-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190815055655.6759-1-raj.khem@gmail.com> References: <20190815055655.6759-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH V2 2/2] systemd.bbclass: Limit rm_sysvinit_initddir and rm_systemd_unitdir to target alone X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org These postfuncs cause native recipes to rebuild when changing system init provider between sysvinit and systemd. Some of these native recipes are pretty early in dependency chain ( e.g. util-linux ) which can casue rebuild of pretty much everything including compiler. Found with bitbake-diffsigs Hash for dependent task python/python3_3.7.4.bb:do_prepare_recipe_sysroot:virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes-devt ools/python/python3_3.7.4.bb changed from 2a45fe0cd0d3640a88c4a5c8b1880c4e9a089cc7446a91d2a920c1cef6fa916a to bc2a0921cce50da1b7be3b59a3d8211ec 2a31262493ffa5909acbb7116fad3bf Hash for dependent task util-linux/util-linux_2.34.bb:do_populate_sysroot:virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes- core/util-linux/util-linux_2.34.bb changed from 15d6e165f025f10c2c455df8a875cafe021eaed4214c793e708d4827a58ca89d to 54e542d5da99cacfc9290ef5d27 9de50bdcb9195f67ae6dfff59fe41d10f7bd2 Hash for dependent task util-linux/util-linux_2.34.bb:do_install:virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes-core/ util-linux/util-linux_2.34.bb changed from e25b1119ce8dd7ca43fbd2db771e04fa6ff6b9d701fd78ac6c443224b036ed9f to bb5b172a83e7edd272402a9dcd80c4e1 29aa1ecb824c2cfa388086cfed24fef5 basehash changed from 62df6610eab9c1b1a17d7132943507641c8538690f26186843c86144d4598e64 to 80471f7c0bded9d1b593da69708b0e0f10882db08 5e1bf769edb3018e6c744d0 Variable rm_sysvinit_initddir value changed: @@ -11,4 +11,4 @@ shutil.rmtree(sysv_initddir) DISTRO_FEATURES{systemd} = Unset -DISTRO_FEATURES{sysvinit} = Set +DISTRO_FEATURES{sysvinit} = Unset Signed-off-by: Khem Raj --- v2: Rebase meta/classes/systemd.bbclass | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) -- 2.22.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass index d1cb17dc8d..747055b8fa 100644 --- a/meta/classes/systemd.bbclass +++ b/meta/classes/systemd.bbclass @@ -214,7 +214,6 @@ python rm_systemd_unitdir (){ if (os.path.exists(systemd_libdir) and not os.listdir(systemd_libdir)): os.rmdir(systemd_libdir) } -do_install[postfuncs] += "rm_systemd_unitdir " python rm_sysvinit_initddir (){ import shutil @@ -229,4 +228,8 @@ python rm_sysvinit_initddir (){ if (os.path.exists(systemd_system_unitdir) and os.listdir(systemd_system_unitdir)): shutil.rmtree(sysv_initddir) } -do_install[postfuncs] += "rm_sysvinit_initddir " + +do_install[postfuncs] += "${RMINITDIR} " +RMINITDIR_class-target = " rm_sysvinit_initddir rm_systemd_unitdir " +RMINITDIR = "" +