Package: dh-exec
Version: 0.14
Severity: wishlist

Hi Gergely,

as discussed on irc, I am filing this bug that asks for build profile
support in dh-exec. The requested functionality is to install certain
files only for the presence or absence of particular build profiles. The
most common use case would be staged builds which can drop content.

I envision a syntax like similar to arch restrictions, but feel free to
come up with something better:

    <!stage1> some_file_pattern_that_is_skipped_in_stage1

Build profiles are documented at
https://wiki.debian.org/BuildProfileSpec. When using build profiles, the
builder is responsible for setting DEB_BUILD_PROFLES (e.g. by passing -P
to dpkg-buildpackage), so an implementation should examine the (possibly
empty/absent) value of this variable.

The actual profile restriction is given as a disjunctive normal form, so
the following restrictions are valid, meaningful and different from each
other:

    <profile1> <profile2>
    <profile1 profile2>
    <!profile1 profile2>
    <profile1 !profile2>

The wiki page has all the details, but you can also ask.
#debian-bootstrap would be the irc channel where build profiles are on
topic.

Do you think that this functionality makes sense for dh-exec to support?

Helmut


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to