Re: Where did Bacula 1.38.11-7+b1 come from?
Mike Hommey <mh@glandium.org> wrote:
> On Thu, Feb 22, 2007 at 07:57:07PM +0100, Andreas Metzler <ametzler@downhill.at.eu.org> wrote:
>> Mike Hommey <mh@glandium.org> wrote:
>>> On Thu, Feb 22, 2007 at 07:31:46PM +0100, Frans Pop <elendil@planet.nl> wrote:
>>>> On Thursday 22 February 2007 19:26, Andreas Metzler wrote:
>>>>> 1. Add a Build-dependency on dpkg-dev (>=1.13.19)
>>>>> 2. For all in bacula-foo packages that are arch:all replace any
>>>>> occurence of
>>>>> Depends: bacula-foo (= ${Source-Version})
>>>>> with Depends: bacula-foo (= ${source:Version})
>>>>> 3. (optional, but clarify things) For all in bacula-foo packages that
>>>>> are arch:any replace any occurence of
>>>>> Depends: bacula-foo (= ${Binary-Version})
>>>> Something is missing here... I suspect:
>>>> | with Depends: bacula-foo (= ${binary:Version})
>>> That would be
>>> bacula-foo (>= ${source:Version}), bacula-foo (<< ${source:Version}.1~)
>> I do not get that, what is the benefit compared to (= ${binary:Version})
> arch: all packages are *not* rebuilt, so their dependency won't ever get
> updated, which means the dependency will be stuck to the original
> ${binary:Version}, which is... ${source:Version}.
You are thinking about an arch:all Package with a (= ${Source-Version})
dependency on an arch=any package? Hmm, yes that is a gotcha.
So we'd end up with this instead of a the 3. above:
3. For all in bacula-foo packages that are arch:any replace any occurence of
Depends: bacula-foo (= ${Source-Version}) with either
Depends: bacula-foo (= ${binary:Version})
*if* the depending package itself is arch-any (optional cosmetical
change) or
Depends: bacula-foo (>= ${source:Version}), bacula-foo (<< ${source:Version}.1~
otherwise *if* the depending package itself is arch all.
An example might help:
*Before*
Package: foo
Architecture: all
Depends: foo-binary (= ${Source-Version}), foo-doc (= ${Source-Version})
Package: foo-x
Architecture: any
Depends: foo-binary (= ${Source-Version})
Package: foo-binary
Architecture: any
Depends: foo-data (= ${Source-Version})
Package: foo-data
Architecture: all
Package: foo-doc
Architecture: all
*After*
Build-Depends: dpkg-dev (>=1.13.19)
Package: foo
Architecture: all
Depends: foo-binary (>= ${source:Version}), foo-binary (<< ${source:Version}.1~), foo-doc (= ${source:Version})
Package: foo-x
Architecture: any
Depends: foo-binary (= ${binary:Version})
Package: foo-binary
Architecture: any
Depends: foo-data (= ${source:Version})
Package: foo-data
Architecture: all
Package: foo-doc
Architecture: all
cu andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
Reply to: