Re: devel files and libraries in /lib

2011-01-06 Thread Enrico Weigelt
* Bernhard R. Link brl...@debian.org schrieb: They do not only include the library in question, but they include many other libraries. As paths supplied by the user are searched in before anything in the system path, this changes the order the system paths are searched in. This can both hide

Re: devel files and libraries in /lib

2011-01-06 Thread Enrico Weigelt
* Roger Leigh rle...@codelibre.net schrieb: Well, they end up on / to give you /games, /include, /local, /share and /src. Because /usr is a symlink to /, these are still accessible as /usr/games, /usr/include etc. for full backward compatibility. If it's just about getting rid of two

Re: devel files and libraries in /lib

2011-01-05 Thread Sven Joachim
On 2011-01-05 08:46 +0100, Mike Hommey wrote: On Wed, Jan 05, 2011 at 03:29:08AM +0100, Michael Biebl wrote: Nice write-up, you raise many good points I agree with. Just a small remark: On 05.01.2011 01:25, Roger Leigh wrote: 2) /usr is mounted read-only for security and safety

Re: devel files and libraries in /lib

2011-01-05 Thread Olaf van der Spek
On Wed, Jan 5, 2011 at 1:25 AM, Roger Leigh rle...@codelibre.net wrote: Well, that's the issue at hand.  The reason I mentioned this is because I believe that the / and /usr separation is a case where we should stop to consider the bigger picture rather than just the immediate problem. Solving

Re: devel files and libraries in /lib

2011-01-05 Thread Cyril Brulebois
Mike Hommey m...@glandium.org (05/01/2011): It requires a recent kernel, though. IIRC, Lenny kernels don't support readonly bind mounts. readonly bind mount support appeared in 2.6.26, at least according to the first point in [1]. 1. http://kernelnewbies.org/Linux_2_6_26 KiBi.

Re: devel files and libraries in /lib

2011-01-05 Thread Roger Leigh
On Wed, Jan 05, 2011 at 12:44:34PM +0100, Olaf van der Spek wrote: On Wed, Jan 5, 2011 at 1:25 AM, Roger Leigh rle...@codelibre.net wrote: Well, that's the issue at hand.  The reason I mentioned this is because I believe that the / and /usr separation is a case where we should stop to

Re: devel files and libraries in /lib

2011-01-05 Thread Olaf van der Spek
On Wed, Jan 5, 2011 at 1:18 PM, Roger Leigh rle...@codelibre.net wrote: You're right. Is there a project goal for this yet? No, that's one of the reasons I've brought it up. Practically speaking, this can be done fairly easily.  There's no need to ban having a separate /usr at all.  Having

Re: devel files and libraries in /lib

2011-01-05 Thread Roger Leigh
On Wed, Jan 05, 2011 at 01:57:31PM +0100, Olaf van der Spek wrote: On Wed, Jan 5, 2011 at 1:18 PM, Roger Leigh rle...@codelibre.net wrote: You're right. Is there a project goal for this yet? No, that's one of the reasons I've brought it up. Practically speaking, this can be done fairly

Re: devel files and libraries in /lib

2011-01-05 Thread Olaf van der Spek
On Wed, Jan 5, 2011 at 3:15 PM, Roger Leigh rle...@codelibre.net wrote: I doubt it.  The symlink doesn't work right now due to the same file being present on both paths, causing one to be overwritten.  Once that issue is solved, it should not impact upon keeping /usr separate.  As long as a

Re: devel files and libraries in /lib

2011-01-05 Thread Neil Williams
On Wed, 5 Jan 2011 16:42:29 +0100 Olaf van der Spek olafvds...@gmail.com wrote: On Wed, Jan 5, 2011 at 3:15 PM, Roger Leigh rle...@codelibre.net wrote: I doubt it.  The symlink doesn't work right now due to the same file being present on both paths, causing one to be overwritten.  Once that

Re: devel files and libraries in /lib

