Hi,
as I've already pointed out to Brad about mozilla-firefox new ebuild, there 
are a few ebuilds in which, for simple regexp replaces, perl is used with 
sintax perl -pi -e expression file.
As perl is not in the core packages, using this requires adding perl to the 
buildtime dependency of the package. This is anyway an useless dependency as 
it isn't needed for something like that.
A good replacement for it is using sed -i -e expression file, which is the 
same thing.

Please also note that using a sintax like that:

sed -e expression file file file -i

just works on gsed, but doesn't work with other sed implementations (bsdish, 
macos, solaris, ...). -i must be put before any -e!

Please update the erroneous ebuild, as these could make problems when 
gentoo/non-linux-os .

Thanks,
-- 
Diego "Flameeyes" Pettenò
http://wwwstud.dsi.unive.it/~dpetteno/

--
gentoo-dev@gentoo.org mailing list

Reply via email to