<div dir="ltr">With PACKAGE_CLASSES="package_rpm package_deb" 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'manifest-x86_64-opkg-utils-native.populate_sysroot'</div></div><div><br></div><div>Whilst I agree that building multiple package types at the same time is a bit weird, it'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"><<a href="mailto:obi@opendreambox.org" target="_blank">obi@opendreambox.org</a>></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>
> This needs more than just RCONFLICTS:<br>
><br>
> ERROR: dpkg-native-1.18.7-r0 do_populate_sysroot: The recipe dpkg-native<br>
> is trying to install files into a shared area when those files already<br>
> exist. Those files and their manifest location are:<br>
><br>
> /data/poky-master/tmp-glibc/<wbr>sysroots/x86_64-linux/usr/bin/<wbr>update-alternatives<br>
><br>
> I have both package_deb and package_rpm enabled, and have a build from<br>
> master before trying your branch.<br>
<br>
</span>I'm going to address this in "dpkg: implement offline mode for update-<br>
alternatives" with the following additions:<br>
<br>
+PROVIDES = "${@bb.utils.contains('<wbr>PACKAGECONFIG', 'update-alternatives', 'virtual/update-alternatives', '', d)}"<br>
<br>
[...]<br>
<br>
+UA = "update-alternatives"<br>
+UA_native = "${@['', 'update-alternatives'][d.<wbr>getVar('PREFERRED_PROVIDER_<wbr>virtual/update-alternatives-<wbr>native', True) == 'dpkg-native']}"<br>
+<br>
+PACKAGECONFIG ??= "${UA}"<br>
+PACKAGECONFIG[update-<wbr>alternatives] = "--enable-update-alternatives,<wbr>--disable-update-alternatives"<br>
<br>
Because update-alternative-dpkg and update-alternatives-opkg are using<br>
incompatible databases, I don't think there are much better ways to<br>
avoid this conflict.<br>
<br>
Regards,<br>
Andreas<br>
</blockquote></div><br></div>