Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51167 - ebuild.sh should provide a default pkg_config function.
Summary: ebuild.sh should provide a default pkg_config function.
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-05-15 16:28 UTC by Matthew Marlowe (RETIRED)
Modified: 2004-08-16 11:04 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Marlowe (RETIRED) gentoo-dev 2004-05-15 16:28:58 UTC
This is on a system just installed today.  I noticed one or two other bugs claiming that portage has removed installation of the pkg_config binary.  I can also see that pkg_config is installed on older systems, but none of the boxes installed within the last week.  gentoolkit/etc is installed.

Reproducible: Always
Steps to Reproduce:
1.setup a new box from scratch using latest ebuilds/etc
2.emerge nagios or anything else that requires manual ebuild config run after install
3. notice warning about being unable to execute pkg_config

Actual Results:  
monitor nagios-core-1.2 # !213
ebuild /var/db/pkg/net-analyzer/nagios-core-1.2/nagios-core-1.2.ebuild config
/usr/lib/portage/bin/ebuild.sh: line 1448: pkg_config: command not found


Expected Results:  
completed install

USE="apache2 async catalyst cgi curl devfs26 doc evms2 foreign-package mmx \
     nagios-dns nagios-ntp nagios-ping nagios-ssh nptl openssh pcap \
     pg-intdatetime pg-vacuumdelay postgres snmp sse -oss -apm -arts -avi \
     -crypt -cups -encode -foomaticdb -gpm -gtk -gtk2 -kde -gnome -mad \
     -mikmod -motif -mpeg -opengl -qt -quicktime -sdl -tcpd -truetype -X \
     -xmms -xv"
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-05-18 11:54:15 UTC
Do you have pkg_config on your system?
Comment 2 Matthew Marlowe (RETIRED) gentoo-dev 2004-05-18 17:02:36 UTC
no, pkg_config was not installed during the emerge process for portgage or gentoolkit.

monitor root # find / -name "pkg_config" -print
monitor root #
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2004-05-19 16:19:55 UTC
Not a portage bug... Some package is requiring the using pkg_config
and should have the dep in it.
Comment 4 Octavio Ruiz (Ta^3) 2004-06-03 01:39:24 UTC
I think you must change the Summary of this bug. This is not a bug for net-analyzer/nagios-core its for portage, and maybe change also the Product for Portage Development (?).

Same problem here.

portage 2.0.50-r7 installed here but the error is little different:

"/usr/sbin/ebuild.sh: line 1334: pkg_config: command not found"

(the line number, which version of portage do you have installed?)
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2004-06-03 13:24:29 UTC
This is totally a portage bug carpaski.  ebuild.sh should supply a default
pkg_config function so if the ebuild doesn't supply one of its own, ebuild ... config still works.  This doesn't have anything to do with a depend on pkgconfig.
Comment 6 SpanKY gentoo-dev 2004-06-05 14:59:49 UTC
i think the 'pkg_config' and 'pkg-config' scripts are getting confused :)
Comment 7 Nicholas Jones (RETIRED) gentoo-dev 2004-06-05 17:30:10 UTC
Ok. So the bug was that the ebuild didn't have a pkg_config
function in it. Calling config on the ebuild fails because IT
CANNOT do it... Why should portage ignore the fact that the
ebuild cannot do what was requested? I can add an eerror message
and exit with an error if you'd like, but this is a reasonable and
duely CAUSED failure.
Comment 8 SpanKY gentoo-dev 2004-06-05 18:58:25 UTC
ebuild /var/db/pkg/net-analyzer/nagios-core-1.2/nagios-core-1.2.ebuild config
/usr/lib/portage/bin/ebuild.sh: line 1448: pkg_config: command not found

that is a horrible message ... who the hell is supposed to know what that means ?

the thing we're trying to get at is this:
please add something like this to ebuild.sh:
pkg_config()
{
    eerror "This ebuild does not have a config function."
}
Comment 9 Masatomo Nakano (RETIRED) gentoo-dev 2004-06-20 00:02:29 UTC
I've just included the error message in CVS.
Comment 10 Brian Harring (RETIRED) gentoo-dev 2004-08-16 11:04:55 UTC
in .51_pre18 (probably released earlier).