Gentoo Archives: gentoo-dev

From: Jan Brinkmann <luckyduck@g.o>
To: gentoo-dev@××××××××××××.org
Subject: Re: [gentoo-dev] perl, sed and non-gsed
Date: Mon, 28 Mar 2005 17:28:49
Message-Id: 20050328172837.GA9742@luckyduck.tux
In Reply to: [gentoo-dev] perl, sed and non-gsed by "Diego \\\"Flameeyes\\\" Pettenò"
1 On Mon, Mar 28, 2005 at 06:06:17PM +0200, Diego Flameeyes Pettenò wrote:
2 > Hi,
3 Hi :)
4
5 > As perl is not in the core packages, using this requires adding perl to the
6 > buildtime dependency of the package. This is anyway an useless dependency as
7 > it isn't needed for something like that.
8 It looks like perl is in the base system. Take a look into
9 /usr/portage/profiles/base/packages:
10
11 *dev-lang/perl
12
13 > A good replacement for it is using sed -i -e expression file, which is the
14 > same thing.
15 >
16 > Please also note that using a sintax like that:
17 >
18 > sed -e expression file file file -i
19 >
20 > just works on gsed, but doesn't work with other sed implementations (bsdish,
21 > macos, solaris, ...). -i must be put before any -e!
22 >
23 > Please update the erroneous ebuild, as these could make problems when
24 > gentoo/non-linux-os .
25 >
26 But I generally agree that it's not necessary to use perl where sed
27 is sufficient. :)
28
29 --
30 Jan Brinkmann : Gentoo Developer (Amd64, Java, Sound, Video)
31 Email: luckyduck (at) gentoo.org
32 Web: http://the-luckyduck.de
33 GPG: gpg --keyserver pgp.mit.edu --recv-key 0xE38C3BBF