Bug#620730: pbuilder: Doesn't work right with pbuilder-satisfydepends-classic

Daniel Schepler dschepler at gmail.com
Sun Apr 3 17:19:21 UTC 2011


Package: pbuilder
Version: 0.199+nmu2
Severity: important
Tags: patch

For example, from my pbuilder build log for qt4-x11 on amd64:

...
 -> Considering build-depfirebird2.1-dev [amd64 armel i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 sparc]
   -> This package is not for this architecture
...
 dpkg-source --before-build qt4-x11-4.7.2
dpkg-buildpackage: host architecture amd64
dpkg-checkbuilddeps: Unmet build dependencies: firebird2.1-dev
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)
E: Failed autobuilding of package

With the patch below it works again:

diff -urN /var/cache/pbuilder/build/3751/usr/lib/pbuilder//pbuilder-satisfydepends-funcs /usr/lib/pbuilder//pbuilder-satisfydepends-funcs
--- /var/cache/pbuilder/build/3751/usr/lib/pbuilder//pbuilder-satisfydepends-funcs      2011-02-19 11:04:26.000000000 -0800
+++ /usr/lib/pbuilder//pbuilder-satisfydepends-funcs    2011-04-03 10:10:28.000000000 -0700
@@ -122,7 +122,7 @@
     local INSTALLPKG="$1"
     local ARCH="$2"
     # architectures listed between [ and ] for this dep
-    local DEP_ARCHES="$(echo "$INSTALLPKG" | sed 's/.*\[\(.*\)\].*/\1/')"
+    local DEP_ARCHES="$(echo "$INSTALLPKG" | sed 's/.*\[\(.*\)\].*/\1/' | sed -e 's:/: :g')"
     local PKG="$(echo "$INSTALLPKG" | cut -d ' ' -f 1)"
     local USE_IT
     local IGNORE_IT
-- 
Daniel Schepler





More information about the Pbuilder-maint mailing list