Bug#719845: [PATCH] Deterministic file order for control and data archives

2014-10-06 Thread Jérémy Bobbio
Jérémy Bobbio:
 Here are four patches based on the current master (1e059955) that will
 write files in deterministic order in the control and data archives.
 File names are sorted by forking `sort` before being piped to `tar`.

Attached are the patch based on current master (36eda4c1bc).

-- 
Lunar.''`. 
lu...@debian.org: :Ⓐ  :  # apt-get install anarchism
`. `'` 
  `-   
From 05791de26a9cc119aa4742bbb61c58d19348b176 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= lu...@debian.org
Date: Tue, 27 Aug 2013 18:10:15 +0200
Subject: [PATCH 1/4] Ensure deterministic file order in data.tar.* files

Address: #719845
---
 dpkg-deb/build.c |   42 ++
 lib/dpkg/dpkg.h  |1 +
 2 files changed, 31 insertions(+), 12 deletions(-)

diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c
index 442298d..eccc27f 100644
--- a/dpkg-deb/build.c
+++ b/dpkg-deb/build.c
@@ -168,19 +168,36 @@ file_info_list_free(struct file_info *fi)
 static void
 file_treewalk_feed(const char *dir, int fd_out)
 {
-  int pipefd[2];
-  pid_t pid;
+  int sort_pipefd[2], find_pipefd[2];
+  pid_t sort_pid, find_pid;
   struct file_info *fi;
   struct file_info *symlist = NULL;
   struct file_info *symlist_end = NULL;
 
-  m_pipe(pipefd);
+  m_pipe(find_pipefd);
+  m_pipe(sort_pipefd);
+
+  sort_pid = subproc_fork();
+  if (sort_pid == 0) {
+m_dup2(find_pipefd[0], 0);
+close(find_pipefd[0]);
+close(find_pipefd[1]);
+m_dup2(sort_pipefd[1], 1);
+close(sort_pipefd[0]);
+close(sort_pipefd[1]);
+if (setenv(LC_ALL, C, 1 /* overwrite */))
+ohshite(_(unable to setenv));
+execlp(SORT, sort, --zero-terminated, NULL);
+ohshite(_(unable to execute %s (%s)), sort, SORT);
+  }
+  close(find_pipefd[0]);
+  close(sort_pipefd[1]);
 
-  pid = subproc_fork();
-  if (pid == 0) {
-m_dup2(pipefd[1], 1);
-close(pipefd[0]);
-close(pipefd[1]);
+  find_pid = subproc_fork();
+  if (find_pid == 0) {
+m_dup2(find_pipefd[1], 1);
+close(find_pipefd[0]);
+close(find_pipefd[1]);
 
 if (chdir(dir))
   ohshite(_(failed to chdir to `%.255s'), dir);
@@ -189,11 +206,11 @@ file_treewalk_feed(const char *dir, int fd_out)
-print0, NULL);
 ohshite(_(unable to execute %s (%s)), find, FIND);
   }
-  close(pipefd[1]);
+  close(find_pipefd[1]);
 
   /* We need to reorder the files so we can make sure that symlinks
* will not appear before their target. */
-  while ((fi = file_info_get(dir, pipefd[0])) != NULL) {
+  while ((fi = file_info_get(dir, sort_pipefd[0])) != NULL) {
 if (S_ISLNK(fi-st.st_mode)) {
   file_info_list_append(symlist, symlist_end, fi);
 } else {
@@ -204,8 +221,9 @@ file_treewalk_feed(const char *dir, int fd_out)
 }
   }
 
-  close(pipefd[0]);
-  subproc_reap(pid, find, 0);
+  close(sort_pipefd[0]);
+  subproc_reap(find_pid, find, 0);
+  subproc_reap(sort_pid, sort, 0);
 
   for (fi = symlist; fi; fi = fi-next)
 if (fd_write(fd_out, fi-fn, strlen(fi-fn) + 1)  0)
diff --git a/lib/dpkg/dpkg.h b/lib/dpkg/dpkg.h
index 1dfef96..8bbad67 100644
--- a/lib/dpkg/dpkg.h
+++ b/lib/dpkg/dpkg.h
@@ -112,6 +112,7 @@ DPKG_BEGIN_DECLS
 #define CAT		cat
 #define FIND		find
 #define DIFF		diff
+#define SORT		sort
 
 #define FIND_EXPRSTARTCHARS -(),!
 
-- 
1.7.10.4

From e27bef15519d4641cc37553660d39eb830b76daa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= lu...@debian.org
Date: Fri, 17 Jan 2014 12:56:13 +0100
Subject: [PATCH 2/4] Extract the creation of the control tarball to a
 dedicated function

---
 dpkg-deb/build.c |   73 --
 1 file changed, 43 insertions(+), 30 deletions(-)

diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c
index eccc27f..3059954 100644
--- a/dpkg-deb/build.c
+++ b/dpkg-deb/build.c
@@ -232,6 +232,40 @@ file_treewalk_feed(const char *dir, int fd_out)
   file_info_list_free(symlist);
 }
 
