Re: Multiples binaries with different versions from one source file?
Russ Allbery <rra@debian.org> writes:
> Eric Lavarde <deb@zorglub.s.bawue.de> 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
Reply to: