1 |
Hi, |
2 |
as I've already pointed out to Brad about mozilla-firefox new ebuild, there |
3 |
are a few ebuilds in which, for simple regexp replaces, perl is used with |
4 |
sintax perl -pi -e expression file. |
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 |
A good replacement for it is using sed -i -e expression file, which is the |
9 |
same thing. |
10 |
|
11 |
Please also note that using a sintax like that: |
12 |
|
13 |
sed -e expression file file file -i |
14 |
|
15 |
just works on gsed, but doesn't work with other sed implementations (bsdish, |
16 |
macos, solaris, ...). -i must be put before any -e! |
17 |
|
18 |
Please update the erroneous ebuild, as these could make problems when |
19 |
gentoo/non-linux-os . |
20 |
|
21 |
Thanks, |
22 |
-- |
23 |
Diego "Flameeyes" Pettenò |
24 |
http://wwwstud.dsi.unive.it/~dpetteno/ |
25 |
|
26 |
-- |
27 |
gentoo-dev@g.o mailing list |