Re: Packaging of static libraries

2016-05-04 Thread Jakub Wilk
* Jakub Wilk , 2016-04-14, 18:06: It would be helpful if we could check if a dynamic binary is linked to a static library from another package; but I'm not aware of any reliable method to implement such check. Maybe we could exploit the fact that static libraries are

Re: Packaging of static libraries

2016-04-19 Thread Nikolaus Rath
On Apr 19 2016, Bas Wijnen wrote: > On Thu, Apr 14, 2016 at 02:57:00PM +0200, Vincent Danjean wrote: >> > If users have such specialized needs, I think it is not only reasonable >> > that >> > they build their own versions of their libraries; I expect them to prefer >> >

Re: Packaging of static libraries

2016-04-19 Thread Bas Wijnen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Apr 19, 2016 at 10:13:28PM +0200, Vincent Danjean wrote: > The initial argument was: > > We in Debian are in a good position to defend our users from the > > fallout from this problem. We could change our default compiler > > options to

Re: Packaging of static libraries

2016-04-19 Thread Vincent Danjean
Le 19/04/2016 19:57, Bas Wijnen a écrit : > You seem to suggest that we should compile for > maximum performance, at the cost of security, because some people want that. No. Reread what I wrote. I think security is important but this is only one thing between many. I'm convinced that we

Re: Packaging of static libraries

2016-04-19 Thread Bas Wijnen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Apr 14, 2016 at 02:57:00PM +0200, Vincent Danjean wrote: > > If users have such specialized needs, I think it is not only reasonable that > > they build their own versions of their libraries; I expect them to prefer > > that. > > So we should

Re: Packaging of static libraries

2016-04-18 Thread Alexander Cherepanov
On 2016-04-13 17:19, Vincent Lefevre wrote: On 2016-04-13 12:40:39 +0100, Ian Jackson wrote: Vincent Lefevre writes ("Re: Packaging of static libraries"): Note that by default, shared libraries would still be used, so that this would affect only users with specific applications, who

Re: Packaging of static libraries

2016-04-18 Thread Alexander Cherepanov
On 2016-04-13 15:29, Ian Jackson wrote: Adam Borowski writes ("Re: Packaging of static libraries"): On Tue, Apr 12, 2016 at 02:52:33PM +0100, Ian Jackson wrote: I'm afraid that LTO is probably too dangerous to be used as a substitute for static linking. See my comments in the

Re: Packaging of static libraries

2016-04-14 Thread Jakub Wilk
* Milan Kupcevic , 2016-04-10, 20:34: We should change policy and packaging tools such that static linking are not enabled by default and only enabled when there is a good reason to do so; when requested by users or when there is some other No, we should not. +1 A lintian

Re: Packaging of static libraries

2016-04-14 Thread Vincent Danjean
Le 13/04/2016 20:02, Bas Wijnen a écrit : > On Wed, Apr 13, 2016 at 05:17:54PM +0200, Marco d'Itri wrote: >> On Apr 13, Ian Jackson wrote: >>> We in Debian are in a good position to defend our users from the >>> fallout from this problem. We could change our

Re: Packaging of static libraries

2016-04-13 Thread Bas Wijnen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Apr 13, 2016 at 05:17:54PM +0200, Marco d'Itri wrote: > On Apr 13, Ian Jackson wrote: > > We in Debian are in a good position to defend our users from the > > fallout from this problem. We could change our

Re: Packaging of static libraries

2016-04-13 Thread Marco d'Itri
On Apr 13, Ian Jackson wrote: > We in Debian are in a good position to defend our users from the > fallout from this problem. We could change our default compiler > options to favour safety, and provide more traditional semantics. Which would not solve any

Re: Packaging of static libraries

2016-04-13 Thread Vincent Lefevre
On 2016-04-13 12:40:39 +0100, Ian Jackson wrote: > Vincent Lefevre writes ("Re: Packaging of static libraries"): > > Note that by default, shared libraries would still be used, so that > > this would affect only users with specific applications, who would > > want

Re: Packaging of static libraries

2016-04-13 Thread Ian Jackson
Adam Borowski writes ("Re: Packaging of static libraries"): > On Tue, Apr 12, 2016 at 02:52:33PM +0100, Ian Jackson wrote: > > I'm afraid that LTO is probably too dangerous to be used as a > > substitute for static linking. See my comments in the recent LTO > >

