From: Christopher Friedt <cfriedt@visible-assets.com>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] overlay-specific keywords / use flags for cross-compiling
Date: Wed, 17 Jan 2007 15:12:22 +0100 [thread overview]
Message-ID: <45AE2EC6.3050907@visible-assets.com> (raw)
In-Reply-To: <45AE2DF3.3060107@visible-assets.com>
Nevermind, I think I managed to discover where I went wrong - in
portage, one needs to add the ~<arch> flag in
/etc/portage/package.keywords to equivalently set
ACCEPT_KEYWORDS="~<arch>" then?
The strange thing, is that on my plain-old i686 laptop, i usually just
say 'sys-app/busybox' without the ~<arch> and it manages to set
ACCEPT_KEYWORDS for that package to ~<arch> ....
wierd!
Christopher Friedt wrote:
> Hi Nedd,
>
> Thanks for your reply - i've been crazy busy lately.
>
> The ROOT & PORTAGE_CONFIGROOT directories are the same, and I tested out
> /sysroot/etc/portage/package.use. That works no problem.
>
> However, i still don't see an effect if I do something in package.keywords.
>
> I usually do this on my desktop machine if I'd like to open up the
> keywords for a particular package. Am I doing something wrong?
>
>
> vaiprime / # echo "sys-apps/busybox" >>
> /sysroot/etc/portage/package.keywords
> vaiprime / # xmerge -pv busybox
>
> These are the packages that would be merged, in order:
>
> Calculating dependencies... done!
> [ebuild R ] sys-apps/busybox-1.2.2.1 to /sysroot/ USE="static*
> -debug -make-symlinks -netboot -savedconfig" 1,380 kB
>
> vaiprime / # ACCEPT_KEYWORDS="~arm" xmerge -avB busybox
>
> These are the packages that would be merged, in order:
>
> Calculating dependencies... done!
> [ebuild U ] sys-apps/busybox-1.3.1 [1.2.2.1] to /sysroot/
> USE="static* -debug -make-symlinks -savedconfig (-netboot%)" 1,456 kB
>
> Ned Ludd wrote:
>> Is your $SYSROOT the same as your $PORTAGE_CONFIGROOT?
>> Cuz portage only looks in $PORTAGE_CONFIGROOT and cares nothing of
>> $SYSROOT..
>>
>>
>> On Sat, 2007-01-13 at 00:12 +0100, Christopher Friedt wrote:
>>> Hi everyone,
>>>
>>> I've set up a 'build root' that I can chroot into for cross development.
>>> There is also a directory of targets to compile for, and for each
>>> target, a series of different configurations.
>>>
>>> When I chroot into my buildroot my 'enter_chroot' script will
>>> automatically mount -o bind each of the sysroot, binpkgs, and overlay
>>> directories for a specified configuration, as well as mount -o bind
>>> the portage tree itself.
>>>
>>> So my directory structure looks something like this:
>>>
>>> gentoo-crossdev-buildroot/
>>> enter_chroot.sh
>>> (mounts proc, mounts -o bind portage/sysroot/binpkg/overlay etc)
>>> portage/
>>> ... (the portage tree)
>>> buildroot/
>>> ... (all cross compilation tools and a stage1 filesystem)
>>> targets/
>>> arm-9tdmi-linux-gnu/
>>> cross-toolchain/
>>> configurations/
>>> reference/
>>> overlay/
>>> binpkgs/
>>> sysroot/
>>> client1/
>>> ...
>>> client2/
>>> ...
>>> arm-9tdmi-linux-uclibc/
>>> cross-toolchain/
>>> configurations/
>>> reference/
>>> overlay/
>>> binpkgs/
>>> sysroot/
>>> client1/
>>> ...
>>> client2/
>>> ...
>>>
>>> What I'm hoping to do is leverage the power of portage overlays here,
>>> and make it possible to have different package customizations for
>>> each client and each platform that my company deals with.
>>>
>>> It doesn't take a lot to see that this is a great way to minimize
>>> maintenance.
>>>
>>> My problem though, is that when doing cross development (I use the
>>> xmerge scrypt and set a SYSROOT variable), I have noticed that when I
>>> set new flags in $SYSROOT/etc/portage/package.use, it's not noticed
>>> properly during emerge.
>>>
>>> I'm hoping that portage can be flexible enough to acknowlege those
>>> use flags. The xmerge script (taken from one of the gentoo cross
>>> development guides online) properly sets the PORTAGE_CONFIGROOT
>>> variable, ROOT, etc, so I don't understand why it doesn't acknowlege
>>> the changes in $SYSROOT/etc/portage/package.use.
>>>
>>> Any suggestions?
>>>
>>>
>>> Regards,
>>>
>>> ~/Chris
--
gentoo-embedded@gentoo.org mailing list
next prev parent reply other threads:[~2007-01-17 14:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-08 15:21 [gentoo-embedded] Using latest uclibc snapshot from SVN ryan.baldwin
2007-01-12 23:12 ` [gentoo-embedded] overlay-specific keywords / use flags for cross-compiling Christopher Friedt
2007-01-12 23:38 ` Ned Ludd
2007-01-17 14:08 ` Christopher Friedt
2007-01-17 14:12 ` Christopher Friedt [this message]
2007-01-19 9:29 ` [gentoo-embedded] stage1 package list? Christopher Friedt
2007-01-21 11:15 ` Peter S. Mazinger
2007-01-24 0:29 ` momentics
2007-01-24 0:42 ` momentics
2007-01-21 11:10 ` [gentoo-embedded] overlay-specific keywords / use flags for cross-compiling Peter S. Mazinger
2007-01-14 15:11 ` [gentoo-embedded] Using latest uclibc snapshot from SVN Peter S. Mazinger
2007-01-14 16:27 ` Peter S. Mazinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45AE2EC6.3050907@visible-assets.com \
--to=cfriedt@visible-assets.com \
--cc=gentoo-embedded@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox