Bug#741227: pbuilder fails with unmet build dependencies
Larry Lee
justforpingan at gmail.com
Mon Mar 10 08:27:45 UTC 2014
Package: pbuilder
Version: 0.213ubuntu1
I rebuild packages with pbuilder,things work fine in most cases.But when
there is an empty line before "Source" field in control file, getting
build-depends list from control will return null.for example:libnotify4.
"
Package: pbuilder-satisfydepends-dummy
Version: 0.invalid.0
Architecture: amd64
Maintainer: Debian Pbuilder Team <pbuilder-maint at lists.alioth.debian.org>
Description: Dummy package to satisfy dependencies with aptitude - created
by pbuilder
This package was created automatically by pbuilder to satisfy the
build-dependencies of the package being currently built.
dpkg-deb: building package `pbuilder-satisfydepends-dummy' in
`/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
"
As we can see ,there is no Build-Depends in pbuilder-satisfydepends-dummy's
control file.
I read the code about getting dependencies from control, see sed stop
reading input lines from control file when matching empty line"/^$/q",then
I add one line to delete the empty line,if any, before Source field. After
this, pbuilder goes well.
"
diff -uNrp pbuilder.old/usr/lib/pbuilder/pbuilder-satisfydepends-funcs
pbuilder/usr/lib/pbuilder/pbuilder-satisfydepends-funcs
--- pbuilder.old/usr/lib/pbuilder/pbuilder-satisfydepends-funcs 2014-02-25
16:57:24.232902148 +0800
+++ pbuilder/usr/lib/pbuilder/pbuilder-satisfydepends-funcs 2014-03-07
13:11:58.636577252 +0800
@@ -49,7 +49,10 @@ checkbuilddep_versiondeps() {
# cannot satisfy depends
return 1;
}
-
+# fix bug : delele empty line before Source.
+# $DEBIAN_CONTROL can either be source.dsc or control file
+# if there is an empty line before Source in control,return null--error
get_source_control_field() {
local field="$1"
@@ -61,6 +64,7 @@ t store
/^$/ d
b pgploop
}
+/^$/{N;/Source/s/\nSource/Source/}
/^$/q
d
: store
"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20140310/a3e71aa9/attachment.html>
More information about the Pbuilder-maint
mailing list