Gentoo Archives: gentoo-alt

From: Michael Haubenwallner <michael.haubenwallner@×××××××.at>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] [prefix] missing with_bindir()
Date: Wed, 18 Apr 2007 09:25:45
Message-Id: 1176888244.15948.19.camel@sapc154
1 Hi,
2
3 some ebuilds, which originally passed "--bindir=/bin" to econf, now do:
4 econf $(with_bindir) ...
5 or even
6 econf $(with_bindir /usr/bin) ...
7
8 Where should this with_bindir() be defined ?
9 I suggest in portage's ebuild.sh, but it is not (yet) there, even not in
10 svn...
11
12 Currently I cannot merge sys-apps/grep-2.5.1a-r1, because src_install()
13 wants to create symlinks "$ED/bin/egrep -> grep" (same for fgrep), which
14 does not work because there is no $ED/bin, and grep is installed into
15 $ED/usr/bin.
16
17 The ebuilds using with_bindir() are:
18
19 $ grep with_bindir */*/*.ebuild
20 app-arch/cpio/cpio-2.6-r5.ebuild: $(with_bindir) \
21 app-arch/cpio/cpio-2.7-r1.ebuild: $(with_bindir) \
22 app-arch/tar/tar-1.16-r2.ebuild: $(with_bindir) \
23 app-arch/tar/tar-1.16.1.ebuild: $(with_bindir) \
24 sys-apps/grep/grep-2.5.1-r9.ebuild: $(with_bindir) \
25 sys-apps/grep/grep-2.5.1a-r1.ebuild: $(with_bindir) \
26 sys-devel/autoconf/autoconf-2.13.ebuild: $(with_bindir /usr/bin) \
27
28 As local workaround I've added this function to
29 usr/lib/portage/bin/ebuild.sh:
30
31 with_bindir() {
32 echo "--bindir=${EPREFIX}${1:-/bin}"
33 }
34
35 /haubi/
36
37
38 --
39 Salomon Automation GmbH - Friesachstraße 15 - A-8114 Friesach bei Graz
40 Sitz der Gesellschaft: Friesach bei Graz
41 UID-NR:ATU28654300 - Firmenbuchnummer: 49324 K
42 Firmenbuchgericht: Landesgericht für Zivilrechtssachen Graz
43
44 --
45 gentoo-alt@g.o mailing list

Replies

Subject Author
Re: [gentoo-alt] [prefix] missing with_bindir() Fabian Groffen <grobian@g.o>