Debian Bug report logs - #920227
invalid file format generated for dependencies

version graph

Package: sbuild; Maintainer for sbuild is sbuild maintainers <sbuild@packages.debian.org>; Source for sbuild is src:sbuild (PTS, buildd, popcon).

Reported by: Antoine Beaupre <anarcat@debian.org>

Date: Tue, 22 Jan 2019 22:03:02 UTC

Severity: grave

Tags: fixed-upstream, patch, upstream

Found in version sbuild/0.78.0-2

Fixed in version sbuild/0.78.1-1

Done: Johannes 'josch' Schauer <josch@debian.org>

Bug is archived. No further changes may be made.

Forwarded to https://salsa.debian.org/debian/sbuild/merge_requests/5

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, sbuild maintainers <sbuild@packages.debian.org>:
Bug#920227; Package sbuild. (Tue, 22 Jan 2019 22:03:04 GMT) (full text, mbox, link).


Acknowledgement sent to Antoine Beaupre <anarcat@debian.org>:
New Bug report received and forwarded. Copy sent to sbuild maintainers <sbuild@packages.debian.org>. (Tue, 22 Jan 2019 22:03:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Antoine Beaupre <anarcat@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: invalid file format generated for dependencies
Date: Tue, 22 Jan 2019 17:00:50 -0500
[Message part 1 (text/plain, inline)]
Package: sbuild
Version: 0.78.0-2
Severity: grave
Tags: upstream

Since the 0.78 upgrade, sbuild cannot build packages in jessie (and
maybe other suites). The build during the setup phase, while trying to
install the build-dependencies, with this error message:

W: Failed to fetch gzip:/var/lib/apt/lists/partial/_build_systemd-asEYMr_resolver-48eHqy_apt%5farchive_._Sources.gz Invalid file format

It looks like the Sources.gz generated for the build-dependencies
resolver is incorrectly formatted, which freaks out apt in the chroot.

This does not happen with sbuild 0.77.1-2. This seems to be a
regression introduced in this commit:

https://salsa.debian.org/debian/sbuild/commit/18f423619c176471d2adaafb7742cb204951a10c

... which was implemented to close bug #909847. In there, sbuild
reimplements dpkg-scanpackages and dpkg-scansources internally, but it
seems to do so incorrectly.

Attached are the build logs and the faulty Sources.gz files.

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), LANGUAGE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages sbuild depends on:
ii  adduser         3.118
ii  libsbuild-perl  0.78.0-2
ii  perl            5.28.1-3

Versions of packages sbuild recommends:
ii  autopkgtest  5.8
ii  debootstrap  1.0.114
ii  schroot      1.6.10-6+b1

Versions of packages sbuild suggests:
ii  deborphan  1.7.31
ii  e2fsprogs  1.44.5-1
ii  kmod       25-2
ii  wget       1.20.1-1

