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
Hi,

some ebuilds, which originally passed "--bindir=/bin" to econf, now do:
  econf $(with_bindir) ...
or even
  econf $(with_bindir /usr/bin) ...

Where should this with_bindir() be defined ?
I suggest in portage's ebuild.sh, but it is not (yet) there, even not in
svn...

Currently I cannot merge sys-apps/grep-2.5.1a-r1, because src_install()
wants to create symlinks "$ED/bin/egrep -> grep" (same for fgrep), which
does not work because there is no $ED/bin, and grep is installed into
$ED/usr/bin.

The ebuilds using with_bindir() are:

$ grep with_bindir */*/*.ebuild
app-arch/cpio/cpio-2.6-r5.ebuild:               $(with_bindir) \
app-arch/cpio/cpio-2.7-r1.ebuild:               $(with_bindir) \
app-arch/tar/tar-1.16-r2.ebuild:                $(with_bindir) \
app-arch/tar/tar-1.16.1.ebuild:         $(with_bindir) \
sys-apps/grep/grep-2.5.1-r9.ebuild:             $(with_bindir) \
sys-apps/grep/grep-2.5.1a-r1.ebuild:            $(with_bindir) \
sys-devel/autoconf/autoconf-2.13.ebuild:                $(with_bindir /usr/bin) \

As local workaround I've added this function to
usr/lib/portage/bin/ebuild.sh:

with_bindir() {
    echo "--bindir=${EPREFIX}${1:-/bin}"
}

/haubi/


-- 
Salomon Automation GmbH - Friesachstraße 15 - A-8114 Friesach bei Graz
Sitz der Gesellschaft: Friesach bei Graz
UID-NR:ATU28654300 - Firmenbuchnummer: 49324 K
Firmenbuchgericht: Landesgericht für Zivilrechtssachen Graz

-- 
gentoo-alt@g.o mailing list

Replies

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