Package: pbuilder
Version: 0.230.4~bpo9+1
Severity: normal
Dear Maintainer,
I used pbuilder-satisfydepends-classic for parsing
the debian/control which contains
Build-Depends: live-build (<= 1:20170213), ...
I got an error message "This package is not for the current build
profiles" error when parsing live-build dependency. It seems that to fix
the issue one disregard space / slash difference when comparing at
if [ "$DEP_RESTRICTIONS" = "$INSTALLPKG" ]; then
# there is not a build profile, rather it's a version
# costraint
return 1
fi
Mattia (the current maintainer) replied on the list,
"I reckon here is the problem ↑
The code thinks that anything that contains a '<' is a build profile.
That's probably because it's considered rare for a Build-Depends to have
a << or a <= relation.
From that assumption on it probably just fails over itself."
The full log (for DEB_BUILD_PROFILES='nocheck astrace') follows.
+++ output='live-build (<= 1:20170213), sed, gawk, rsync, wget, patch,
coreutils, findutils, '
+++ output='live-build (<= 1:20170213), sed, gawk, rsync, wget, patch,
coreutils, findutils'
+++ echo 'live-build (<= 1:20170213), sed, gawk, rsync, wget, patch,
coreutils, findutils'
++ for INSTALLPKGMULTI in $(get_build_deps | split_deps)
+++ echo 'live-build/(<=/1:20170213)'
+++ tr / ' '
++ echo ' -> Considering build-dep live-build (<= 1:20170213)'
-> Considering build-dep live-build (<= 1:20170213)
++ SATISFIED=no
+++ split_alternates 'live-build/(<=/1:20170213)'
+++ echo 'live-build/(<=/1:20170213)'
+++ sed 's/ *| */\n/g'
++ for INSTALLPKG in $(split_alternates "$INSTALLPKGMULTI")
+++ get_pkg_name 'live-build/(<=/1:20170213)'
+++ echo 'live-build/(<=/1:20170213)'
+++ sed 's#^/*##; s#[[/(<].*##'
++ CURRENTREALPKGNAME=live-build
++ echo 'live-build/(<=/1:20170213)'
++ grep -q '\['
++ echo 'live-build/(<=/1:20170213)'
++ grep -q '<'
++ checkbuilddep_restrictiondeps 'live-build/(<=/1:20170213)' 'nocheck
astrace'
++ local 'INSTALLPKG=live-build/(<=/1:20170213)'
++ local 'PROFILES=nocheck astrace'
+++ echo 'echo "$INSTALLPKG" | sed -e 's/[^<]*<\(.*\)>.*/\1/' -e 'y|/|
|' -e 's/>\s\+</;/g''
+++ sed -e 's/[^<]*<\(.*\)>.*/\1/' -e 'y|/| |' -e 's/>\s\+</;/g'
++ local 'DEP_RESTRICTIONS=live-build (<= 1:20170213)'
+++ echo 'live-build/(<=/1:20170213)'
+++ cut -d ' ' -f 1
++ local 'PKG=live-build/(<=/1:20170213)'
++ local SEEN_PROFILE
++ local PROFILE
++ local NEGATED
++ local FOUND
++ '[' 'live-build (<= 1:20170213)' = 'live-build/(<=/1:20170213)' ']'
++ IFS=';'
++ read -ra RESTRLISTS
++ for restrlist in "${RESTRLISTS[@]}"
++ SEEN_PROFILE=yes
++ for restr in $restrlist
++ [[ live-build == \!* ]]
++ NEGATED=no
++ PROFILE=live-build
++ FOUND=no
++ for p in $PROFILES
++ '[' nocheck = live-build ']'
++ for p in $PROFILES
++ '[' astrace = live-build ']'
++ '[' no = no ']'
++ SEEN_PROFILE=no
++ break
++ '[' no = yes ']'
++ return 0
++ SATISFIED=yes
-- System Information:
Debian Release: 9.13
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-13-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages pbuilder depends on:
ii cdebootstrap 0.7.7+b1
ii debconf [debconf-2.0] 1.5.61
ii debootstrap 1.0.89
ii dpkg-dev 1.18.25
Versions of packages pbuilder recommends:
ii devscripts 2.17.6+deb9u2
ii eatmydata 105-5
ii fakeroot 1.21-3.1
ii iproute2 4.9.0-1+deb9u1
ii sudo 1.8.19p1-2.1+deb9u2
Versions of packages pbuilder suggests:
pn cowdancer <none>
pn gdebi-core <none>
-- debconf information excluded