r6744 - packages/trunk/openal-soft/debian

Andres Mejia mcitadel at gmail.com
Fri Apr 25 23:37:41 UTC 2008


On Friday 25 April 2008 7:02:38 pm Stefan Potyra wrote:
> Hi,
>
> Am Donnerstag 24 April 2008 09:13:17 schrieb Andres Mejia:
> [..]
>
> > Adding Replaces field for older openal library packages
>
> [..]
>
> >  Depends: ${shlibs:Depends}
> > +Replaces: libopenal0, libopenal0a
>
> just a small hint: a library package should never replace another library
> package. It can only do so, if it is a replacement on the ABI level, but
> then of course it wouldn't need a different SONAME.
>
> (fortunately, there is no conflicts there as well).
>
> As an example, consider bar linked against libopenal0. The user has bar
> installed, and hence libopenal0 got drawn in. Now he/she chooses to upgrade
> to libopenal1, which would then replace (and hence remove) libopenal0. As a
> result, bar on the users system would no longer work, if it uses any symbol
> which is not present in libopenal1.
>
> Cheers,
>     Stefan.

This is why I left out a Conflicts field. In this way, libopenal1 will only 
replace files from libopenal0a if the two packages have the same file. The 
way it's done does not mean it will remove libopenal0a or libopenal0. Look at 
Debian Policy 7.5.1.

-- 
Regards,
Andres



More information about the Pkg-games-devel mailing list