Package: dh-exec
Version: 0.16
Severity: important

Hello,

I have added a stage1 build profile to my package, and thus my
.install.in file looks like this:

#! /usr/bin/dh-exec
<!stage1 !stage2> bin/prog
include/* usr/include

But this fails when I don't pass any -P parameter to dpkg, or even when
I set DEB_BUILD_PROFILES to an empty string:

BuildProfiles stanza found, but DEB_BUILD_PROFILES unset at 
/usr/share/dh-exec/dh-exec-filter-build-profiles line 28, <> line 1.

and indeed that script does:

    if (!$ENV{'DEB_BUILD_PROFILES'}) {
        die "BuildProfiles stanza found, but DEB_BUILD_PROFILES unset";
    }

and so if there is no profile, it just aborts.  Is that really expected?
To circumvent that, I had to put

export DEB_BUILD_PROFILES ?= plain

in my debian/rules file to make sure it's not empty, that seems odd.

Samuel

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'oldoldstable'), (500, 
'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 
'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.1.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- 
Samuel
<c> hiri, le cri ici, c des marrants
<c> j'ai un rep ".uglyhackdirectorywithoutacls" ds mon home
 -+- #ens-mim en stage -+-

Reply via email to