2011-01-04 Thread Tollef Fog Heen
]] Roger Leigh | On Mon, Jan 03, 2011 at 10:33:21PM +0100, Olaf van der Spek wrote: | I've never used pkgconfig. But if it doesn't support it, it too should be fixed. First, it's pkg-config, and secondly, no, it shouldn't. pkg-config doesn't try to be everything to everybod and I haven't

Re: devel files and libraries in /lib

2011-01-04 Thread Olaf van der Spek
On Tue, Jan 4, 2011 at 9:38 AM, Tollef Fog Heen tfh...@err.no wrote: ]] Roger Leigh | On Mon, Jan 03, 2011 at 10:33:21PM +0100, Olaf van der Spek wrote: | I've never used pkgconfig. But if it doesn't support it, it too should be fixed. First, it's pkg-config, and secondly, no, it

Re: devel files and libraries in /lib

2011-01-04 Thread Bernhard R. Link
* Olaf van der Spek olafvds...@gmail.com [110104 11:20]: On Tue, Jan 4, 2011 at 9:38 AM, Tollef Fog Heen tfh...@err.no wrote: ]] Roger Leigh | On Mon, Jan 03, 2011 at 10:33:21PM +0100, Olaf van der Spek wrote: | I've never used pkgconfig. But if it doesn't support it, it too should

Re: devel files and libraries in /lib

2011-01-04 Thread Tollef Fog Heen
]] Olaf van der Spek | On Tue, Jan 4, 2011 at 9:38 AM, Tollef Fog Heen tfh...@err.no wrote: | ]] Roger Leigh | | | On Mon, Jan 03, 2011 at 10:33:21PM +0100, Olaf van der Spek wrote: | | | I've never used pkgconfig. But if it doesn't support it, it too should be fixed. | | First, it's

Re: devel files and libraries in /lib

2011-01-04 Thread Olaf van der Spek
On Tue, Jan 4, 2011 at 1:42 PM, Tollef Fog Heen tfh...@err.no wrote: | Eh, wouldn't this case be a valid use case? No, there's no reason for the .so to live in /lib rather than /usr/lib. What about .so files needed before /usr is mounted? Olaf -- To UNSUBSCRIBE, email to

Re: devel files and libraries in /lib

2011-01-04 Thread Tollef Fog Heen
]] Olaf van der Spek | On Tue, Jan 4, 2011 at 1:42 PM, Tollef Fog Heen tfh...@err.no wrote: | | Eh, wouldn't this case be a valid use case? | | No, there's no reason for the .so to live in /lib rather than /usr/lib. | | What about .so files needed before /usr is mounted? Do you have a

Re: devel files and libraries in /lib

2011-01-04 Thread Olaf van der Spek
On Tue, Jan 4, 2011 at 2:40 PM, Tollef Fog Heen tfh...@err.no wrote: | What about .so files needed before /usr is mounted? Do you have a non-contrived example of a .so file which is needed before /usr is mounted and where there's a need for a static library? Why the second part of that

Re: devel files and libraries in /lib

2011-01-04 Thread Enrico Weigelt
* Andreas Metzler ametz...@downhill.at.eu.org schrieb: in a nutshell: I doubt anybody who has the knowledge to fix it cares, and there is more to it than a --with-stuff-usually-in-libdir-but-we-want-it-below-urs=/usr/lib. Installing it there is simple, making use of the installed files is

Re: devel files and libraries in /lib

2011-01-04 Thread Enrico Weigelt
* Bernhard R. Link brl...@debian.org schrieb: We are talking about things stored in /lib or /usr/lib here, i.e. something stored in a system path. Sadly pkg-config does not support this, so there will be some -L recorded with some path, which one has to hope will later be removed by

Re: devel files and libraries in /lib

2011-01-04 Thread Steve Langasek
On Tue, Jan 04, 2011 at 09:38:19AM +0100, Tollef Fog Heen wrote: | An alternative strategy to consider for the future: drop /usr entirely | and place all libraries in /lib [as done on GNU/Hurd]. On current | systems using initramfs the need for a separate / and /usr is gone. | IMHO, there are

Re: devel files and libraries in /lib

2011-01-04 Thread Sven Joachim
On 2011-01-04 16:33 +0100, Steve Langasek wrote: On Tue, Jan 04, 2011 at 09:38:19AM +0100, Tollef Fog Heen wrote: | An alternative strategy to consider for the future: drop /usr entirely | and place all libraries in /lib [as done on GNU/Hurd]. On current | systems using initramfs the need

Re: devel files and libraries in /lib

2011-01-04 Thread Samuel Thibault
Steve Langasek, le Tue 04 Jan 2011 07:33:04 -0800, a écrit : In what way is it not already possible to symlink /usr to /? We've abandoned that for the GNU/Hurd port notably because as of now it messes up library resolution, e.g. a library is found in /lib/libfoo while it's actually packaged in

Re: devel files and libraries in /lib

2011-01-04 Thread Bernhard R. Link
* Enrico Weigelt weig...@metux.de [110104 16:07]: And what exactly is the problem w/ redundant system pathes ? They do not only include the library in question, but they include many other libraries. As paths supplied by the user are searched in before anything in the system path, this changes

Re: devel files and libraries in /lib

2011-01-04 Thread Marc Haber
On Mon, 3 Jan 2011 21:45:49 +, Roger Leigh rle...@codelibre.net wrote: IMHO, there are nowadays few (if any) compelling reasons for having a separate /usr, and hence for having /usr at all other than as a compatibility symlink to /. Have we actually got any reasons for keeping it? many

Re: devel files and libraries in /lib

2011-01-04 Thread Steve Langasek
On Tue, Jan 04, 2011 at 04:47:28PM +0100, Sven Joachim wrote: On 2011-01-04 16:33 +0100, Steve Langasek wrote: In what way is it not already possible to symlink /usr to /? There are packages which ship a binary /bin/foo and a symlink /usr/bin/foo to it. Those will likely be broken, since

Re: devel files and libraries in /lib

2011-01-04 Thread Samuel Thibault
Steve Langasek, le Tue 04 Jan 2011 09:34:45 -0800, a écrit : I don't agree. dpkg doesn't need to care that /usr/lib/libm.so really unpacks to /lib/libm.so due to /usr - / symlink, dpkg doesn't care, but shlibdeps does care, hurd-i386 has been bitten by that enough to make us give up with /usr

Re: devel files and libraries in /lib

2011-01-04 Thread Sven Joachim
On 2011-01-04 18:34 +0100, Steve Langasek wrote: On Tue, Jan 04, 2011 at 04:47:28PM +0100, Sven Joachim wrote: It is not possible to do the switch on upgrades anyway, at least not while every package ships files under /usr. You can only do that when there are no packages installed that have

Re: devel files and libraries in /lib

2011-01-04 Thread Olaf van der Spek
On Tue, Jan 4, 2011 at 6:49 PM, Sven Joachim svenj...@gmx.de wrote: Maybe we're talking at cross-purposes here; I was speaking about the case of turning a directory into a symlink on upgrades, which cannot safely be done while there are still files under it. Thinking more about it, this

Re: devel files and libraries in /lib

2011-01-04 Thread Olaf van der Spek
On Tue, Jan 4, 2011 at 6:39 PM, Samuel Thibault sthiba...@debian.org wrote: Steve Langasek, le Tue 04 Jan 2011 09:34:45 -0800, a écrit : I don't agree.  dpkg doesn't need to care that /usr/lib/libm.so really unpacks to /lib/libm.so due to /usr - / symlink, dpkg doesn't care, but shlibdeps

Re: devel files and libraries in /lib

2011-01-04 Thread Olaf van der Spek
On Tue, Jan 4, 2011 at 6:39 PM, Samuel Thibault sthiba...@debian.org wrote: Steve Langasek, le Tue 04 Jan 2011 09:34:45 -0800, a écrit : I don't agree.  dpkg doesn't need to care that /usr/lib/libm.so really unpacks to /lib/libm.so due to /usr - / symlink, dpkg doesn't care, but shlibdeps

