<div dir="ltr">Did you test this?<div><br></div><div><span style="font-size:12.800000190734863px">+PACKAGECONFIG[python] = &quot;--with-python=${PYTHON},--</span><wbr style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">without-python,python3-core,</span><wbr style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">python3-core&quot;</span><br style="font-size:12.800000190734863px"></div><div><span style="font-size:12.800000190734863px"><br></span></div><div><span style="font-size:12.800000190734863px">python3-core isn&#39;t a recipe so if Python is enabled:</span></div><div><span style="font-size:12.800000190734863px"><br></span></div><div>ERROR: Nothing PROVIDES &#39;python3-core&#39; (but /home/ross/Yocto/poky/meta/recipes-connectivity/bind/<a href="http://bind_9.10.6.bb">bind_9.10.6.bb</a> DEPENDS on or otherwise requires it).<span style="font-size:12.800000190734863px"><br></span></div><div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 February 2018 at 06:21, Martin Hundebøll <span dir="ltr">&lt;<a href="mailto:mnhu@prevas.dk" target="_blank">mnhu@prevas.dk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ping<div class="HOEnZb"><div class="h5"><br>
<br>
On 2018-02-05 13:25, Martin Hundebøll wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Break the hard runtime dependency on python3-core by adding a<br>
(default-on) packageconfig option for python.<br>
<br>
Signed-off-by: Martin Hundebøll &lt;<a href="mailto:mnhu@prevas.dk" target="_blank">mnhu@prevas.dk</a>&gt;<br>
---<br>
  meta/recipes-connectivity/bind<wbr>/<a href="http://bind_9.10.6.bb" rel="noreferrer" target="_blank">bind_9.10.6.bb</a> | 14 ++++++++++----<br>
  1 file changed, 10 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/meta/recipes-connectivity/bi<wbr>nd/<a href="http://bind_9.10.6.bb" rel="noreferrer" target="_blank">bind_9.10.6.bb</a> b/meta/recipes-connectivity/bi<wbr>nd/<a href="http://bind_9.10.6.bb" rel="noreferrer" target="_blank">bind_9.10.6.bb</a><br>
index 8b8835ba80..2ec7ab44f0 100644<br>
--- a/meta/recipes-connectivity/bi<wbr>nd/<a href="http://bind_9.10.6.bb" rel="noreferrer" target="_blank">bind_9.10.6.bb</a><br>
+++ b/meta/recipes-connectivity/bi<wbr>nd/<a href="http://bind_9.10.6.bb" rel="noreferrer" target="_blank">bind_9.10.6.bb</a><br>
@@ -38,16 +38,19 @@ EXTRA_OECONF = &quot; ${ENABLE_IPV6} --with-libtool --enable-threads \<br>
                   --with-openssl=${STAGING_LIBD<wbr>IR}/.. \<br>
                 &quot;<br>
  -inherit autotools update-rc.d systemd useradd pkgconfig python3-dir<br>
+inherit autotools update-rc.d systemd useradd pkgconfig<br>
    export PYTHON_SITEPACKAGES_DIR<br>
    # PACKAGECONFIGs readline and libedit should NOT be set at same time<br>
-PACKAGECONFIG ?= &quot;readline&quot;<br>
+PACKAGECONFIG ?= &quot;readline python&quot;<br>
  PACKAGECONFIG[httpstats] = &quot;--with-libxml2,--without-libx<wbr>ml2,libxml2&quot;<br>
  PACKAGECONFIG[readline] = &quot;--with-readline=-lreadline,,r<wbr>eadline&quot;<br>
  PACKAGECONFIG[libedit] = &quot;--with-readline=-ledit,,libed<wbr>it&quot;<br>
  PACKAGECONFIG[urandom] = &quot;--with-randomdev=/dev/urandom<wbr>,--with-randomdev=/dev/random,<wbr>,&quot;<br>
+PACKAGECONFIG[python] = &quot;--with-python=${PYTHON},--wit<wbr>hout-python,python3-core,pytho<wbr>n3-core&quot;<br>
+<br>
+inherit ${@bb.utils.contains(&#39;PACKAGEC<wbr>ONFIG&#39;, &#39;python&#39;, &#39;python3native&#39;, &#39;&#39;, d)}<br>
    USERADD_PACKAGES = &quot;${PN}&quot;<br>
  USERADD_PARAM_${PN} = &quot;--system --home ${localstatedir}/cache/bind --no-create-home \<br>
@@ -60,7 +63,6 @@ SYSTEMD_SERVICE_${PN} = &quot;named.service&quot;<br>
    PARALLEL_MAKE = &quot;&quot;<br>
  -RDEPENDS_${PN} = &quot;python3-core&quot;<br>
  RDEPENDS_${PN}-dev = &quot;&quot;<br>
    PACKAGE_BEFORE_PN += &quot;${PN}-utils&quot;<br>
@@ -88,7 +90,11 @@ do_install_append() {<br>
        install -d &quot;${D}${sysconfdir}/init.d&quot;<br>
        install -m 644 ${S}/conf/* &quot;${D}${sysconfdir}/bind/&quot;<br>
        install -m 755 &quot;${S}/init.d&quot; &quot;${D}${sysconfdir}/init.d/bind<wbr>&quot;<br>
-       sed -i -e &#39;1s,#!.*python3,#! /usr/bin/python3,&#39; ${D}${sbindir}/dnssec-coverage ${D}${sbindir}/dnssec-checkds<br>
+<br>
+       if [ -n &quot;${@bb.utils.contains(&#39;PACKAGE<wbr>CONFIG&#39;, &#39;python&#39;, &#39;python&#39;, &#39;&#39;, d)}&quot; ]; then<br>
+               sed -i -e &#39;1s,#!.*python3,#! /usr/bin/python3,&#39; \<br>
+                       ${D}${sbindir}/dnssec-<wbr>coverage ${D}${sbindir}/dnssec-checkds<br>
+       fi<br>
        # Install systemd related files<br>
        install -d ${D}${sbindir}<br>
<br>
</blockquote>
-- <br></div></div><div class="HOEnZb"><div class="h5">
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openem<wbr>bedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</div></div></blockquote></div><br></div>