On 02/01/2011 Jonas wrote: > On 01/01/2011 Steve Langasek wrote: > > On Sat, Jan 01, 2011 at 06:34:30PM +0100, Julien Cristau wrote: > > > On Sat, Jan 1, 2011 at 17:11:17 +0100, Michael Biebl wrote: > > > > > > Afaicr I've never seen this documentented somewhere to do it this way > > > > and I'm > > > > wondering if this is indeed the agreed upon best practice and if we > > > > should > > > > document it somehow (policy, devref, whatever). > > > > > Yes. Arguably it's covered under > > > http://www.pathname.com/fhs/pub/fhs-2.3.html#LIBESSENTIALSHAREDLIBRARIESANDKERN > > > > I don't think there's much room for argument at all, the FHS definition of > > /lib is pretty clear. :) > > > > Yes, this does cause problems for autotools and the like when it comes time > > to install, since this FHS-mandated split between /usr/lib and /lib isn't > > directly supported by automake. A burden we must bear, unless someone wants > > to fix automake. > > In case that the situation is clear, some Ubuntu packages seem to be > wrong. At least the Ubuntu libgcrypt11-dev[1] and libgpg-error-dev[2] > packages seem to install the development files to /lib.
I was wrong, both libgcrypt11-dev and libgpg-error-dev from Ubuntu do
install the .la files to /usr/lib, and just link them from /lib. But
according to Ubuntu natty Contents-amd64.gz[1], the following packages
only have .la in /lib:
libnih-dev, libnih-dbus-dev, libupsclient1-dev.
In Debian sid, as already written this is the case for the following
packages (according to amd64 Contents.gz[2]):
libnih-dev, libnih-dbus-dev, libsplashy1-dev
The following packages install development .a library to /lib in Debian
sid[3]:
libcap-dev, libgpib0-dev, libnih-dev, libnih-dbus-dev, plymouth-dev,
libupsclient1-dev
And the following packages install the unversioned .so link to /lib in
Debian sid [4, manually checked]:
libcap-dev, libcgroup-dev, libgpib0-dev, iptables-dev, libnss-lwres,
libnss-sss, plymouth-dev, libsplashy1-dev
greetings,
jonas
[1] while read line; do if ! zgrep -q "^usr/${line}" Contents-amd64.gz; then
echo $line; fi; done < <(zgrep "^lib/lib.*\.la" Contents-amd64.gz | awk '{print
$1}')
[2] while read line; do if ! zgrep -q "^usr/${line}"
/var/cache/apt/apt-file/ftp2.de.debian.org_debian_dists_unstable_Contents-amd64.gz;
then echo $line; fi; done < <(zgrep "^lib/lib.*\.la"
/var/cache/apt/apt-file/ftp2.de.debian.org_debian_dists_unstable_Contents-amd64.gz
| awk '{print $1}')
[3] while read line; do if ! zgrep -q "^usr/${line}"
/var/cache/apt/apt-file/ftp2.de.debian.org_debian_dists_unstable_Contents-amd64.gz;
then echo $line; fi; done < <(zgrep "^lib/lib.*\.a\s"
/var/cache/apt/apt-file/ftp2.de.debian.org_debian_dists_unstable_Contents-amd64.gz
| awk '{print $1}')
[4] while read line; do if ! zgrep -q "^usr/${line}"
/var/cache/apt/apt-file/ftp2.de.debian.org_debian_dists_unstable_Contents-amd64.gz;
then echo $line; fi; done < <(zgrep "^lib/lib.*\.so\s"
/var/cache/apt/apt-file/ftp2.de.debian.org_debian_dists_unstable_Contents-amd64.gz
| grep -v "\-[0-9]" | awk '{print $1}')
signature.asc
Description: Digital signature