-- debconf-show failed
[sources.gz (application/gzip, attachment)]
[systemd_215-17+deb8u9_amd64-2019-01-22T21:39:27Z.build (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, sbuild maintainers <sbuild@packages.debian.org>:
Bug#920227; Package sbuild. (Tue, 22 Jan 2019 22:27:03 GMT) (full text, mbox, link).


Acknowledgement sent to Antoine Beaupré <anarcat@debian.org>:
Extra info received and forwarded to list. Copy sent to sbuild maintainers <sbuild@packages.debian.org>. (Tue, 22 Jan 2019 22:27:03 GMT) (full text, mbox, link).


Message #10 received at 920227@bugs.debian.org (full text, mbox, reply):

From: Antoine Beaupré <anarcat@debian.org>
To: 920227@bugs.debian.org
Subject: Re: Bug#920227: possible fix
Date: Tue, 22 Jan 2019 17:23:00 -0500
[Message part 1 (text/plain, inline)]
Control: tags -1 +patch
Control: notfound -1 0.77.1-2
Control: found -1 0.78.0-2
Control: forwarded -1 https://salsa.debian.org/debian/sbuild/merge_requests/5

I have verified this is a regression from 0.77.1. I can also confirm
there is an easy fix, attached and forwarded.

Thanks to James Clark for the patch, described on #debian-devel. :)

Cheers,

A.
-- 
I've got to design so you can put it together out of garbage cans. In
part because that's what I started from, but mostly because I don’t
trust the industrial structure—they might decide to suppress us
weirdos and try to deny us the parts we need.
                       - Lee Felsenstein
[0001-fix-syntax-of-generated-Sources.gz-files-Closes-9202.patch (text/x-diff, inline)]
From e3447e992c33f6162441aa757e2ab273afae2497 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= <anarcat@debian.org>
Date: Tue, 22 Jan 2019 17:16:05 -0500
Subject: [PATCH] fix syntax of generated Sources.gz files (Closes: #920227)

The rewrite of dpkg-scan* performed to fix #909847 introduced a
problem in 18f423619c176471d2adaafb7742cb204951a10c: Sources.gz
entries are not correctly separated by a newline. Furthermore, they
have Source: entries instead of Package:

This confuses older version of APT (previous to jessie) which have
extra sanity checks on the contents of those files, which breaks
building in older chroots.
---
 lib/Sbuild/ResolverBase.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/Sbuild/ResolverBase.pm b/lib/Sbuild/ResolverBase.pm
index 6399c350..71dda196 100644
--- a/lib/Sbuild/ResolverBase.pm
+++ b/lib/Sbuild/ResolverBase.pm
@@ -1412,6 +1412,7 @@ sub hash_file($$)
 	open my $in, '<', $entry or die "cannot open $entry";
 	while (my $line = <$in>) {
 	    next if $line eq "\n";
+	    $line =~ s/^Source:/Package:/;
 	    print $out $line;
 	    if ($line eq "Checksums-Sha1:\n") {
 		print $out " $sha1 $size $entry\n";
@@ -1439,6 +1440,7 @@ sub hash_file($$)
 	}
 	print $out "Directory: .";
 	print $out "\n";
+	print $out "\n";
     }
     close $out;
     closedir($dh);
-- 
2.20.1


Added tag(s) patch. Request was from Antoine Beaupré <anarcat@debian.org> to 920227-submit@bugs.debian.org. (Tue, 22 Jan 2019 22:27:03 GMT) (full text, mbox, link).


Set Bug forwarded-to-address to 'https://salsa.debian.org/debian/sbuild/merge_requests/5'. Request was from Antoine Beaupré <anarcat@debian.org> to 920227-submit@bugs.debian.org. (Tue, 22 Jan 2019 22:27:04 GMT) (full text, mbox, link).


Message sent on to Antoine Beaupre <anarcat@debian.org>:
Bug#920227. (Tue, 29 Jan 2019 19:36:05 GMT) (full text, mbox, link).


Message #17 received at 920227-submitter@bugs.debian.org (full text, mbox, reply):

From: Johannes 'josch' Schauer <josch@debian.org>
To: 920227-submitter@bugs.debian.org
Subject: Bug #920227 in sbuild marked as pending
Date: Tue, 29 Jan 2019 19:34:12 +0000
Control: tag -1 pending

Hello,

Bug #920227 in sbuild reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian/sbuild/commit/97030b80674f723d227f46510dab7d5ef36d2735

------------------------------------------------------------------------
fix syntax of generated Sources.gz files (Closes: #920227)

The rewrite of dpkg-scan* performed to fix #909847 introduced a
problem in 18f423619c176471d2adaafb7742cb204951a10c: Sources.gz
entries are not correctly separated by a newline. Furthermore, they
have Source: entries instead of Package:

This confuses older version of APT (previous to jessie) which have
extra sanity checks on the contents of those files, which breaks
building in older chroots.
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/920227



Added tag(s) pending. Request was from Johannes 'josch' Schauer <josch@debian.org> to 920227-submitter@bugs.debian.org. (Tue, 29 Jan 2019 19:36:05 GMT) (full text, mbox, link).


Added tag(s) fixed-upstream. Request was from debian-bts-link@lists.debian.org to control@bugs.debian.org. (Fri, 01 Feb 2019 01:30:40 GMT) (full text, mbox, link).


Reply sent to Johannes 'josch' Schauer <josch@debian.org>:
You have taken responsibility. (Sat, 09 Feb 2019 06:57:03 GMT) (full text, mbox, link).


Notification sent to Antoine Beaupre <anarcat@debian.org>:
Bug acknowledged by developer. (Sat, 09 Feb 2019 06:57:03 GMT) (full text, mbox, link).


Message #26 received at 920227-close@bugs.debian.org (full text, mbox, reply):

From: Johannes 'josch' Schauer <josch@debian.org>
To: 920227-close@bugs.debian.org
Subject: Bug#920227: fixed in sbuild 0.78.1-1
Date: Sat, 09 Feb 2019 06:52:11 +0000
Source: sbuild
Source-Version: 0.78.1-1

We believe that the bug you reported is fixed in the latest version of
sbuild, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 920227@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Johannes 'josch' Schauer <josch@debian.org> (supplier of updated sbuild package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 09 Feb 2019 07:25:07 +0100
Source: sbuild
Architecture: source
Version: 0.78.1-1
Distribution: unstable
Urgency: medium
Maintainer: sbuild maintainers <sbuild@packages.debian.org>
Changed-By: Johannes 'josch' Schauer <josch@debian.org>
Closes: 920227
Changes:
 sbuild (0.78.1-1) unstable; urgency=medium
 .
   * New upstream release.
   * fix syntax of generated Sources.gz files (Closes: #920227)
Checksums-Sha1:
 06a3bb1bb623d5f7d621445d43c2d855866df970 2455 sbuild_0.78.1-1.dsc
 6b643cb6d7f35e81a8a0acff101c8d9886ad5f11 200608 sbuild_0.78.1.orig.tar.xz
 be03161b3558ef1589d4ea95ff5947be643b9259 51004 sbuild_0.78.1-1.debian.tar.xz
 a4046920a275d329efd77e990e9476eea87a8bd7 6344 sbuild_0.78.1-1_amd64.buildinfo
Checksums-Sha256:
 674a4a704f0af4abe62c91faffac6fe5bb4f3e04eb14cd9c650527457273bc6b 2455 sbuild_0.78.1-1.dsc
 61236ea1b73049cffa339ec20740190146d21622b20905d1a168dcd9899cf833 200608 sbuild_0.78.1.orig.tar.xz
 28687d21d02569cd4fd5fe0293e855a8b430f7c560d35bbdc3891f8c3643ac1a 51004 sbuild_0.78.1-1.debian.tar.xz
 baf5e2d2d481eecdcb92584aa4f858999401aaf2f10c1767bf27d579e3163bea 6344 sbuild_0.78.1-1_amd64.buildinfo
Files:
 e48cd3310a8570147ac75046775867f2 2455 devel optional sbuild_0.78.1-1.dsc
 6d31225bf1020af7cfdb8bf15ad64764 200608 devel optional sbuild_0.78.1.orig.tar.xz
 0050d783859999025ba37acb8ece917d 51004 devel optional sbuild_0.78.1-1.debian.tar.xz
 a5eed274c210da7b42b1ea9eed58ea66 6344 devel optional sbuild_0.78.1-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAlxecucACgkQ8sulx4+9
g+F1XxAAoUsSyvNN6+8z4TndMcLAtfSIhkXlai0MBYa17r9M22iFKlHCTTOnX8if
XtyGLYo0qnRUYEBVTfjJTfauNhH1EFutsUrf9ZBHABJuy8Zf/zQ38nd3CMy4/9uP
PG0bcko1QkogpwkkYPdpN448a+A25+zlwUlqGrLzhmoEpqjZqBIhb6MDE7lUcmiA
7ADHoPK4597iNcke5+YBzcYhEu3MVIolE0jBXRjt15obL4LAk3b1NHCvU4K+fmCu
pO5c9jT84CWky36gDeNg6QElE9CvyJ05v/n+lEBo/lAO5NCRuheAiuPalAWnuBiV
Hk/vU6pPn297jGAzlREpHZa9FlXFwSIQen2GMrv6BXrv+mexx3AXBD1pFOlIrfEC
hn+cWt2buBTjbwwbjOiwmeCu7C+aae1VIQZ//TQrPNxmudEsHd/+aoDwU0sIPsg3
HRq/Jrj27SrqVMGmVeDDUfIeFl9ipzb7WeE/6H0uWgHO4j9J8wBpXDA19JhU/P0R
jn5HNir+2VHZ5XmQeMEd9v3S0wo+fuayic4A5N7phWHg2HPj2LgLe8fL+AXKhZSp
pjR/hpgq9ILAyaW06YDiUp+fzQ1yJZThwVdqPdhfdzo3XCwPD4VBD8YPz2JwsV41
256IAM4nHlmV2b8QaVOY7Iz5EyQ1YnNAfubbnty4YIJk5I5nSyE=
=HhRu
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 11 Mar 2019 07:29:47 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Nov 22 00:04:36 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.