Dear Mentors,
If I wish to create two binary packages with different
configurations from a single source package (e.g. to support
different ISA levels), what's the best way to implement this?
If I have package-name-feature-1, package-name-feature-2 and package-name-data in d/control, how do I implement this in d/rules?
What is the syntax?
Regards,
David James
If I wish to create two binary packages with different
configurations from a single source package (e.g. to support
different ISA levels), what's the best way to implement this?
I'm not sure I understand, you want the same binary that uses two
different config files or you want to build from source twice with
different (mutually exclusive) configuration switch?
If it's the latter you need to build, move the bin, clean and build
again;
These examples were exactly what I needed, thank you both. One more
thing: When running a package builder such as dpkg, does dh run once
for each item in DEB_BUILD_PROFILES?
Hi,
I'm not sure I understand, you want the same binary that uses two
different config files or you want to build from source twice with
different (mutually exclusive) configuration switch?
If it's the latter you need to build, move the bin, clean and build
again; see mplayer rules and install files for an example
https://salsa.debian.org/multimedia-team/mplayer/-/blob/master/debian/rules?ref_type=heads
(around line 95)
Regards,
Lorenzo
Or build in two dirs, like https://tracker.debian.org/media/packages/c/curl/rules-8.8.0-1
--
WBR, wRAR
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (3 / 13) |
Uptime: | 148:35:56 |
Calls: | 10,383 |
Calls today: | 8 |
Files: | 14,054 |
D/L today: |
2 files (1,861K bytes) |
Messages: | 6,417,747 |