FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian dpkg

 
 
LinkBack Thread Tools
 
Old 07-18-2012, 08:53 PM
Russ Allbery
 
Default Bug#273093: Unpredictable behavior when two packages want to divert the same file

Jonathan Nieder <jrnieder@gmail.com> writes:

> To be clear, which of the following is this report proposing?

> * Packages diverting the same file should conflict.

My understanding of what Guillem said is that we should say this. You
can't actually have two different diversions of the same file at the same
time, so two separate packages can't both divert the file. If they do,
you end up with a situation (even if you avoid the package conflict) where
one of those two packages could be removed, removing the diversion, and
then putting the system in an inconsistent state for the second package.

In order to safely divert the same file in multiple packages, you would
need diversions that would stack and could be separately unwound, and that
isn't implemented.

So a diversion in essence becomes like a file installed on the system:
only one package can own it at a time, so packages that want to divert the
same file have to conflict. What, for example, the various proprietary
video drivers do is that they all share a utility package that manages the
diversions for all of those packages so that the diversion code isn't
duplicated in multiple packages.

> * Packages should not divert a file unless that file is "divertable".
> To make a file divertable, the maintainer of the package shipping
> it adds a comment to debian/control mentioning the filename and
> which packages are allowed to divert it.

I don't think the bug report was asking for more formality around the
coordination with the package maintainer part.

--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87txx4kczi.fsf@windlord.stanford.edu">http://lists.debian.org/87txx4kczi.fsf@windlord.stanford.edu
 
Old 07-18-2012, 09:18 PM
Frank Kuester
 
Default Bug#273093: Unpredictable behavior when two packages want to divert the same file

Russ Allbery <rra@debian.org> writes:

> Jonathan Nieder <jrnieder@gmail.com> writes:
>
>> To be clear, which of the following is this report proposing?
>
>> * Packages should not divert a file unless that file is "divertable".
>> To make a file divertable, the maintainer of the package shipping
>> it adds a comment to debian/control mentioning the filename and
>> which packages are allowed to divert it.
>
> I don't think the bug report was asking for more formality around the
> coordination with the package maintainer part.

I remember having opened the bug report, but not what was the real
problem I had come across, nor my opinions on a solution.

I don't think today that policy should require such a formalism.
However, it is good practice to consult the maintainer of the "diverted"
package. Therefore, in particular in team-maintained packages, I do
think that a list "I expect this and that file to be diverted, please
ask before doing anything else" somewhere in the debian directory might
be a good idea.

Regards, Frank


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87fw8opy3z.fsf@riesling.miltenberg.kuesterei.ch">h ttp://lists.debian.org/87fw8opy3z.fsf@riesling.miltenberg.kuesterei.ch
 

Thread Tools




All times are GMT. The time now is 10:44 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org