<div dir="ltr">hi,<div><br></div><div>i am unable to build a proper SDK for core-image-minimal using OE-core + dora. I am seeing I think 2 different problems.</div><div><br></div><div>1- problem related to update-alternative and opkg:</div>

<div><br></div><div><div>update-alternatives: Error: cannot register alternative opkg to /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/opkg since it is already registered to /usr/bin/opkg</div></div><div><br>

</div><div><br></div><div>2- problem related to shadow(-native/-nativesdk)</div><div><br></div><div><div>Configuring nativesdk-perl-module-pod-plaintex/work/test/oe-test/build-bbb/tmp-eglibc/work/beaglebone-oe-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image//var/lib/opkg/info/nativesdk-shadow.posti\</div>

<div>nst: line 7: pwconv: command not found</div><div>/work/test/oe-test/build-bbb/tmp-eglibc/work/beaglebone-oe-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image//var/lib/opkg/info/nativesdk-shadow.postinst: line 8: grpconv: command not found</div>

<div>update-alternatives: Error: cannot register alternative passwd to /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/passwd since it is already registered to /usr/bin/passwd</div><div>update-alternatives: Linking /work/test/oe-test/build-bbb/tmp-eglibc/work/beaglebone-oe-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image//usr/local/oecore-x86_64/sysroots/armv7a-vfp-neon-oe-linux\</div>

<div>-gnueabi//usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/chfn to /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/chfn.shadow</div><div>update-alternatives: Linking /work/test/oe-test/build-bbb/tmp-eglibc/work/beaglebone-oe-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image//usr/local/oecore-x86_64/sysroots/armv7a-vfp-neon-oe-linux\</div>

<div>-gnueabi//usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/newgrp to /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/newgrp.shadow</div><div>update-alternatives: Linking /work/test/oe-test/build-bbb/tmp-eglibc/work/beaglebone-oe-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image//usr/local/oecore-x86_64/sysroots/armv7a-vfp-neon-oe-linux\</div>

<div>-gnueabi//usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/chsh to /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/chsh.shadow</div><div>update-alternatives: Error: cannot register alternative groups to /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/groups since it is already registered to /usr/bin/groups</div>

<div>update-alternatives: Linking /work/test/oe-test/build-bbb/tmp-eglibc/work/beaglebone-oe-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image//usr/local/oecore-x86_64/sysroots/armv7a-vfp-neon-oe-linux\</div><div>-gnueabi//usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/sbin/chpasswd to /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/sbin/chpasswd.shadow</div>

<div>update-alternatives: Error: cannot register alternative login to /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/bin/login since it is already registered to /bin/login</div><div>update-alternatives: Linking /work/test/oe-test/build-bbb/tmp-eglibc/work/beaglebone-oe-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image//usr/local/oecore-x86_64/sysroots/armv7a-vfp-neon-oe-linux\</div>

<div>-gnueabi//usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/sbin/vipw to /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/sbin/vipw.shadow</div><div>update-alternatives: Linking /work/test/oe-test/build-bbb/tmp-eglibc/work/beaglebone-oe-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image//usr/local/oecore-x86_64/sysroots/armv7a-vfp-neon-oe-linux\</div>

<div>-gnueabi//usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/sbin/vigr to /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/sbin/vigr.shadow</div><div>update-alternatives: Error: cannot register alternative su to /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/bin/su since it is already registered to /bin/su</div>

<div><br></div></div><div>If i revert the following commits (on dora), then at least #2 seems to be going away... but i am not completely sure if this is right or wrong...</div><div><br></div><div><div>829edcb nativesdk-packagegroup-sdk-host: Add nativesdk-shadow</div>

<div>f90e1a4 shadow: Add nativesdk to BBCLASSEXTEND<br></div></div><div><div>44fafdb shadow: Turn shadow-native into a BBCLASSEXTEND</div></div><div><br></div><div>I would expect that SDK is being tested properly, so i must be doing something wrong along the lines... any help would be much appreciated.</div>

<div><br></div><div>thanks</div><div><br></div><div>nicolas</div></div>