Opened 12 years ago
Closed 12 years ago
#34569 closed defect (fixed)
libshout2: shout.pc not installed
Reported by: | brian.quandt@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.1 |
Keywords: | Cc: | ||
Port: | libshout2 |
Description
lib/pkgconfig/shout.pc is missing after installing libshout2
It should be installed automatically during an make/install
This file is necessary for many other utilities to be able to know if libshout2 is installed or not, for instance this breaks installing shout2send in gstreamer unless this file is installed.
Change History (4)
comment:1 follow-up: 2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Keywords: | libshout libshout failed pkgconfig shout.pc removed |
Port: | libshout2 added |
Summary: | libshout2 → libshout2: shout.pc not installed |
comment:2 Changed 12 years ago by brian.quandt@…
Replying to ryandesign@…:
shout.pc does get installed on my system. I don't see why it's not getting installed on yours. Set "keep_logs yes" in your macports.conf and rebuild the port ("sudo port -ns upgrade --force libshout2") and if it still doesn't have shout.pc, attach the log file to this ticket ("port logfile libshout2" will show you where it is).
Okay I should have been clear by what I mean of "install".
Brand new installs under 10.5, 10.6 OSX while they do "install" libshout2, pkgconfig/shout.pc ends up missing. I suspect this is becuase of the binary installer is missing this from it's process. Subsequent forced rebuilds (actually recompiling things) does correct this mistake.
comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… removed |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
Status: | new → assigned |
Ok, I've downloaded the binary packages for 10.6 and 10.7 from http://packages.macports.org/libshout2/ and confirmed that shout.pc is missing from them. (We don't have any binaries for 10.4 or 10.5.)
The reason appears to be this gem in libshout2's Makefile.am:
if HAVE_PKGCONFIG pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = shout.pc else bin_SCRIPTS = shout-config endif
So, if pkg-config is installed, then it installs shout.pc, otherwise it installs the shout-config program. That's extremely weird. Most programs always install both, or (since separate config scripts are deprecated now that pkg-config exists), just a pkg-config file.
So we need to add a port:pkgconfig dependency to the libshout2 port to get it to install shout.pc.
comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in r93415. Thanks for reporting the problem.
shout.pc does get installed on my system. I don't see why it's not getting installed on yours. Set "keep_logs yes" in your macports.conf and rebuild the port ("sudo port -ns upgrade --force libshout2") and if it still doesn't have shout.pc, attach the log file to this ticket ("port logfile libshout2" will show you where it is).