Package: pbuilder
Version: 0.199+nmu3
Severity: normal
Tags: patch

pdebuild has some code that strips the options -b and -B from --debbuildopts
before calling dpkg-buildpackage -S, because that would conflict.  It should
do the same for the options -A and -F, because they have the same issue.
Patch attached.
diff --git i/pdebuild w/pdebuild
index 28dff21..04f7e4c 100644
--- i/pdebuild
+++ w/pdebuild
@@ -58,7 +58,7 @@ else
     if ! dpkg-checkbuilddeps -B ; then
 	log "W: Unmet build-dependency in source"
     fi
-    echo "dpkg-buildpackage -S -us -uc -r${BUILDSOURCEROOTCMD} $DEBBUILDOPTS" | perl -pe 's/(^|\s)-[bB](\s|$)/$1$2/g' | /bin/bash
+    echo "dpkg-buildpackage -S -us -uc -r${BUILDSOURCEROOTCMD} $DEBBUILDOPTS" | perl -pe 's/(^|\s)-[AbBF](\s|$)/$1$2/g' | /bin/bash
     ${PBUILDERROOTCMD} ${PDEBUILD_PBUILDER} --build ${EXTRA_CONFIGFILE[@]/#/--configfile } --buildresult "${BUILDRESULT}" --debbuildopts "" --debbuildopts "${DEBBUILDOPTS}" "$@"  ../"${PKG_SOURCENAME}_${PKG_VERSION}".dsc
 fi
 

Reply via email to