From 8695645507dc1a375d9f5fa1be8c958d1929abf2 Mon Sep 17 00:00:00 2001 From: Samuli Suominen Date: Tue, 17 Jan 2012 00:43:04 +0000 Subject: Use "archname" instead of "ARCH" from Config.pm of dev-lang/perl to avoid warning "Use of uninitialized value $machine_arch in string eq at /usr/bin/pkg-config-openbsd line 114." (Portage version: 2.2.0_alpha84/cvs/Linux x86_64) --- dev-util/pkgconfig-openbsd/ChangeLog | 8 +++++++- dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20120116.ebuild | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'dev-util') diff --git a/dev-util/pkgconfig-openbsd/ChangeLog b/dev-util/pkgconfig-openbsd/ChangeLog index d453c301372e..1e98350a1480 100644 --- a/dev-util/pkgconfig-openbsd/ChangeLog +++ b/dev-util/pkgconfig-openbsd/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/pkgconfig-openbsd # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgconfig-openbsd/ChangeLog,v 1.1 2012/01/16 22:15:00 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgconfig-openbsd/ChangeLog,v 1.2 2012/01/17 00:43:04 ssuominen Exp $ + + 17 Jan 2012; Samuli Suominen + pkgconfig-openbsd-20120116.ebuild: + Use "archname" instead of "ARCH" from Config.pm of dev-lang/perl to avoid + warning "Use of uninitialized value $machine_arch in string eq at + /usr/bin/pkg-config-openbsd line 114." *pkgconfig-openbsd-20120116 (16 Jan 2012) diff --git a/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20120116.ebuild b/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20120116.ebuild index 611e7c65211a..3491b1ecb461 100644 --- a/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20120116.ebuild +++ b/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20120116.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20120116.ebuild,v 1.1 2012/01/16 22:15:00 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20120116.ebuild,v 1.2 2012/01/17 00:43:04 ssuominen Exp $ # cvs -d anoncvs@anoncvs.openbsd.org:/cvs get src/usr.bin/pkg-config/pkg-config # cvs -d anoncvs@anoncvs.openbsd.org:/cvs get src/usr.bin/pkg-config/pkg-config.1 @@ -22,6 +22,11 @@ DEPEND="" S=${WORKDIR}/src +src_prepare() { + # Config.pm from dev-lang/perl doesn't set ARCH, only archname + sed -i -e '/Config/s:ARCH:archname:' usr.bin/pkg-config/pkg-config || die +} + src_install() { newbin usr.bin/pkg-config/pkg-config pkg-config-openbsd newman usr.bin/pkg-config/pkg-config.1 pkg-config-openbsd.1 -- cgit v1.2.3-65-gdbad