Re: Summary of C++ symbols experience (was: Do symbols make sense for C++)

2012-01-29 Thread Lisandro Damián Nicanor Pérez Meyer
On Sáb 28 Ene 2012 02:28:25 Russ Allbery escribió: [snip] 2. Build and upload this version of the package. Now wait for all the buildds to fail (because they will, on probably nearly every other architecture than your local one). Sometimes we may expect FTBFSs due to changes in other

Re: Do symbols make sense for C++

2012-01-28 Thread Bernhard R. Link
* Russ Allbery r...@debian.org [120127 22:30]: Symbol files are nice if you have a upstream who doesn't always take binary compatibility that serious (which is probably the case for 75% of upstreamers). Then you have a list that helps you finding out. This is probably the best summary of

Re: Summary of C++ symbols experience (was: Do symbols make sense for C++)

2012-01-28 Thread Sune Vuorela
On 2012-01-28, Russ Allbery r...@debian.org wrote: 5. It's still not clear that the benefit is worth the amount of effort, since I expect most C++ libraries to require frequent SONAME changes anyway, which means that the long-term binary compatibility angle of Qt has kept binary

Re: Do symbols make sense for C++

2012-01-28 Thread Russ Allbery
Bernhard R. Link brl...@debian.org writes: * Russ Allbery r...@debian.org [120127 22:30]: This is probably the best summary of why a symbols file might be useful. It helps catch cases where ABI compatibility is not maintained without people being aware that this broke. On the other hand a

Re: Do symbols make sense for C++

2012-01-27 Thread Thomas Weber
On Thu, Jan 26, 2012 at 11:49:06PM +, Sune Vuorela wrote: On 2012-01-26, Thomas Weber twe...@debian.org wrote: I'm currently creating symbol files for Octave in Debian. And quite frankly, the way symbol files for C++ libraries are handled and (especially) documented is totally

Re: Do symbols make sense for C++

2012-01-27 Thread Russ Allbery
Sune Vuorela nos...@vuorela.dk writes: On 2012-01-26, Russ Allbery r...@debian.org wrote: But that feels like a result contrary to what I had previously thought was the intended direction, so I wanted to ask the Debian development community as a whole: am I missing something? Are these

Summary of C++ symbols experience (was: Do symbols make sense for C++)

2012-01-27 Thread Russ Allbery
Okay, I've spent parts of another couple of days working on this using the pkg-kde-tools infrastructure, and I think I can draw some more conclusions. First of all, for those who haven't explored the pkg-kde-tools infrastructure for this, it looks like the effective process goes something like

Re: Do symbols make sense for C++

2012-01-26 Thread Mike Hommey
On Thu, Jan 26, 2012 at 08:58:55AM +0100, Raphael Hertzog wrote: Hi, On Wed, 25 Jan 2012, Russ Allbery wrote: 4. Once I had a symbols file that resulted in a successful build and that I could have uploaded, I started thinking about how I was going to maintain it. With a C program,

Re: Do symbols make sense for C++

2012-01-26 Thread Mike Hommey
On Wed, Jan 25, 2012 at 10:53:04PM -0800, Russ Allbery wrote: I'm currently working on the Policy modification to document (and recommend) use of symbols instead of shlibs, but I'd only personally used symbols with C libraries. Today I decided that I should try adding a symbols file to a C++

Re: Do symbols make sense for C++

2012-01-26 Thread Sune Vuorela
On 2012-01-26, Russ Allbery r...@debian.org wrote: But that feels like a result contrary to what I had previously thought was the intended direction, so I wanted to ask the Debian development community as a whole: am I missing something? Are these symbols files actually useful? Symbol files

Re: Do symbols make sense for C++

2012-01-26 Thread Russ Allbery
Raphael Hertzog hert...@debian.org writes: On Wed, 25 Jan 2012, Russ Allbery wrote: 4. Once I had a symbols file that resulted in a successful build and that I could have uploaded, I started thinking about how I was going to maintain it. With a C program, I would change the symbols

Re: Do symbols make sense for C++

2012-01-26 Thread Jérémy Lal
On 26/01/2012 09:08, Sune Vuorela wrote: On 2012-01-26, Russ Allbery r...@debian.org wrote: But that feels like a result contrary to what I had previously thought was the intended direction, so I wanted to ask the Debian development community as a whole: am I missing something? Are these

Re: Do symbols make sense for C++

