Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Crossdev: make.profile is not a symlink ???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
VinzC
Advocate
Advocate


Joined: 17 Apr 2004
Posts: 4630
Location: Theux (Belgium)

PostPosted: Wed Jan 02, 2013 12:42 pm    Post subject: Crossdev: make.profile is not a symlink ??? Reply with quote

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...
GNU/Linux user #369763
“Wow! I feel root”
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 8993
Location: beyond the rim

PostPosted: Fri Jan 04, 2013 7:40 am    Post subject: Reply with quote

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
View user's profile Send private message
VinzC
Advocate
Advocate


Joined: 17 Apr 2004
Posts: 4630
Location: Theux (Belgium)

PostPosted: Fri Jan 04, 2013 9:55 am    Post subject: Reply with quote

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...
GNU/Linux user #369763
“Wow! I feel root”
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 8993
Location: beyond the rim

PostPosted: Mon Jan 07, 2013 10:06 am    Post subject: Reply with quote

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
View user's profile Send private message
VinzC
Advocate
Advocate


Joined: 17 Apr 2004
Posts: 4630
Location: Theux (Belgium)

PostPosted: Mon Jan 07, 2013 1:48 pm    Post subject: Reply with quote

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...
GNU/Linux user #369763
“Wow! I feel root”
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum