• Creating packages with different configurations

    From David James@21:1/5 to All on Sat Jun 8 18:00:01 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lorenzo@21:1/5 to David James on Mon Jun 10 13:00:01 2024
    Hi,

    On Sat, 08 Jun 2024 15:54:16 +0000
    David James <davidjamescastor215@proton.me> wrote:

    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?

    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


    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


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrey Rakhmatullin@21:1/5 to Lorenzo on Mon Jun 10 13:10:02 2024
    On Mon, Jun 10, 2024 at 12:58:01PM +0200, Lorenzo wrote:
    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;

    Or build in two dirs, like https://tracker.debian.org/media/packages/c/curl/rules-8.8.0-1

    --
    WBR, wRAR

    -----BEGIN PGP SIGNATURE-----

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmZm3m8tFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh T2gP/Ro9HT5WFDjGXLgJl8vLwqogLNQ0EFMPxRJDrK7PbgpPAGf93ne74jv4QDVr ythrT6ZETGkAECJO0+dUgpLlp4pUFyh+jNAKf6LII3y29R8XaoEp6eswJ0ybzywM GeJXHYAj/FS1DkQgSmIoHkRUXRRmEhepjuj4orcF44PubH0qsQgJioY406iGn7sb 9N11GrK1Eah4QQ4AZGIzltJlW2wCkL5jJC+kUxyiB8E58GbB3lvM/Wx/G8DopeC3 jNBBR6fCD0DC3a5dwoFbphRjUekUInK7PvSu/i4+eLTwvS+VVcthKdMNM37N9LCs L0eKDqZDl6gdPIQSwh0y6ZM40WdXQNPLR0Ud8zktna0f0AhUkWYwa+ULV7YxBDuQ yGWp21ymkbCHyDegikv2z3Alpotvy2ew8RTML3mrPBViRfGWL58v0vQ8KEYUWELm DhxmkskhXOKTU5Q+B9lTz8eMva6VJvgN+XtdQ1c0OZMO+XHMx4TNY8Q1tejx286E ZRzauvideh0psMrfJFTe/xNjXFnpL0k3idEAFaDbG3/PM2puYXmVYrQv8AiluXP7 LWYCh5yEbf8tJgW/i2D2w90biO7OCVppLlYWkTcGjNXjGnHfiwovcn8frv0gCu/c v6xKcPYaX4tFe8kaFVDqrCO5NQmbvVzwy8Om1teQ9MNb6u4Y
    =B5Z0
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrey Rakhmatullin@21:1/5 to David James on Tue Jun 11 21:50:01 2024
    On Tue, Jun 11, 2024 at 07:09:15PM +0000, David James wrote:
    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?

    Are you really asking about DEB_BUILD_PROFILES? Because I don't think this makes sense, DEB_BUILD_PROFILES is basically a set of flags.

    --
    WBR, wRAR

    -----BEGIN PGP SIGNATURE-----

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmZoqeAtFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh aQUP/jNZqkUXgtJWmfIQVquFLFgrgGejf7QynNTzEwdH0H9vPmbpoLW37MEHzCAA UXyFmCkXEEkBTWcihuA5CozYDuIqloMN4nCI1rYdaYL0w2Q3fmwDotV4AhU0f7Jr Rf9S11OClrEz67EwbcLr2VL5Dqr+BoMnSuPzw0grH2X5XIa6wtYs5sZCEsAQ7XhD kxhmwACcfuLAD+nFIHe26Qfsf1GhAAki1657nf2klY3eI8LNT4Tgt6H8AgzcrLnX 6Ss5nF5BbCq7ku7Zc0eyYResnuUAUAy12il+1DelceCYbW1feSNHLZExR0SfIlOE Ys4Oz1xqT+qRqSkY1GeHjRfV55CijYdeya+VDuqXp2GjzzrR6EgPeAjImNsQ8zJ6 /urjeNAOFyl6fk2EIJPBOkmlvhfaaSypVKgEcHi4Im24YDiM+KaVkj1XGqO/qA/L 021URBlyfQm5KrgFahvDU4tcKRnfbzahIQkpDUcutfVxSHQDbAbL733LNG/zcTzY /V9R8anZe25IoQHfNyFGS2Blj4fHJCHqtC9o9mZ8+3xY8Em0oR3ONBE8C6lWWgxw JoOq6X9F786zVvL18Xu1TwsCmQRAxs2u7LD7iyFm369mZLsbhVBi9EsElOiwSErr VUfr0uoPQYoXptGII2v9Jc7MXe4FiDTvZx5TY9XmEC0fU6kl
    =AKd1
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David James@21:1/5 to Lorenzo on Tue Jun 11 21:20:02 2024
    On Monday, June 10th, 2024 at 11:58 AM, Lorenzo <plorenzo@disroot.org> wrote:

    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

    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?

    Regards,

    David James

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)