Re: DEB_VENDOR and forks

2009-03-18 Thread Raphael Hertzog
On Wed, 18 Mar 2009, Matthias Klose wrote: > > I see how we can solve it (add new fields in /etc/dpkg/origins/* to > > describe parent relationship, and create a new tool to query those > > meta-information) but I wonder what impact you expect it would have > > on the decision of exporting DEB_VEND

Re: DEB_VENDOR and forks

2009-03-18 Thread Matthias Klose
Raphael Hertzog schrieb: > On Wed, 18 Mar 2009, Loïc Minier wrote: >> If you implement conditional behavior in your rules, typically based on >> lsb_release -is output: >> if vendor is Ubuntu: >> foo >> elif vendor is Debian: >> bar >> you face a problem when you meet: >> else: >> >>

Re: DEB_VENDOR and forks

2009-03-18 Thread Loïc Minier
On Wed, Mar 18, 2009, Raphael Hertzog wrote: > > if vendor is Ubuntu: > > foo > > elif vendor is Debian: > > bar > > you face a problem when you meet: > > else: > > > > What behavior should one use here? > > Debian should always be the "else" because it's the default case. It > ensur

Re: DEB_VENDOR and forks

2009-03-18 Thread Loïc Minier
On Wed, Mar 18, 2009, Emilio Pozuelo Monfort wrote: > There is a good use case for this that doesn't require a conditional, which is > passing --with-package-name=$(DEB_VENDOR) to configure for packages that have > this option (e.g. the GStreamer stack, that right now checks > lsb_release -si outpu

Re: DEB_VENDOR and forks

2009-03-18 Thread Loïc Minier
On Wed, Mar 18, 2009, Raphael Hertzog wrote: > Of course an Ubuntu derivative could be surprised if they get > a Debian-variant of a package instead of an Ubuntu-variant… Yes, that's exactly the issue I'm raising > I see how we can solve it (add new fields in /etc/dpkg/origins/* to > describe pa

Re: DEB_VENDOR and forks

2009-03-18 Thread Raphael Hertzog
On Wed, 18 Mar 2009, Loïc Minier wrote: > If you implement conditional behavior in your rules, typically based on > lsb_release -is output: > if vendor is Ubuntu: > foo > elif vendor is Debian: > bar > you face a problem when you meet: > else: > > What behavior should one use here?

Re: DEB_VENDOR and forks

2009-03-18 Thread Emilio Pozuelo Monfort
Loïc Minier wrote: > On Wed, Mar 18, 2009, Raphael Hertzog wrote: >> I also included DEB_VENDOR in the set of variables. This variable is not >> used currently (as I just introduced it with dpkg 1.15.0) but I expect it >> to become more used in the future for things like this: >> - enable additiona

DEB_VENDOR and forks

2009-03-18 Thread Loïc Minier
On Wed, Mar 18, 2009, Raphael Hertzog wrote: > I also included DEB_VENDOR in the set of variables. This variable is not > used currently (as I just introduced it with dpkg 1.15.0) but I expect it > to become more used in the future for things like this: > - enable additional patch/features dependin