2012-01-26 Thread Reinhard Tartler
On Do, Jan 26, 2012 at 09:26:15 (CET), Jérémy Lal wrote: [...] About what i wonder (since i'm not c++ expert) if abi-compliance-checker is serious enough to be used to decide soname bumps ? http://www.upstream-tracker.org/ Thank you very much for pointing out this service. It surely is very

Re: Do symbols make sense for C++

2012-01-26 Thread Chow Loong Jin
On 26/01/2012 14:53, Russ Allbery wrote: 5. The exported symbols of the library contained many symbols that obviously weren't really from that library, but instead were artifacts of the C++ compilation process, things like instantiations of std::vector. Do those go into the symbols

Re: Do symbols make sense for C++

2012-01-26 Thread Sune Vuorela
On 2012-01-26, Jérémy Lal kapo...@melix.org wrote: About what i wonder (since i'm not c++ expert) if abi-compliance-checker is serious enough to be used to decide soname bumps ? http://www.upstream-tracker.org/ The abi checker that iirc is hosted somewhere underneath linuxfoundation is

Re: Do symbols make sense for C++

2012-01-26 Thread Sune Vuorela
On 2012-01-26, Russ Allbery r...@debian.org wrote: I certainly believe there are carefully-maintained C++ libraries that are more conservative and that go to the required effort to make this work properly, and KDE is probably an excellent example of a large C++ project with enough C++ experts

Re: Do symbols make sense for C++

2012-01-26 Thread Sune Vuorela
On 2012-01-26, Chow Loong Jin hyper...@debian.org wrote: (c++|regex)MediaInfoLib::MediaInfo::Count_Get\(MediaInfoLib::stream_t, unsigned (int|long)\)@Base 0.7.52 (subst)MediaInfoLib::MediaInfo::Count_Get(MediaInfoLib::stream_t {size_t})@base 0.7.52 note that you might actually want to use the

Re: Do symbols make sense for C++

2012-01-26 Thread Chow Loong Jin
On 26/01/2012 17:06, Sune Vuorela wrote: On 2012-01-26, Chow Loong Jin hyper...@debian.org wrote: (c++|regex)MediaInfoLib::MediaInfo::Count_Get\(MediaInfoLib::stream_t, unsigned (int|long)\)@Base 0.7.52 (subst)MediaInfoLib::MediaInfo::Count_Get(MediaInfoLib::stream_t {size_t})@base 0.7.52

Re: Do symbols make sense for C++

2012-01-26 Thread Sune Vuorela
On 2012-01-26, Chow Loong Jin hyper...@debian.org wrote: (subst)MediaInfoLib::MediaInfo::Count_Get(MediaInfoLib::stream_t {size_t})@base 0.7.52 That feature has not been implemented, and its bug[1] has been tagged won= tfix. it's available in pkg-kde-tools as mentioned at other places in

Re: Do symbols make sense for C++

2012-01-26 Thread Florian Weimer
* Russ Allbery: I'm currently working on the Policy modification to document (and recommend) use of symbols instead of shlibs, but I'd only personally used symbols with C libraries. Today I decided that I should try adding a symbols file to a C++ library, particularly if I'm going to

Re: Do symbols make sense for C++

2012-01-26 Thread Lisandro Damián Nicanor Pérez Meyer
On Jue 26 Ene 2012 05:08:07 Sune Vuorela escribió: [snip] Am I missing some trick to make them useful? You miss pkgkde-symbolshelper written by the fabulous Modestas Vainius which is available in pkg-kde-tools. http://pkg-kde.alioth.debian.org/symbolfiles.html +1. As Sune said in other

Re: Do symbols make sense for C++

2012-01-26 Thread Bernhard R. Link
* From: Russ Allbery, Wed, 25 Jan 2012 22:53:04 -0800 4. Once I had a symbols file that resulted in a successful build and that I could have uploaded, I started thinking about how I was going to maintain it. With a C program, I would change the symbols file versions when the underlying

Re: Do symbols make sense for C++

2012-01-26 Thread Russ Allbery
Bernhard R. Link brl...@debian.org writes: How many upstream are there that try to achieve ABI equivalence? Usually people only try to achieve ABI compability, i.e. programs compiled against the old version will work with the new one, but there is no garantee that programs compiled against

Re: Do symbols make sense for C++

2012-01-26 Thread Thomas Weber
On Thu, Jan 26, 2012 at 08:08:07AM +, Sune Vuorela wrote: Am I missing some trick to make them useful? You miss pkgkde-symbolshelper written by the fabulous Modestas Vainius which is available in pkg-kde-tools. http://pkg-kde.alioth.debian.org/symbolfiles.html I'm currently creating

Re: Do symbols make sense for C++

2012-01-26 Thread Sune Vuorela
On 2012-01-26, Thomas Weber twe...@debian.org wrote: I'm currently creating symbol files for Octave in Debian. And quite frankly, the way symbol files for C++ libraries are handled and (especially) documented is totally frustrating. There's exactly zero precise documentation on how to

Do symbols make sense for C++

2012-01-25 Thread Russ Allbery
I'm currently working on the Policy modification to document (and recommend) use of symbols instead of shlibs, but I'd only personally used symbols with C libraries. Today I decided that I should try adding a symbols file to a C++ library, particularly if I'm going to recommend everyone do it. I

Re: Do symbols make sense for C++

2012-01-25 Thread Raphael Hertzog
Hi, On Wed, 25 Jan 2012, Russ Allbery wrote: 4. Once I had a symbols file that resulted in a successful build and that I could have uploaded, I started thinking about how I was going to maintain it. With a C program, I would change the symbols file versions when the underlying