From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay8.poste.it (relay8.poste.it [62.241.4.185]) by robin.gentoo.org (8.13.3/8.13.3) with ESMTP id j2SG7eQM004981 for ; Mon, 28 Mar 2005 16:07:40 GMT Received: from flameeyes.is-a-geek.org (151.44.18.183) by relay8.poste.it (7.2.052.3) (authenticated as emanuela.zanon@poste.it) id 420CD9F700077EBC for gentoo-dev@robin.gentoo.org; Mon, 28 Mar 2005 18:07:40 +0200 From: "Diego \"Flameeyes\" =?iso-8859-1?q?Petten=F2?=" To: gentoo-dev@robin.gentoo.org Subject: [gentoo-dev] perl, sed and non-gsed User-Agent: KMail/1.8 Precedence: bulk List-Post: , , List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-To: gentoo-dev@gentoo.org MIME-Version: 1.0 Content-Disposition: inline Date: Mon, 28 Mar 2005 18:06:17 +0200 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200503281806.17832@enterprise.flameeyes.is-a-geek.org> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id j2SG7eQM004981 X-Archives-Salt: 28e609b7-d5a5-4b04-b696-bb67d5101c76 X-Archives-Hash: 69647caea3b55bc172d143b02a74acc7 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