<div dir="ltr">With PACKAGE_CLASSES=&quot;package_rpm package_deb&quot; this happens:<div><br></div><div><div>ERROR: dpkg-native-1.18.7-r0 do_populate_sysroot: The recipe dpkg-native is trying to install files into a shared area when those files already exist. Those files and their manifest location are:</div><div>   /data/poky-master/tmp-glibc/sysroots/x86_64-linux/usr/bin/update-alternatives</div><div> Matched in b&#39;manifest-x86_64-opkg-utils-native.populate_sysroot&#39;</div></div><div><br></div><div>Whilst I agree that building multiple package types at the same time is a bit weird, it&#39;s always worked in the past.</div><div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 7 December 2016 at 01:30, Andreas Oberritter <span dir="ltr">&lt;<a href="mailto:obi@opendreambox.org" target="_blank">obi@opendreambox.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 06.12.2016 20:52, Burton, Ross wrote:<br>
&gt; This needs more than just RCONFLICTS:<br>
&gt;<br>
&gt; ERROR: dpkg-native-1.18.7-r0 do_populate_sysroot: The recipe dpkg-native<br>
&gt; is trying to install files into a shared area when those files already<br>
&gt; exist. Those files and their manifest location are:<br>
&gt;<br>
&gt;  /data/poky-master/tmp-glibc/<wbr>sysroots/x86_64-linux/usr/bin/<wbr>update-alternatives<br>
&gt;<br>
&gt; I have both package_deb and package_rpm enabled, and have a build from<br>
&gt; master before trying your branch.<br>
<br>
</span>I&#39;m going to address this in &quot;dpkg: implement offline mode for update-<br>
alternatives&quot; with the following additions:<br>
<br>
+PROVIDES = &quot;${@bb.utils.contains(&#39;<wbr>PACKAGECONFIG&#39;, &#39;update-alternatives&#39;, &#39;virtual/update-alternatives&#39;, &#39;&#39;, d)}&quot;<br>
<br>
[...]<br>
<br>
+UA = &quot;update-alternatives&quot;<br>
+UA_native = &quot;${@[&#39;&#39;, &#39;update-alternatives&#39;][d.<wbr>getVar(&#39;PREFERRED_PROVIDER_<wbr>virtual/update-alternatives-<wbr>native&#39;, True) == &#39;dpkg-native&#39;]}&quot;<br>
+<br>
+PACKAGECONFIG ??= &quot;${UA}&quot;<br>
+PACKAGECONFIG[update-<wbr>alternatives] = &quot;--enable-update-alternatives,<wbr>--disable-update-alternatives&quot;<br>
<br>
Because update-alternative-dpkg and update-alternatives-opkg are using<br>
incompatible databases, I don&#39;t think there are much better ways to<br>
avoid this conflict.<br>
<br>
Regards,<br>
Andreas<br>
</blockquote></div><br></div>