Openembedded Core Discussions
 help / color / mirror / Atom feed
* Re: unable to use bitbake -c populate_sdk core-image-minimal on dora
@ 2014-01-15 13:16 Shane Volpe
  2014-01-17  4:55 ` Robert Yang
  0 siblings, 1 reply; 3+ messages in thread
From: Shane Volpe @ 2014-01-15 13:16 UTC (permalink / raw)
  To: openembedded-core

I believe I'm also having the same problem Nicolas has reported in
this thread, here is my output:

Issue 1:
update-alternatives: Error: cannot register alternative opkg to
/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/opkg
since it is already registered to /usr/bin/opkg


Issue 2:
update-alternatives: Error: cannot register alternative passwd to
/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/passwd
since it is already registered to /usr/bin/passwd
update-alternatives: Error: cannot register alternative chfn to
/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/chfn
since it is already registered to /usr/bin/chfn
update-alternatives: Error: cannot register alternative newgrp to
/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/newgrp
since it is already registered to /usr/bin/newgrp
update-alternatives: Error: cannot register alternative chsh to
/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/chsh
since it is already registered to /usr/bin/chsh
update-alternatives: Error: cannot register alternative groups to
/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/groups
since it is already registered to /usr/bin/groups
update-alternatives: Error: cannot register alternative chpasswd to
/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/sbin/chpasswd
since it is already registered to /usr/sbin/chpasswd
update-alternatives: Error: cannot register alternative login to
/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/bin/login since
it is already registered to /bin/login
update-alternatives: Error: cannot register alternative vipw to
/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/sbin/vipw since
it is already registered to /sbin/vipw
update-alternatives: Error: cannot register alternative vigr to
/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/sbin/vigr since
it is already registered to /sbin/vigr
update-alternatives: Error: cannot register alternative su to
/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/bin/su since it
is already registered to /bin/su


^ permalink raw reply	[flat|nested] 3+ messages in thread
* unable to use bitbake -c populate_sdk core-image-minimal on dora
@ 2013-11-30  7:31 Nicolas Dechesne
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Dechesne @ 2013-11-30  7:31 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 4179 bytes --]

hi,

i am unable to build a proper SDK for core-image-minimal using OE-core +
dora. I am seeing I think 2 different problems.

1- problem related to update-alternative and opkg:

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


2- problem related to shadow(-native/-nativesdk)

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\
nst: line 7: pwconv: command not found
/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
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
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\
-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
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\
-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
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\
-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
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
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\
-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
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
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\
-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
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\
-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
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

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...

829edcb nativesdk-packagegroup-sdk-host: Add nativesdk-shadow
f90e1a4 shadow: Add nativesdk to BBCLASSEXTEND
44fafdb shadow: Turn shadow-native into a BBCLASSEXTEND

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.

thanks

nicolas

[-- Attachment #2: Type: text/html, Size: 4688 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-17  4:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-15 13:16 unable to use bitbake -c populate_sdk core-image-minimal on dora Shane Volpe
2014-01-17  4:55 ` Robert Yang
  -- strict thread matches above, loose matches on Subject: below --
2013-11-30  7:31 Nicolas Dechesne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox