New control field proposal which could help on gcc3.2 transition
I wrote the following proposal a while back, but decided that since it
was post-woody, I would wait. But woody is out and I think that it
could also be usefull for the gcc3.2 transition.
Thanks for your time
--- Manuel Estrada Sainz <email@example.com>
------------------------ <firstname.lastname@example.org> -------------------
Let us have the serenity to accept the things we cannot change, courage to
change the things we can, and wisdom to know the difference.
Debian packages have been repeatedly bitten by the fact that a package
breaks its ABI as it evolves, which means that dependencies like:
'foo (>= X.X-X)' ends up not been quite enough; Something like 'foo (>= X.X-X),
foo (<< Y.Y-Y)' would be more efective, but Y.Y-Y is usualy unknown when
writing those dependencies.
There are currently a couple of solutions to this:
1) Change the name of the package
* I don't think this is elegant
* libc5->libc6 transition (appending the infamous 'g')
2) Depending on a fixed version of the package 'foo (== X.X-X)'
* Well, this is quite unflexible and is only usefull with experimental
libraries and the like.
* Requieres previous knowledge of the problem.
* libgtk1.3 packages.
* libsdl1.1 packages.
3) Keep a Compatible version and make new version with a different name
* May be unpractical.
4) Conflicting with all packages which have problems with the new version
* This is ugly and error prone.
* some python changes a while back.
An idea has been floating in my mind for a while now, how about adding an
'StableABISince: Y.Y-Y' field to the control file of 'foo' so that:
a) any versioned dependency on 'foo (>= X.X-X)' will be considered broken if
'X.X-X < Y.Y-Y'
b) any unversioned dependency on 'foo' will be considered broken if foo has
an 'StableABISince' field.
An example of how the libsdl1.2debian name could have been prevented with this:
After breakage: vlc-sdl will be considered broken.
After fixing vlc-sdl:
Depends: libsdl1.2 (>= 1.2.2-3.1)
Future libsdl1.2 release: vlc-sdl's dependency will be ok.
Next breakage: vlc-sdl will be considered broken again
After fixing vlc-sdl:
Depends: libsdl1.2 (>= 1.2.2-8)
And so on.
And now that we are talking about gcc3.2 transition, this could also help on
that. It would allow the same effect as appending the 'c' but without