Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] [prefix] native-cctools minor issues
Date: Fri, 04 May 2007 19:29:27
Message-Id: 20070504192916.GF885@gentoo.org
In Reply to: [gentoo-alt] [prefix] native-cctools minor issues by Michael Haubenwallner
1 Applied, done, thanks.
2
3 On 24-04-2007 18:14:45 +0200, Michael Haubenwallner wrote:
4 > Hi,
5 >
6 > although the aixld-wrapper-script is not necessary any more for the
7 > libpath things, there are some minor issues with that
8 > native-cctools.ebuild.
9 >
10 > 1) using "powerpc-native-aix5.3.0.0-0" as binutils-config target breaks
11 > "binutils-config -B" fex:
12 > /EPREFIX/usr/bin/binutils-config: line 280: /EPREFIX/etc/env.d/binutils/powerpc-ibm-aix5.3.0.0-native-0: No such file or directory
13 > * powerpc-ibm-aix5.3.0.0-native-0 is invalid (no $TARGET defined) :(
14 >
15 > I don't see what "FCHOST=${CHOST/-*-/-native-}" is/was actually
16 > required for - i.e. why we want to indicate native binutils ...
17 >
18 > 2) a temporary file 'env.d' is in install-directory:
19 > EPREFIX/usr/powerpc-ibm-aix5.3.0.0/binutils-bin/native-0/env.d
20 > because of that { cd "${ED}${BINPATH}" } and the subsequent
21 > { cat > env.d << EOF }, that temporary 'env.d' is located in
22 > $ED$BINPATH.
23 >
24 > /haubi/
25
26 > Index: native-cctools-0.ebuild
27 > ===================================================================
28 > --- native-cctools-0.ebuild (revision 5607)
29 > +++ native-cctools-0.ebuild (working copy)
30 > @@ -54,18 +54,15 @@
31 >
32 > # Generate an env.d entry for this binutils
33 > insinto /etc/env.d/binutils
34 > - cat <<-EOF > env.d
35 > + cat <<-EOF > ${T}/env.d
36 > TARGET="${CHOST}"
37 > VER="native-${PV}"
38 > LIBPATH="${EPREFIX}/${LIBPATH}"
39 > FAKE_TARGETS="${CHOST}"
40 > EOF
41 > - # indicate we're dealing with a native (non-prefix) linker here, by
42 > - # replacing the machine (2nd) tuple in the CHOST by "native"
43 > - FCHOST=${CHOST/-*-/-native-}
44 > - newins env.d ${FCHOST}-${PV}
45 > + newins ${T}/env.d ${CHOST}-native-${PV}
46 > }
47 >
48 > pkg_postinst() {
49 > - binutils-config ${FCHOST}-${PV}
50 > + binutils-config ${CHOST}-native-${PV}
51 > }
52
53
54 --
55 Fabian Groffen
56 Gentoo on a different level
57
58 --
59 gentoo-alt@g.o mailing list