View previous topic :: View next topic |
Author |
Message |
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Wed Jan 02, 2013 12:42 pm Post subject: Crossdev: make.profile is not a symlink ??? |
|
|
Hi all.
I spotted the embedded profile in portage recently and decided to give it a try with crossdev. So I ran crossdev -t x86_64-gentoo-linux-uclibc -S and made /usr/x86_64-gentoo-linux-uclibc/etc/make.profile a symlink to /portage/portage.d/profiles/embedded .
In the meantime, I've relocated most of portage tree and components to /portage, just as follows:
ls -l /portage: | drwxrwsr-x 4 root portage 139264 Dec 31 14:10 distfiles
drwxrws--- 3 portage portage 720896 Dec 31 17:09 log
drwx------ 2 root root 16384 Mar 31 2012 lost+found
drwxr-xr-x 4 root root 4096 Nov 13 21:14 overlay.d
drwxr-xr-x 13 root root 4096 Dec 15 13:41 packages
drwxr-xr-x 164 root root 4096 Dec 15 12:31 portage.d
drwxr-xr-x 7 root root 4096 Mar 31 2012 tmp |
so that portage has [almost] all its stuff stored in one directory: overlay trees, package binaries, portage tree and temp directory.
emerge --info | grep /portage: | DISTDIR="/portage/distfiles"
PKGDIR="/portage/packages"
PORTAGE_TMPDIR="/portage/tmp"
PORTDIR="/portage/portage.d"
PORTDIR_OVERLAY="/portage/overlay.d/crossdev /portage/overlay.d/local" |
The thing is I get this warning message everytime I compile a package for crossdev:
x86_64-gentoo-linux-uclibc-emerge dropbear: | !!! /usr/x86_64-gentoo-linux-uclibc/etc/make.profile is not a symlink and will probably prevent most merges.
!!! It should point into a profile within /portage/portage.d/profiles/
!!! (You can safely ignore this message when syncing. It's harmless.) |
ls -l /usr/x86_64-gentoo-linux-uclibc/etc/make.profile: | lrwxrwxrwx 1 root root 36 Nov 13 21:18 /usr/x86_64-gentoo-linux-uclibc/etc/make.profile -> /portage/portage.d/profiles/embedded |
WTF? _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9527 Location: beyond the rim
|
Posted: Fri Jan 04, 2013 7:40 am Post subject: |
|
|
The error message doesn't actually reflect the condition that is checked:
Code: | profile_broken = not self.profile_path or \
not os.path.exists(os.path.join(self.profile_path, "parent")) and \
os.path.exists(os.path.join(self["PORTDIR"], "profiles")) |
In this case the second condition is the problem: the embedded profile contains no "parent" entry, I assume it wasn't inteded to be used directly. Also checking the commit history I wouldn't expect that this profile is maintained anymore, the last real updates were about three years ago. |
|
Back to top |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Fri Jan 04, 2013 9:55 am Post subject: |
|
|
Aaaaah, Ok, now it sounds clear. Thanks Genone. Does that mean I can do whatever I want with that profile? Can I even create myself a profile for my embedded purposes? _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9527 Location: beyond the rim
|
Posted: Mon Jan 07, 2013 10:06 am Post subject: |
|
|
You can certainly create your own profile, but I'm too much out of the loop with Gentoo to give any useful information about specifics how to best achieve that nowadays. |
|
Back to top |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Mon Jan 07, 2013 1:48 pm Post subject: |
|
|
Thanks anyway Genone. Will try to figure it out on my own as much as I can. _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
|