+static void
+create_control_tar(const char *dir, struct compress_params *control_compress_params,
+   int gzfd)
+{
+  int p1[2];
+  pid_t c1, c2;
+
+  /* Fork a tar to package the control-section of the package. */
+  unsetenv(TAR_OPTIONS);
+  m_pipe(p1);
+  c1 = subproc_fork();
+  if (!c1) {
+m_dup2(p1[1],1); close(p1[0]); close(p1[1]);
+if (chdir(dir))
+  ohshite(_(failed to chdir to `%.255s'), dir);
+if (chdir(BUILDCONTROLDIR))
+  ohshite(_(failed to chdir to `%.255s'), .../DEBIAN);
+execlp(TAR, tar, -cf, -, --format=gnu, ., NULL);
+ohshite(_(unable to execute %s (%s)), tar -cf, TAR);
+  }
+  close(p1[1]);
+
+  /* And run the compressor on our control archive. */
+
+  c2 = subproc_fork();
+  if (!c2) {
+compress_filter(control_compress_params, p1[0], gzfd, _(compressing control member));
+exit(0);
+  }
+  close(p1[0]);
+  subproc_reap(c2, gzip -9c, 0);
+  subproc_reap(c1, tar 

Bug#759999: dpkg: please set reproducible timestamps in .deb ar file headers

2014-10-06 Thread Jérémy Bobbio
Jérémy Bobbio:
 The first patch will modify `dpkg-deb` to use the same timestamp for
 every member of the ar archive.
 
 The second patch will:
 
  1. Make `dpkg-deb` try to look for a timestamp to use in the
 DEB_BUILD_TIMESTAMP environment variable in epoch format.
 If not set or not parseable, it will default to use the current
 time.
  2. Change `dpkg-buildpackage` to parse `debian/changelog` and preset
 DEB_BUILD_TIMESTAMP to the value of its latest entry. Unless
 DEB_BUILD_TIMESTAMP was already set in order to allow arbitrary
 dates to be reproduced.

The patches rebased on current master are attached (36eda4c1bc).

-- 
Lunar.''`. 
lu...@debian.org: :Ⓐ  :  # apt-get install anarchism
`. `'` 
  `-   
From 075bc4fd3d83604f0b38819179f559165bc75779 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= lu...@debian.org
Date: Tue, 27 Aug 2013 22:38:31 +0200
Subject: [PATCH 1/2] Use a single timestamp for ar headers when building a
 .deb

In order to make build reproducible in the future, we now use a single
timestamp in all ar headers when creating a .deb.

Previously, each ar header would have the current time of its creation.
This level of precision is not really needed and the time of the beginning of
the build is good enough.

Address: #75
---
 dpkg-deb/build.c   |   10 +++---
 dpkg-split/split.c |4 ++--
 lib/dpkg/ar.c  |   13 +++--
 lib/dpkg/ar.h  |4 ++--
 4 files changed, 18 insertions(+), 13 deletions(-)

diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c
index e48b4bf..6406493 100644
--- a/dpkg-deb/build.c
+++ b/dpkg-deb/build.c
@@ -38,6 +38,7 @@
 #include stdint.h
 #include stdlib.h
 #include stdio.h
+#include time.h
 
 #include dpkg/i18n.h
 #include dpkg/dpkg.h
@@ -500,6 +501,7 @@ do_build(const char *const *argv)
   int arfd;
   int p1[2], p2[2], gzfd;
   pid_t c1, c2;
+  time_t build_timestamp;
 
   /* Decode our arguments. */
   dir = *argv++;
@@ -546,6 +548,8 @@ do_build(const char *const *argv)
   }
   m_output(stdout, _(standard output));
 
+  build_timestamp = time(NULL);
+
   /* Now that we have verified everything its time to actually
* build something. Let's start by making the ar-wrapper. */
   arfd = creat(debar, 0644);
@@ -600,8 +604,8 @@ do_build(const char *const *argv)
 compressor_get_extension(control_compress_params.type));
 
 dpkg_ar_put_magic(debar, arfd);
-dpkg_ar_member_put_mem(debar, arfd, DEBMAGIC, deb_magic, strlen(deb_magic));
-dpkg_ar_member_put_file(debar, arfd, adminmember, gzfd, -1);
+dpkg_ar_member_put_mem(debar, arfd, DEBMAGIC, deb_magic, build_timestamp, strlen(deb_magic));
+dpkg_ar_member_put_file(debar, arfd, adminmember, gzfd, build_timestamp, -1);
   } else {
 internerr(unknown deb format version %d.%d, deb_format.major, deb_format.minor);
   }
@@ -671,7 +675,7 @@ do_build(const char *const *argv)
 if (lseek(gzfd, 0, SEEK_SET))
   ohshite(_(failed to rewind temporary file (%s)), _(data member));
 
-dpkg_ar_member_put_file(debar, arfd, datamember, gzfd, -1);
+dpkg_ar_member_put_file(debar, arfd, datamember, gzfd, build_timestamp, -1);
 
 close(gzfd);
   }
diff --git a/dpkg-split/split.c b/dpkg-split/split.c
index fe4b60e..68109dc 100644
--- a/dpkg-split/split.c
+++ b/dpkg-split/split.c
@@ -216,13 +216,13 @@ mksplit(const char *file_src, const char *prefix, off_t maxpartsize,
 		  (intmax_t)st.st_size, (intmax_t)partsize,
 		  curpart, nparts, arch);
 		dpkg_ar_member_put_mem(file_dst.buf, fd_dst, PARTMAGIC,
-		   partmagic.buf, partmagic.used);
+		   partmagic.buf, time(NULL), partmagic.used);
 		varbuf_reset(partmagic);
 
 		/* Write the data part. */
 		varbuf_printf(partname, data.%d, curpart);
 		dpkg_ar_member_put_file(file_dst.buf, fd_dst, partname.buf,
-		fd_src, cur_partsize);
+		fd_src, time(NULL), cur_partsize);
 		varbuf_reset(partname);
 
 		close(fd_dst);
diff --git a/lib/dpkg/ar.c b/lib/dpkg/ar.c
index cf540a0..8613310 100644
--- a/lib/dpkg/ar.c
+++ b/lib/dpkg/ar.c
@@ -36,11 +36,12 @@
 #include dpkg/ar.h
 
 static void
-dpkg_ar_member_init(struct dpkg_ar_member *member, const char *name, off_t size)
+dpkg_ar_member_init(struct dpkg_ar_member *member, const char *name,
+time_t timestamp, off_t size)
 {
 	member-name = name;
 	member-size = size;
-	member-time = time(NULL);
+	member-time = timestamp;
 	member-mode = 0100644;
 	member-uid = 0;
 	member-gid = 0;
@@ -124,11 +125,11 @@ dpkg_ar_member_put_header(const char *ar_name, int ar_fd,
 
 void
 dpkg_ar_member_put_mem(const char *ar_name, int ar_fd,
-   const char *name, const void *data, size_t size)
+   const char *name, const void *data, time_t timestamp, size_t size)
 {
 	

Bug#764206: dpkg-source: Broken source unpacking when applying patches

2014-10-06 Thread Guillem Jover
Package: dpkg-dev
Version: 1.17.14
Severity: serious

Hi!

There's a regression in dpkg-source when unpacking source packages and
applying patches. This was reported by Helmut Grohne.

I'm preparing a quick fix, and will be doing the upload right away.

Thanks,
Guillem


-- 
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Processed: Bug#764206 marked as pending

2014-10-06 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 tag 764206 pending
Bug #764206 [dpkg-dev] dpkg-source: Broken source unpacking when applying 
patches
Added tag(s) pending.
 thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
764206: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764206
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Processed: Bug#764171 marked as pending

2014-10-06 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 tag 764171 pending
Bug #764171 [src:dpkg] dpkg: FTBFS on non-Linux due to symlink mode mismatch on 
test suite
Added tag(s) pending.
 thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
764171: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764171
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#764206: marked as done (dpkg-source: Broken source unpacking when applying patches)

2014-10-06 Thread Debian Bug Tracking System
Your message dated Mon, 06 Oct 2014 12:04:26 +
with message-id e1xb71e-0002t3...@franck.debian.org
and subject line Bug#764206: fixed in dpkg 1.17.16
has caused the Debian Bug report #764206,
regarding dpkg-source: Broken source unpacking when applying patches
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
764206: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764206
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
---BeginMessage---
Package: dpkg-dev
Version: 1.17.14
Severity: serious

Hi!

There's a regression in dpkg-source when unpacking source packages and
applying patches. This was reported by Helmut Grohne.

I'm preparing a quick fix, and will be doing the upload right away.

Thanks,
Guillem
---End Message---
---BeginMessage---
Source: dpkg
Source-Version: 1.17.16

We believe that the bug you reported is fixed in the latest version of
dpkg, 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 764...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guillem Jover guil...@debian.org (supplier of updated dpkg 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 ftpmas...@ftp-master.debian.org)


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Format: 1.8
Date: Mon, 06 Oct 2014 13:29:17 +0200
Source: dpkg
Binary: libdpkg-dev dpkg dpkg-dev libdpkg-perl dselect
Architecture: source all
Version: 1.17.16
Distribution: unstable
Urgency: low
Maintainer: Dpkg Developers debian-d...@lists.debian.org
Changed-By: Guillem Jover guil...@debian.org
Description:
 dpkg   - Debian package management system
 dpkg-dev   - Debian package development tools
 dselect- Debian package management front-end
 libdpkg-dev - Debian package management static library
 libdpkg-perl - Dpkg perl modules
Closes: 764171 764206
Changes:
 dpkg (1.17.16) unstable; urgency=low
 .
   * Set the copyright holder in the po4a calls for man pages.
   * Switch remaining topic to named variable in Dpkg::Source::Patch:analyze(),
 otherwise the loop was expecting values in one variable but storing them
 in another. Regression introduced in dpkg 1.17.14. Closes: #764206
   * Set umask to 0 when creating symlinks in tar test case, to normalize
 results. POSIX specifies that symlinks have undefined permissions in
 their mode, so their setting is system dependent. Linux does not honor
 the umask for symlinks, other systems like Hurd or kFreeBSD do.
 Regression introduced in dpkg 1.17.14. Closes: #764171
Checksums-Sha1:
 ad178f0289098be6d863825ccf1c286101882c76 2057 dpkg_1.17.16.dsc
 0745d21e06a5775d9d059bd325558de69dc2f291 4299248 dpkg_1.17.16.tar.xz
 fb4d3478abd5fdbe35c7f2e4f2c6926dafced41e 1487554 dpkg-dev_1.17.16_all.deb
 8e1fe4e3ac877ceafd9e20b6d7697ca040893396 1015212 libdpkg-perl_1.17.16_all.deb
Checksums-Sha256:
 a2708cb0b15870c5e6a49545e91a8781b63237c9455de8991e2270453fd638b9 2057 
dpkg_1.17.16.dsc
 3bb58a197ad6e8fe80a2063de70ec737a486b1f6cafd9a481a92ce5411c90fe0 4299248 
dpkg_1.17.16.tar.xz
 3c80801ce9dff190d13aab1af947606c164d020c6d2204ab8023da1656d62efb 1487554 
dpkg-dev_1.17.16_all.deb
 fe25ebd960ac0f530b1b1700020593042f4cd7a568522d42155cc8962ebf02ff 1015212 
libdpkg-perl_1.17.16_all.deb
Files:
 30a7639713a523e7daae70c49dcd899f 2057 admin required dpkg_1.17.16.dsc
 62381b83a86ef40c33df8a07034e0f0e 4299248 admin required dpkg_1.17.16.tar.xz
 99a84952f0868f833ff9e3b8cf19f2a6 1487554 utils optional 
dpkg-dev_1.17.16_all.deb
 0da59a4095bfaa46e11c9d4773b8b769 1015212 perl optional 
libdpkg-perl_1.17.16_all.deb

-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBCAAGBQJUMoDTAAoJELlyvz6krlejThYP/2AX9WBauniPqz44rm34puKR
OW/SDTcCo9L72VHzuqVWABB40H5IITSgmNYS4l5UedhTaiFLrHRwLb3veyLj/spJ
mvPPG5mqV929RD5W1eSr+enMv2BDVP6M2kwgHUzmv7bhZaHRFDoVMee8fY6Nrg+S
dfCVckka2SynRAUxapYECSrT0eMGS3ddVfawzpgWW+JRVOPFl0YDor/oJc9Cv72K
ibFnRVjJRCFE8AvtEYZHduiACsyO+tik2wtj+tHURMxBX9v0/ffaHH9lJBqCDQi+
S/xFipc7xfnlBb1gZEpagq4YTb9wdyuAdu4R1iqj8tw+u35SCRM908snS61X91gu
odkIdeMB3sBJnHMaj//FswHruxpz6CevsU4gy/oiGJz31B5QebaRaWYp8i8Jl90P
N//HTwhukCXhGSQtnGxy/aZo5YGZ+Cgwsn9XL6Pr46ygpgQJN1xUHyAHUjA3LO3X
i/CgUIEd5syvCjig3FxkFog4QvdH9RZp1l5LcdPuCjBZGfDCHQayFrUoqlktD5F5
XzWjP3cAbj1v+t/IpKFu/lEO1u3vQRVvx/dx2hgX3JYwknLFWXHdEO6xs4ImeAMO

Bug#764171: marked as done (dpkg: FTBFS on non-Linux due to symlink mode mismatch on test suite)

2014-10-06 Thread Debian Bug Tracking System
Your message dated Mon, 06 Oct 2014 12:04:26 +
with message-id e1xb71e-0002sx...@franck.debian.org
and subject line Bug#764171: fixed in dpkg 1.17.16
has caused the Debian Bug report #764171,
regarding dpkg: FTBFS on non-Linux due to symlink mode mismatch on test suite
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
764171: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764171
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
---BeginMessage---
Source: dpkg
Source-Version: 1.17.14
Severity: serious

Hi!

The new tar tests fail on GNU/Hurd and GNU/kFreeBSD due to mismatched
symlink modes, I'm fixing this, but will hold off the upload until
tomorrow evening or so, in case there's any more regressions.

Thanks,
Guillem
---End Message---
---BeginMessage---
Source: dpkg
Source-Version: 1.17.16

We believe that the bug you reported is fixed in the latest version of
dpkg, 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 764...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guillem Jover guil...@debian.org (supplier of updated dpkg 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 ftpmas...@ftp-master.debian.org)


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Format: 1.8
Date: Mon, 06 Oct 2014 13:29:17 +0200
Source: dpkg
Binary: libdpkg-dev dpkg dpkg-dev libdpkg-perl dselect
Architecture: source all
Version: 1.17.16
Distribution: unstable
Urgency: low
Maintainer: Dpkg Developers debian-d...@lists.debian.org
Changed-By: Guillem Jover guil...@debian.org
Description:
 dpkg   - Debian package management system
 dpkg-dev   - Debian package development tools
 dselect- Debian package management front-end
 libdpkg-dev - Debian package management static library
 libdpkg-perl - Dpkg perl modules
Closes: 764171 764206
Changes:
 dpkg (1.17.16) unstable; urgency=low
 .
   * Set the copyright holder in the po4a calls for man pages.
   * Switch remaining topic to named variable in Dpkg::Source::Patch:analyze(),
 otherwise the loop was expecting values in one variable but storing them
 in another. Regression introduced in dpkg 1.17.14. Closes: #764206
   * Set umask to 0 when creating symlinks in tar test case, to normalize
 results. POSIX specifies that symlinks have undefined permissions in
 their mode, so their setting is system dependent. Linux does not honor
 the umask for symlinks, other systems like Hurd or kFreeBSD do.
 Regression introduced in dpkg 1.17.14. Closes: #764171
Checksums-Sha1:
 ad178f0289098be6d863825ccf1c286101882c76 2057 dpkg_1.17.16.dsc
 0745d21e06a5775d9d059bd325558de69dc2f291 4299248 dpkg_1.17.16.tar.xz
 fb4d3478abd5fdbe35c7f2e4f2c6926dafced41e 1487554 dpkg-dev_1.17.16_all.deb
 8e1fe4e3ac877ceafd9e20b6d7697ca040893396 1015212 libdpkg-perl_1.17.16_all.deb
Checksums-Sha256:
 a2708cb0b15870c5e6a49545e91a8781b63237c9455de8991e2270453fd638b9 2057 
dpkg_1.17.16.dsc
 3bb58a197ad6e8fe80a2063de70ec737a486b1f6cafd9a481a92ce5411c90fe0 4299248 
dpkg_1.17.16.tar.xz
 3c80801ce9dff190d13aab1af947606c164d020c6d2204ab8023da1656d62efb 1487554 
dpkg-dev_1.17.16_all.deb
 fe25ebd960ac0f530b1b1700020593042f4cd7a568522d42155cc8962ebf02ff 1015212 
libdpkg-perl_1.17.16_all.deb
Files:
 30a7639713a523e7daae70c49dcd899f 2057 admin required dpkg_1.17.16.dsc
 62381b83a86ef40c33df8a07034e0f0e 4299248 admin required dpkg_1.17.16.tar.xz
 99a84952f0868f833ff9e3b8cf19f2a6 1487554 utils optional 
dpkg-dev_1.17.16_all.deb
 0da59a4095bfaa46e11c9d4773b8b769 1015212 perl optional 
libdpkg-perl_1.17.16_all.deb

-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBCAAGBQJUMoDTAAoJELlyvz6krlejThYP/2AX9WBauniPqz44rm34puKR
OW/SDTcCo9L72VHzuqVWABB40H5IITSgmNYS4l5UedhTaiFLrHRwLb3veyLj/spJ
mvPPG5mqV929RD5W1eSr+enMv2BDVP6M2kwgHUzmv7bhZaHRFDoVMee8fY6Nrg+S
dfCVckka2SynRAUxapYECSrT0eMGS3ddVfawzpgWW+JRVOPFl0YDor/oJc9Cv72K
ibFnRVjJRCFE8AvtEYZHduiACsyO+tik2wtj+tHURMxBX9v0/ffaHH9lJBqCDQi+
S/xFipc7xfnlBb1gZEpagq4YTb9wdyuAdu4R1iqj8tw+u35SCRM908snS61X91gu
odkIdeMB3sBJnHMaj//FswHruxpz6CevsU4gy/oiGJz31B5QebaRaWYp8i8Jl90P
N//HTwhukCXhGSQtnGxy/aZo5YGZ+Cgwsn9XL6Pr46ygpgQJN1xUHyAHUjA3LO3X
i/CgUIEd5syvCjig3FxkFog4QvdH9RZp1l5LcdPuCjBZGfDCHQayFrUoqlktD5F5
XzWjP3cAbj1v+t/IpKFu/lEO1u3vQRVvx/dx2hgX3JYwknLFWXHdEO6xs4ImeAMO

Bug#764216: dpkg-genchanges: Missing function imports when parsing Build-Profiles field

2014-10-06 Thread Guillem Jover
Package: dpkg-dev
Version: 1.17.14
Severity: serious

Hi!

There are some missing imports in dpkg-genchanges that makes it fail
when a binary package contains a Build-Profiles field. There's only
a handful of those on the archive right now, so the fix is not very
urgent. I'll be uploading a new version in a couple of days.

Reported by Johannes Schauer.

Thanks,
Guillem


-- 
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#764236: dpkg-checkbuilddeps: satisfyable Multi-Arch: foreign build dependency is listed as missing

2014-10-06 Thread Johannes Schauer
Package: dpkg-dev
Version: 1.17.15
Severity: normal

Hi,

I'm running amd64 and have symlinks:i386 installed. Now I'm trying to
build glibc which build depends on symlinks. Since symlinks is
M-A:foreign it should satisfy the build dependency of glibc built on
amd64. Nonetheless, dpkg-checkbuilddeps will throw an error.

Additionally, I cannot reproduce the same problem after having installed
symlinks:amd64 and then again symlinks:i386. After having done that,
dpkg-checkbuilddeps behaves properly even with only symlinks:i386
installed.

This might be related to #710769 but that bug affected M-A:no packages
which were wrongly classified as M-A: foreign while this bug is about a
M-A:foreign package being treated as if it was M-A:no.

cheers, josch

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dpkg-dev depends on:
ii  base-files7.3
ii  binutils  2.24.51.20140918-1
ii  bzip2 1.0.6-5
ii  libdpkg-perl  1.17.15
ii  make  4.0-8
ii  patch 2.7.1-5
ii  xz-utils  5.1.1alpha+20120614-2

Versions of packages dpkg-dev recommends:
ii  build-essential  11.6
ii  clang-3.3 [c-compiler]   1:3.3-16
ii  fakeroot 1.18.4-2
ii  gcc [c-compiler] 4:4.9.0-4
ii  gcc-4.8 [c-compiler] 4.8.3-11
ii  gcc-4.9 [c-compiler] 4.9.1-16
ii  gnupg1.4.18-2
ii  gnupg2   2.0.25-1
ii  gpgv 1.4.18-2
ii  libalgorithm-merge-perl  0.08-2

Versions of packages dpkg-dev suggests:
ii  debian-keyring  2014.08.31

-- debconf-show failed


-- 
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#764281: dpkg-source: error: expected ^--- in line 34 of diff

2014-10-06 Thread Joachim Breitner
Package: dpkg-dev
Version: 1.17.15
Severity: normal
File: /usr/bin/dpkg-source

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I tried to unpack xscreensaver, but failed:

$ LANG=C apt-get source xscreensaver
Reading package lists... Done
Building dependency tree   
Reading state information... Done
NOTICE: 'xscreensaver' packaging is maintained in the 'Git' version control 
system at:
git://anonscm.debian.org/collab-maint/xscreensaver.git
Skipping already downloaded file 'xscreensaver_5.29-1.dsc'
Skipping already downloaded file 'xscreensaver_5.29.orig.tar.gz'
Skipping already downloaded file 'xscreensaver_5.29-1.diff.gz'
Need to get 0 B of source archives.
dpkg-source: info: extracting xscreensaver in xscreensaver-5.29
dpkg-source: info: unpacking xscreensaver_5.29.orig.tar.gz
dpkg-source: info: applying xscreensaver_5.29-1.diff.gz
dpkg-source: error: expected ^--- in line 34 of diff 
`./xscreensaver_5.29-1.diff.gz'
Unpack command 'dpkg-source -x xscreensaver_5.29-1.dsc' failed.
Check if the 'dpkg-dev' package is installed.
E: Child process failed

Greetings,
Joachim

- -- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
armhf

Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dpkg-dev depends on:
ii  base-files7.5
ii  binutils  2.24.51.20141001-2
ii  bzip2 1.0.6-7
ii  libdpkg-perl  1.17.15
ii  make  4.0-8
ii  patch 2.7.1-6
ii  xz-utils  5.1.1alpha+20120614-2

Versions of packages dpkg-dev recommends:
ii  build-essential  11.7
ii  clang-3.3 [c-compiler]   1:3.3-16
ii  fakeroot 1.20.2-1
ii  gcc [c-compiler] 4:4.9.1-4
ii  gcc-4.6 [c-compiler] 4.6.4-7
ii  gcc-4.7 [c-compiler] 4.7.4-3
ii  gcc-4.8 [c-compiler] 4.8.3-12
ii  gcc-4.9 [c-compiler] 4.9.1-15
ii  gnupg1.4.18-4
ii  gnupg2   2.0.26-3
ii  gpgv 1.4.18-4
pn  libalgorithm-merge-perl  none

Versions of packages dpkg-dev suggests:
ii  debian-keyring  2014.08.31

- -- no debconf information

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iEYEARECAAYFAlQzAc0ACgkQ9ijrk0dDIGwGjgCfdqrYLYy7apzpsjrvMwS0vKmW
kCMAnjr7g6W5/qIJH6aZ9LuouBK/yDuT
=ZFb0
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org