Gentoo Archives: gentoo-embedded

From: Joakim Tjernlund <joakim.tjernlund@×××××××××.se>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] crossdev improvements
Date: Fri, 01 Oct 2010 07:07:14
Message-Id: OF5AB2C8EA.C3DB3972-ONC12577AF.0024D69D-C12577AF.002618C9@transmode.se
In Reply to: Re: [gentoo-embedded] crossdev improvements by Mike Frysinger
1 Mike Frysinger <vapier@g.o> wrote on 2010/10/01 02:36:44:
2 >
3 > On Thursday, September 30, 2010 11:38:58 Joakim Tjernlund wrote:
4 > > So I tried this(using --portage -b instead) and I don't quite get it to
5 > > work. My binpkg foo is pretty much non existing :)
6 > >
7 > > So far I get a bin pkg in
8 > > /usr/portage/packages/cross/powerpc-4.4.4_softfloat-linux-gnu/cross-powerpc
9 > > -4.4.4_softfloat-linux-gnu and to get at it I must change PKGDIR to
10 > > /usr/portage/packages/cross/powerpc-4.4.4_softfloat-linux-gnu/ get at the
11 > > package. Does it have to be there or could it be moved to
12 > > /usr/portage/packages/ so emerge finds it without messing with PKGDIR?
13 >
14 > crossdev itself forces a PKGDIR subdir. this dates back 5.5 years at this
15 > point. at the time, i was experimenting with same $CATEGORY value as the
16 > system and only differentiating by SLOT, but portage cant handle that: sys-
17 > devel/gcc-4.4.4-r1:SLOT=i686-pc-linux-gnu will collide with sys-
18 > devel/gcc-4.4.4-r1:SLOT=powerpc-unknown-linux-gnu in /var/db/pkg/. since
19 > ultimately i didnt go that direction (we have the cross-xxx CATEGORY value
20 > now), i guess i can drop the PKGDIR munging completely from crossdev.
21
22 Great, the change looks very simple:
23
24 From 690c42cd1ba00ba9b979cf9665dba75aa76d8c98 Mon Sep 17 00:00:00 2001
25 From: Joakim Tjernlund <Joakim.Tjernlund@×××××××××.se>
26 Date: Fri, 1 Oct 2010 08:45:13 +0200
27 Subject: [PATCH] Remove PKGDIR munging
28
29 This isn't needed anymore.
30
31 Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@×××××××××.se>
32 ---
33 crossdev-20100814/crossdev | 1 -
34 1 files changed, 0 insertions(+), 1 deletions(-)
35
36 diff --git a/crossdev-20100814/crossdev b/crossdev-20100814/crossdev
37 index fc9b89e..214ab7a 100755
38 --- a/crossdev-20100814/crossdev
39 +++ b/crossdev-20100814/crossdev
40 @@ -242,7 +242,6 @@ setup_portage_vars() {
41 PORTDIR=$(portageq envvar PORTDIR)
42 PORT_LOGDIR=$(portageq envvar PORT_LOGDIR)
43 PORT_LOGDIR=${PORT_LOGDIR:-/var/log/portage}
44 - export PKGDIR=$(portageq envvar PKGDIR)/cross/${CTARGET}
45 export PORTAGE_TMPDIR=$(portageq envvar PORTAGE_TMPDIR)/cross/${CTARGET}
46 [[ ! -d ${PORT_LOGDIR} ]] && mkdir -p ${PORT_LOGDIR}
47 [[ ! -d ${PORTAGE_TMPDIR} ]] && mkdir -p ${PORTAGE_TMPDIR}
48 --
49 1.7.2.2
50
51 >
52 > > Next problem, how do I force other computers to use the bin pkg? Unless one
53 > > passes -G to emerge, emerge rebuilds the pkg and I don't want that
54 > > as I have passed EXTRA_ECONF args and added a small patch to glibc as well.
55 >
56 > man emerge -> -K
57
58 Thanks, but this is not quite what I want. This depends on the user actually passing
59 -K to emerge. I realize I want something like the different -bin ebuilds
60 in portage such as openoffice-bin or firefox-bin.
61 Any pointers on how to create a -bin ebuild from the binary pkgs I
62 get form crossdev ... -portage -b ?
63
64 Jocke

Replies

Subject Author
Re: [gentoo-embedded] crossdev improvements Mike Frysinger <vapier@g.o>