Bug#603881: pbuilder: get_source_control_field: fails to parse debian/control with leading comment-block

Eric Pozharski whynot at pozharski.name
Wed Nov 17 21:02:57 UTC 2010


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

atk1.0_1.30.0-1 has a leading block of comments in debian/control file.
'pbuilder' then fails to get Build-Depends (actually any other too) from
such file.

Attached patch works with or without leading comment-block.  That
comment-block could or not have separating empty line.  It fails with
multiple separating empty lines.  Also if there's no comment-block while
empty-line is present then it fails 'get_source_control_field' too.

As of 'important'.  Look, atk1.0 is in testing.  It has been
successfully built at 04Apr2010.  Thus debian build system supports such
comment-blocks.  Please fix.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (700, 'testing'), (700, 'stable'), (1, 'testing'), (1, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=ru_UA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash
-------------- next part --------------
--- pbuilder-0.199+nmu1/pbuilder-satisfydepends-funcs	2010-11-14 17:04:19.000000000 +0200
+++ atk-problem/pbuilder-satisfydepends-funcs	2010-11-17 21:32:18.000000000 +0200
@@ -61,6 +61,12 @@
     /^$/ d
     b pgploop
 }
+: leadloop
+/^\s*#/ {
+    n
+    /^$/ d
+    b leadloop
+}
 /^$/q
 d
 : store


More information about the Pbuilder-maint mailing list