Re: devel files and libraries in /lib

2011-01-04 Thread Samuel Thibault
Olaf van der Spek, le Tue 04 Jan 2011 18:46:47 +0100, a écrit : On Tue, Jan 4, 2011 at 6:39 PM, Samuel Thibault sthiba...@debian.org wrote: Steve Langasek, le Tue 04 Jan 2011 09:34:45 -0800, a écrit : I don't agree.  dpkg doesn't need to care that /usr/lib/libm.so really unpacks to

Re: devel files and libraries in /lib

2011-01-04 Thread Olaf van der Spek
On Tue, Jan 4, 2011 at 7:13 PM, Samuel Thibault sthiba...@debian.org wrote: dpkg doesn't care, but shlibdeps does care, hurd-i386 has been bitten by that enough to make us give up with /usr - /. Why couldn't shlibdeps be fixed? We kept fixing it, and at some point (where it became really

Re: devel files and libraries in /lib

2011-01-04 Thread Steve Langasek
On Tue, Jan 04, 2011 at 06:51:13PM +0100, Olaf van der Spek wrote: On Tue, Jan 4, 2011 at 6:49 PM, Sven Joachim svenj...@gmx.de wrote: Maybe we're talking at cross-purposes here; I was speaking about the case of turning a directory into a symlink on upgrades, which cannot safely be done

Re: devel files and libraries in /lib

2011-01-04 Thread Olaf van der Spek
On Tue, Jan 4, 2011 at 7:29 PM, Steve Langasek vor...@debian.org wrote: On Tue, Jan 04, 2011 at 06:51:13PM +0100, Olaf van der Spek wrote: On Tue, Jan 4, 2011 at 6:49 PM, Sven Joachim svenj...@gmx.de wrote: Maybe we're talking at cross-purposes here; I was speaking about the case of turning

Re: devel files and libraries in /lib

2011-01-04 Thread Roger Leigh
On Tue, Jan 04, 2011 at 07:32:06PM +0100, Olaf van der Spek wrote: On Tue, Jan 4, 2011 at 7:29 PM, Steve Langasek vor...@debian.org wrote: On Tue, Jan 04, 2011 at 06:51:13PM +0100, Olaf van der Spek wrote: On Tue, Jan 4, 2011 at 6:49 PM, Sven Joachim svenj...@gmx.de wrote: Maybe we're

Re: devel files and libraries in /lib

2011-01-04 Thread Samuel Thibault
Olaf van der Spek, le Tue 04 Jan 2011 19:21:18 +0100, a écrit : On Tue, Jan 4, 2011 at 7:13 PM, Samuel Thibault sthiba...@debian.org wrote: We kept fixing it, and at some point (where it became really not obvious to fix it, or would have made it very cpu-consuming to solve the path

Re: devel files and libraries in /lib

2011-01-04 Thread Michael Biebl
Nice write-up, you raise many good points I agree with. Just a small remark: On 05.01.2011 01:25, Roger Leigh wrote: 2) /usr is mounted read-only for security and safety Mounting /usr read-only is common practice; I even do this myself with apt-get configured to remount read-write

Re: devel files and libraries in /lib

2011-01-04 Thread Mike Hommey
On Wed, Jan 05, 2011 at 03:29:08AM +0100, Michael Biebl wrote: Nice write-up, you raise many good points I agree with. Just a small remark: On 05.01.2011 01:25, Roger Leigh wrote: 2) /usr is mounted read-only for security and safety Mounting /usr read-only is common practice;

Re: devel files and libraries in /lib

2011-01-03 Thread Andreas Metzler
Olaf van der Spek olafvds...@gmail.com wrote: On Sun, Jan 2, 2011 at 1:37 AM, Steve Langasek vor...@debian.org wrote: 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

Re: devel files and libraries in /lib

2011-01-03 Thread Olaf van der Spek
On Mon, Jan 3, 2011 at 8:06 PM, Andreas Metzler ametz...@downhill.at.eu.org wrote: What's the problem with fixing automake? Hello, in a nutshell: I doubt anybody who has the knowledge to fix it cares, and there is more to it than a

Re: devel files and libraries in /lib

2011-01-03 Thread Roger Leigh
On Mon, Jan 03, 2011 at 10:33:21PM +0100, Olaf van der Spek wrote: On Mon, Jan 3, 2011 at 8:06 PM, Andreas Metzler ametz...@downhill.at.eu.org wrote: What's the problem with fixing automake? Hello, in a nutshell: I doubt anybody who has the knowledge to fix it cares, and there is

Re: devel files and libraries in /lib

2011-01-02 Thread Olaf van der Spek
On Sun, Jan 2, 2011 at 1:37 AM, Steve Langasek vor...@debian.org wrote: 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

Re: devel files and libraries in /lib

2011-01-02 Thread Michael Biebl
On 02.01.2011 04:22, Jonas Meurer wrote: 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]:

devel files and libraries in /lib

2011-01-01 Thread Michael Biebl
Happy new year everyone. First of all, thanks Andreas and Jonas for getting libgcrypt and libgpg-error updated and moved to /lib. There is one remaining issue though about the devel files, I'd like to raise. For both libgpg-error-dev and libgcrypt11-dev you moved the .so symlink ,the *.a and

Re: devel files and libraries in /lib

2011-01-01 Thread Olaf van der Spek
On Sat, Jan 1, 2011 at 5:11 PM, Michael Biebl bi...@debian.org wrote: For both libgpg-error-dev and libgcrypt11-dev you moved the .so symlink ,the *.a and *.la libtool files to /lib too. My original patch [1] for libcryptsetup (#604936) handled this diffently. It only moved the *.so.* files

Re: devel files and libraries in /lib

2011-01-01 Thread Andreas Metzler
On 2011-01-01 Michael Biebl bi...@debian.org wrote: First of all, thanks Andreas and Jonas for getting libgcrypt and libgpg-error updated and moved to /lib. There is one remaining issue though about the devel files, I'd like to raise. For both libgpg-error-dev and libgcrypt11-dev you moved

Re: devel files and libraries in /lib

2011-01-01 Thread Julien Cristau
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

Re: devel files and libraries in /lib

2011-01-01 Thread Jonas Meurer
Hello, On 01/01/2011 Michael Biebl wrote: First of all, thanks Andreas and Jonas for getting libgcrypt and libgpg-error updated and moved to /lib. There is one remaining issue though about the devel files, I'd like to raise. For both libgpg-error-dev and libgcrypt11-dev you moved the .so

Re: devel files and libraries in /lib

2011-01-01 Thread Michael Biebl
On 01.01.2011 17:58, Jonas Meurer wrote: Thus I guess the following is best practise: - build with --prefix=/usr - install .la file (if required due to reverse dependencies) and .so link to /usr/lib (just like the build system will do) I would add, that if there are no rdeps yet of this

Re: devel files and libraries in /lib

2011-01-01 Thread Marcelo E. Magallon
On Sat, Jan 01, 2011 at 05:11:17PM +0100, Michael Biebl wrote: For both libgpg-error-dev and libgcrypt11-dev you moved the .so symlink ,the *.a and *.la libtool files to /lib too. My original patch [1] for libcryptsetup (#604936) handled this diffently. It only moved the *.so.* files to

Re: devel files and libraries in /lib

2011-01-01 Thread Steve Langasek
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

Re: devel files and libraries in /lib

2011-01-01 Thread Jonas Meurer
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

Re: devel files and libraries in /lib

2011-01-01 Thread Jonas Meurer
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

Re: devel files and libraries in /lib

2011-01-01 Thread Enrico Weigelt
* Jonas Meurer jo...@freesources.org schrieb: 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. In Debian, at least the following three packages