Re: Packaging of static libraries

2016-04-13 Thread Ian Jackson
Vincent Lefevre writes ("Re: Packaging of static libraries"): > On 2016-04-12 14:52:33 +0100, Ian Jackson wrote: > > I'm afraid that LTO is probably too dangerous to be used as a > > substitute for static linking. See my comments in the recent LTO > > thread here,

Re: Packaging of static libraries

2016-04-12 Thread Adam Borowski
On Tue, Apr 12, 2016 at 02:52:33PM +0100, Ian Jackson wrote: > Vincent Lefevre writes ("Re: Packaging of static libraries"): > > On 2016-04-10 14:28:02 +0100, Alastair McKinstry wrote: > > > (1) When performance matters. Here we need the static library to be

Re: Packaging of static libraries

2016-04-12 Thread Vincent Lefevre
On 2016-04-12 14:52:33 +0100, Ian Jackson wrote: > I'm afraid that LTO is probably too dangerous to be used as a > substitute for static linking. See my comments in the recent LTO > thread here, where I referred to the problem of undefined behaviour, > and pointed at John Regehr's blog. This is

Re: Packaging of static libraries

2016-04-12 Thread Ian Jackson
Vincent Lefevre writes ("Re: Packaging of static libraries"): > On 2016-04-10 14:28:02 +0100, Alastair McKinstry wrote: > > (1) When performance matters. Here we need the static library to be > > built without position independent code. This can still give several &g

Re: Packaging of static libraries

2016-04-12 Thread Vincent Lefevre
On 2016-04-10 14:28:02 +0100, Alastair McKinstry wrote: > (1) When performance matters. Here we need the static library to be > built without position independent code. This can still give several > percent gains depending on arch / programming language. Yes, but in that case, the best thing to

Re: Packaging of static libraries

2016-04-11 Thread Bas Wijnen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Apr 11, 2016 at 03:25:46PM +0900, Mike Hommey wrote: > > What uses require PIC static libraries that cannot be satisfied by building > > -static --whole-archive ? > >

Re: Packaging of static libraries

2016-04-11 Thread Sune Vuorela
On 2016-04-11, Alastair McKinstry wrote: > What uses require PIC static libraries that cannot be satisfied by building > -static --whole-archive ? Linking a static library into a dynamic library. /Sune

Re: Packaging of static libraries

2016-04-11 Thread Mike Hommey
On Mon, Apr 11, 2016 at 06:44:45AM +0100, Alastair McKinstry wrote: > > > On 10/04/2016 23:08, Mike Hommey wrote: > > On Sun, Apr 10, 2016 at 02:28:02PM +0100, Alastair McKinstry wrote: > >> > >> On 10/04/2016 08:05, Andreas Tille wrote: > >>> Hi, > >>> > >>> > The only use case I could

Re: Packaging of static libraries

2016-04-11 Thread Alastair McKinstry
On 10/04/2016 23:08, Mike Hommey wrote: > On Sun, Apr 10, 2016 at 02:28:02PM +0100, Alastair McKinstry wrote: >> >> On 10/04/2016 08:05, Andreas Tille wrote: >>> Hi, >>> >>> > The only use case I could imagine is to create an executable that can >>> > run outside of Debian. >> Static builds

Re: Packaging of static libraries

2016-04-10 Thread Milan Kupcevic
On 04/10/2016 06:05 PM, Jakub Wilk wrote: > * Milan Kupcevic , 2016-04-10, 16:51: We should change policy and packaging tools such that static linking are not enabled by default and only enabled when there is a good reason to do so; when requested by users or when

Re: Packaging of static libraries

2016-04-10 Thread Russ Allbery
Mike Hommey writes: > That's the funny part. Some use cases require non-PIC static libraries, > and others require PIC static libraries. Should we then ship both? I > think we can all agree that would be terrible. Actually, if the library is needed in both forms, it's not

Re: Packaging of static libraries

2016-04-10 Thread Mike Hommey
On Sun, Apr 10, 2016 at 02:28:02PM +0100, Alastair McKinstry wrote: > > > On 10/04/2016 08:05, Andreas Tille wrote: > > Hi, > > > > > The only use case I could imagine is to create an executable that can > > > run outside of Debian. > Static builds are still common in (parts of) scientific

Re: Packaging of static libraries

2016-04-10 Thread Jakub Wilk
* Milan Kupcevic , 2016-04-10, 16:51: We should change policy and packaging tools such that static linking are not enabled by default and only enabled when there is a good reason to do so; when requested by users or when there is some other No, we should not. +1 A lintian

Re: Packaging of static libraries

2016-04-10 Thread Milan Kupcevic
On 04/10/2016 12:15 PM, Clint Adams wrote: > On Mon, Apr 11, 2016 at 12:13:20AM +0800, Paul Wise wrote: >> We should change policy and packaging tools such that static linking >> are not enabled by default and only enabled when there is a good >> reason to do so; when requested by users or when

Re: Packaging of static libraries

2016-04-10 Thread Pau Garcia i Quiles
On Sun, Apr 10, 2016 at 10:24 PM, Henrique de Moraes Holschuh < h...@debian.org> wrote: > 1) make it clearn that static linking is to be used only when strongly > justified (e.g. system rescue tools like sash). > > As I see it, static libraries are mostly meant for the end-user, not for

Re: Packaging of static libraries

2016-04-10 Thread Henrique de Moraes Holschuh
On Sun, 10 Apr 2016, Clint Adams wrote: > On Mon, Apr 11, 2016 at 12:13:20AM +0800, Paul Wise wrote: > > We should change policy and packaging tools such that static linking > > are not enabled by default and only enabled when there is a good > > reason to do so; when requested by users or when

Re: Packaging of static libraries

2016-04-10 Thread Niels Thykier
Alastair McKinstry: > > > On 10/04/2016 08:05, Andreas Tille wrote: >> Hi, >> >> > The only use case I could imagine is to create an executable that can >> > run outside of Debian. > Static builds are still common in (parts of) scientific computing. > Two main reasons: > > (1) When

Re: Packaging of static libraries

2016-04-10 Thread Bas Wijnen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Apr 10, 2016 at 09:06:50PM +0500, Andrey Rahmatullin wrote: > On Sun, Apr 10, 2016 at 05:57:16PM +0200, Andreas Tille wrote: > > > > whether it is advisable to try hard to provide static libraries even if > > > > upstream build system does not

Re: Packaging of static libraries

2016-04-10 Thread Clint Adams
On Mon, Apr 11, 2016 at 12:13:20AM +0800, Paul Wise wrote: > We should change policy and packaging tools such that static linking > are not enabled by default and only enabled when there is a good > reason to do so; when requested by users or when there is some other No, we should not.

Re: Packaging of static libraries

2016-04-10 Thread Paul Wise
On Sun, Apr 10, 2016 at 11:57 PM, Andreas Tille wrote: > I do not mind about the severity of the bug (since IMHO also wishlist > bugs should be closed). My point was that to my understanding people > are misunderstanding policy when giving the advise to ignore static > library. We should change

Re: Packaging of static libraries

2016-04-10 Thread Andrey Rahmatullin
On Sun, Apr 10, 2016 at 05:57:16PM +0200, Andreas Tille wrote: > > > whether it is advisable to try hard to provide static libraries even if > > > upstream build system does not easily provide both. > > Note that it's only a wishlist severity bug if you don't provide it. > I do not mind about the

Re: Packaging of static libraries

2016-04-10 Thread Andreas Tille
On Sun, Apr 10, 2016 at 07:12:05PM +0500, Andrey Rahmatullin wrote: > On Sun, Apr 10, 2016 at 09:05:36AM +0200, Andreas Tille wrote: > > whether it is advisable to try hard to provide static libraries even if > > upstream build system does not easily provide both. > Note that it's only a wishlist

Re: Packaging of static libraries

2016-04-10 Thread Andrey Rahmatullin
On Sun, Apr 10, 2016 at 09:05:36AM +0200, Andreas Tille wrote: > whether it is advisable to try hard to provide static libraries even if > upstream build system does not easily provide both. Note that it's only a wishlist severity bug if you don't provide it. -- WBR, wRAR signature.asc

Re: Packaging of static libraries

2016-04-10 Thread Alastair McKinstry
On 10/04/2016 08:05, Andreas Tille wrote: > Hi, > > > The only use case I could imagine is to create an executable that can > > run outside of Debian. Static builds are still common in (parts of) scientific computing. Two main reasons: (1) When performance matters. Here we need the static