Re: [PATCH] Install headers, add pkgconfig file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Tue, 11 Mar 2008, Matthias Schwarzott wrote:

On Dienstag, 11. März 2008, clemens kirchgatterer wrote:
On Tue, Mar 11, 2008 at 12:27 AM, Matthias Schwarzott <zzam@xxxxxxxxxx>
wrote:
On Montag, 10. März 2008, Ville Skyttä wrote:

 So you can install .pc file anywhere you want if you add this location
to PKG_CONFIG_PATH.

 So /usr/bin/pkg-config will always look into /usr/lib/pkgconfig.
 We can either use
 A. $(DESTDIR)/usr/lib/pkgconfig
 or
 B. $(DESTDIR)$(PREFIX)/lib/pkgconfig

 For most installations A should be fine.

definitly B, otherwise it will not work for parallel installs of
different vdr versions in different $PREFIXes.


Ack!
BUT: B with default values from Makefile gives
/usr/local/lib/pkgconfig that by default is not in pkgconfig search-path.

And I wrote: "For most installations ..."

What would you think is the default?

case 1:
download pkg-config, extract it, run configure, make, make install
and you end up with pkg-config installed in /usr/local/bin and the default search path will be "/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig"
as the configure script sets:
	pc_path='${libdir}/pkgconfig:${datadir}/pkgconfig'
if there is no '--with-pc_path=/my/path' given to configure.
case 2:
install an openSuSE-10.3 (i386) system with the prepackaged pkg-config RPM and you end up with pkg-config installed in /usr/bin and the default search path is "/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:
/usr/lib/pkgconfig:/usr/share/pkgconfig:/opt/kde3/lib/pkgconfig"
case 3:
install a Debian-4.0 (x86_64) system with the prepackaged pkg-config DEB and you end up with pkg-config installed in /usr/bin and the default search path is "/usr/local/lib/pkgconfig:
/usr/local/lib/pkgconfig/x86_64-linux-gnu:/usr/local/share/pkgconfig:
/usr/lib/pkgconfig:/usr/lib/pkgconfig/x86_64-linux-gnu:/usr/share/pkgconfig"
case 4:
install FreeBSD and install the prebuilt pkg-config package or built it by hand out of the ports tree and you end up with pkg-config installed in /usr/local/bin and the default search path is "/usr/local/libdata/pkgconfig:
/usr/local/lib/pkgconfig"

Out of this four cases (there are probably more, one for every Linux distribution on this planet), tell me which is the most reasonable default?

Joerg

- -- The beginning is the most important part of the work.
				-Plato
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFH1ps+SPOsGF+KA+MRAvWCAJ9Q8xP2Zywci6CxH+Y0dLhahaLo/ACeJsrR
xSPJC+0zZ/vWNoRm879qMTs=
=auza
-----END PGP SIGNATURE-----
_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux