Russ Allbery <[email protected]> writes:

> Eric Lavarde <[email protected]> writes:
>
>> I fear I know the (negative) answer, but perhaps I missed something: I
>> have one source package which creates a library and an application,
>> where each has its own (different) version.  The logical approach would
>> be to have two binary packages created from the same source, with two
>> different versions.
>
> It is possible to do (I just did it today for something internal,
> actually), but it's kind of a pain since the helper scripts don't have any
> real support for it.  I did:
>
> override_dh_gencontrol:
>         dh_gencontrol
>         perl -i -pe 's/^(Version:).*/$$1 $(VERSION)/' \
>             debian/kpropd/DEBIAN/control
>         perl -i -pe 's/^(kpropd_)[^_]+/$${1}$(VERSION)/' debian/files

Bah, that is the worst idea ever. dpkg-gencontrol has a -v<version>
option specifically for this. So do something like:

dh_gencontrol
dh_gencontrol -pkpropd -v$(VERSION)

MfG
        Goswin


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to