Bug#872514: devscripts: Please add script to report on reproducibility status of installed packages

2017-08-31 Thread Chris Lamb
Hi James & Mattia,

> > Any update? ACK to push? :)
> 
> Yeah, that's fine with me.

Thanks for pushing and for spotting:

  
https://anonscm.debian.org/cgit/collab-maint/devscripts.git/commit/?id=6cf839c44f64977272e24b46752304fd87ceeb44


Best wishes,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-



Bug#872514: devscripts: Please add script to report on reproducibility status of installed packages

2017-08-31 Thread James McCoy
On Aug 31, 2017 05:09, "Chris Lamb"  wrote:

Hi,

> Updated patch attached

Any update? ACK to push? :)


Yeah, that's fine with me.

Cheers,
James


Bug#872514: devscripts: Please add script to report on reproducibility status of installed packages

2017-08-31 Thread Chris Lamb
Hi,

> Updated patch attached

Any update? ACK to push? :)


Best wishes,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-



Bug#872514: devscripts: Please add script to report on reproducibility status of installed packages

2017-08-28 Thread Chris Lamb
Hi all,

Updated patch attached:

 * Combines the "License" paragraphs. (Thanks James!)

 * Drops the auto-generated "DO NOT MODIFY THIS FILE!" warning. (Thanks Paul!)


  commit 07ee158e84dc41c567e6727adc488d01f8a70989
  Author: Chris Lamb 
  Date:   Mon Aug 28 08:43:58 2017 +0100
  
  reproducible-check: New script to report on reproducibility status of 
installed packages.
  
  Signed-off-by: Chris Lamb 
  
   .gitignore |   1 +
   debian/control |   7 ++
   debian/copyright   |   3 +
   scripts/Makefile   |   7 +-
   scripts/reproducible-check | 170 
+
   scripts/setup.py   |   2 +-
   6 files changed, 187 insertions(+), 3 deletions(-)


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-
From 07ee158e84dc41c567e6727adc488d01f8a70989 Mon Sep 17 00:00:00 2001
From: Chris Lamb 
Date: Mon, 28 Aug 2017 08:43:58 +0100
Subject: [PATCH] reproducible-check: New script to report on reproducibility
 status of installed packages.

Signed-off-by: Chris Lamb 
---
 .gitignore |   1 +
 debian/control |   7 ++
 debian/copyright   |   3 +
 scripts/Makefile   |   7 +-
 scripts/reproducible-check | 170 +
 scripts/setup.py   |   2 +-
 6 files changed, 187 insertions(+), 3 deletions(-)
 create mode 100755 scripts/reproducible-check

diff --git a/.gitignore b/.gitignore
index e96730cd..248fd399 100644
--- a/.gitignore
+++ b/.gitignore
@@ -98,6 +98,7 @@ scripts/origtargz.1
 scripts/plotchangelog
 scripts/pts-subscribe
 scripts/rc-alert
+scripts/reproducible-check.1
 scripts/rmadison
 scripts/rmadison.1
 scripts/sadt.1
diff --git a/debian/control b/debian/control
index 82165b80..6eac2ce5 100644
--- a/debian/control
+++ b/debian/control
@@ -13,6 +13,7 @@ Build-Depends: bash-completion,
dpkg-dev (>= 1.17.6),
file,
gnupg | gnupg2,
+   help2man,
libdistro-info-perl,
libdpkg-perl,
libfile-desktopentry-perl,
@@ -29,11 +30,14 @@ Build-Depends: bash-completion,
po4a (>= 0.40),
pylint,
python3-all,
+   python3-apt,
python3-debian (>= 0.1.15),
python3-flake8,
python3-magic,
+   python3-requests,
python3-setuptools,
python3-unidiff ,
+   python3-xdg,
shunit2 (>= 2.1.6),
unzip,
wdiff,
@@ -72,9 +76,12 @@ Recommends: apt,
 man-db,
 patch,
 patchutils,
+python3-apt,
 python3-debian (>= 0.1.15),
 python3-magic,
+python3-requests,
 python3-unidiff,
+python3-xdg,
 sensible-utils,
 strace,
 unzip,
diff --git a/debian/copyright b/debian/copyright
index c22addad..1e731d3a 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -68,6 +68,9 @@ Copyright: 2009,  Jonathan Patrick Davies 
2006-2008, Kees Cook 
2007-2008, Siegfried-Angel Gevatter Pujals 
2013,  Rafael Laboissiere 
+   2017   Chris Lamb 
+License: GPL-3+
+
 License: GPL-3+
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
diff --git a/scripts/Makefile b/scripts/Makefile
index ece5455a..21ed11a6 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -24,9 +24,9 @@ COMPLETION = $(patsubst %.bash_completion,$(BC_BUILD_DIR)/%,$(COMPL_FILES))
 COMPL_DIR := $(shell pkg-config --variable=completionsdir bash-completion)
 PKGNAMES:=wnpp-alert wnpp-check mk-build-deps rmadison mass-bug debsnap dd-list build-rdeps who-uploads transition-check getbuildlog dcontrol grep-excuses rc-alert whodepends dget pts-subscribe pts-unsubscribe debcheckout
 # also update the list in setup.py
-PYTHON3_SCRIPTS:=debdiff-apply sadt suspicious-source wrap-and-sort
+PYTHON3_SCRIPTS:=debdiff-apply sadt suspicious-source wrap-and-sort reproducible-check
 
-GEN_MAN1S += debrepro.1 devscripts.1 mk-origtargz.1 uscan.1
+GEN_MAN1S += debrepro.1 devscripts.1 mk-origtargz.1 uscan.1 reproducible-check.1
 
 all: $(SCRIPTS) $(GEN_MAN1S) $(CWRAPPERS) $(COMPLETION)
 
@@ -74,6 +74,9 @@ devscripts.1: devscripts.1.in
 	perl ../debian/genmanpage.pl >> $@.$(PID)
 	mv $@.$(PID) $@
 
+reproducible-check.1: reproducible-check
+	help2man --no-info --no-discard-stderr ./reproducible-check >$@
+
 $(BC_BUILD_DIR):
 	mkdir $(BC_BUILD_DIR)
 
diff --git a/scripts/reproducible-check b/scripts/reproducible-check
new 

Bug#872514: devscripts: Please add script to report on reproducibility status of installed packages

2017-08-27 Thread James McCoy
On Sun, Aug 27, 2017 at 02:01:13AM -0700, Chris Lamb wrote:
> Hi Paul & James,
> 
> Thanks for the review :)
> 
> Updated patch attached:

> diff --git a/debian/copyright b/debian/copyright
> index c22addad..95550dc7 100644
> --- a/debian/copyright
> +++ b/debian/copyright
> @@ -68,6 +68,12 @@ Copyright: 2009,  Jonathan Patrick Davies 
> 
> 2006-2008, Kees Cook 
> 2007-2008, Siegfried-Angel Gevatter Pujals 
> 2013,  Rafael Laboissiere 
> +License: GPL-3+
> +
> +Files: scripts/reproducible-check
> +Copyright: © 2017 Chris Lamb 
> +License: GPL-3+
> +

Shouldn't the above two paragraphs be combined?  They're the same
license.

Cheers,
-- 
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB



Bug#872514: devscripts: Please add script to report on reproducibility status of installed packages

2017-08-27 Thread Paul Wise
On Sun, 2017-08-27 at 02:01 -0700, Chris Lamb wrote:

> +++ b/scripts/reproducible-check.1
> @@ -0,0 +1,22 @@
> +.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.47.4.

I'd suggest either dropping that file or dropping that comment.
Either the file is modifiable source or it should not be in git.
Considering it is mostly just the help2man output for the script,
I don't think it serves any useful purpose and should be removed.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Bug#872514: devscripts: Please add script to report on reproducibility status of installed packages

2017-08-27 Thread Chris Lamb
Hi Paul & James,

Thanks for the review :)

Updated patch attached:

  * Moved away from help2man.

  * Changed cache filename suffix to .bz2. (It was a mistake)

  * Added a missing python3-xdg to the packages "required" list in
debian/control.)

  * Dropped the rather verbose "2017-08-27 09:48:02 " prefix from
log messages.

  * Dropped aliasing of "architecture" to prevent an unused variable
warning from static analysis tools.

  * Wrapped some long lines.


  commit 381f7070f28940796ab795c600764cfdc0429924
  Author: Chris Lamb 
  Date:   Sun Aug 20 11:18:29 2017 -0700
  
  reproducible-check: New script to report on reproducibility status of 
installed packages. (Closes: #872514)
  
  Signed-off-by: Chris Lamb 
  
   README   |   3 +
   debian/control   |   8 ++
   debian/copyright |   6 ++
   scripts/Makefile |   2 +-
   scripts/reproducible-check   | 188 
+++
   scripts/reproducible-check.1 |  22 +
   scripts/setup.py |   2 +-
   7 files changed, 229 insertions(+), 2 deletions(-)


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-
From 381f7070f28940796ab795c600764cfdc0429924 Mon Sep 17 00:00:00 2001
From: Chris Lamb 
Date: Sun, 20 Aug 2017 11:18:29 -0700
Subject: [PATCH] reproducible-check: New script to report on reproducibility
 status of installed packages. (Closes: #872514)

Signed-off-by: Chris Lamb 
---
 README   |   3 +
 debian/control   |   8 ++
 debian/copyright |   6 ++
 scripts/Makefile |   2 +-
 scripts/reproducible-check   | 188 +++
 scripts/reproducible-check.1 |  22 +
 scripts/setup.py |   2 +-
 7 files changed, 229 insertions(+), 2 deletions(-)
 create mode 100755 scripts/reproducible-check
 create mode 100644 scripts/reproducible-check.1

diff --git a/README b/README
index ba8b265b..e54c9eab 100644
--- a/README
+++ b/README
@@ -226,6 +226,9 @@ And now, in mostly alphabetical order, the scripts:
 - rc-alert: list installed packages which have release-critical bugs
   [wget | curl]
 
+- repoducible-check: reports on the reproducibility status of installed
+  packages. [python3-apt, python3-requests, python3-xdg]
+
 - rmadison: remotely query the Debian archive database about packages
   [liburi-perl, wget | curl]
 
diff --git a/debian/control b/debian/control
index 82165b80..6b308d19 100644
--- a/debian/control
+++ b/debian/control
@@ -29,11 +29,14 @@ Build-Depends: bash-completion,
po4a (>= 0.40),
pylint,
python3-all,
+   python3-apt,
python3-debian (>= 0.1.15),
python3-flake8,
python3-magic,
+   python3-requests,
python3-setuptools,
python3-unidiff ,
+   python3-xdg,
shunit2 (>= 2.1.6),
unzip,
wdiff,
@@ -72,9 +75,12 @@ Recommends: apt,
 man-db,
 patch,
 patchutils,
+python3-apt,
 python3-debian (>= 0.1.15),
 python3-magic,
+python3-requests,
 python3-unidiff,
+python3-xdg,
 sensible-utils,
 strace,
 unzip,
@@ -215,6 +221,8 @@ Description: scripts to make the life of a Debian Package maintainer easier
 [libtimedate-perl, gnuplot]
   - pts-subscribe: subscribe to the PTS for a limited period of time
 [bsd-mailx | mailx, at]
+  - reproducible-check: reports on the reproducible status of installed
+packages [python3-apt, python3-requests, python3-xdg]
   - rc-alert: list installed packages which have release-critical bugs
 [wget | curl]
   - rmadison: remotely query the Debian archive database about packages
diff --git a/debian/copyright b/debian/copyright
index c22addad..95550dc7 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -68,6 +68,12 @@ Copyright: 2009,  Jonathan Patrick Davies 
2006-2008, Kees Cook 
2007-2008, Siegfried-Angel Gevatter Pujals 
2013,  Rafael Laboissiere 
+License: GPL-3+
+
+Files: scripts/reproducible-check
+Copyright: © 2017 Chris Lamb 
+License: GPL-3+
+
 License: GPL-3+
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
diff --git a/scripts/Makefile b/scripts/Makefile
index ece5455a..47206edf 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -24,7 +24,7 @@ COMPLETION = $(patsubst %.bash_completion,$(BC_BUILD_DIR)/%,$(COMPL_FILES))
 COMPL_DIR := $(shell pkg-config 

Bug#872514: devscripts: Please add script to report on reproducibility status of installed packages

2017-08-25 Thread Paul Wise
On Sun, 20 Aug 2017 11:19:08 -0700 Chris Lamb wrote:

> Updated patch attached that adds the correct line to debian/control.

Re the use of help2man:

mapreri had concerns on IRC this might interfere with cross-builds.

I tend to think that help2man should never be used automatically,
only ever as a starting point for writing a proper manual page,
since it does not add any value over using the --help options.

For Python stuff a better option is to use sphinx and sphinx-argparse
or sphinxcontrib-autoprogram so as to not duplicate docs between the
code and the manual page.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Bug#872514: devscripts: Please add script to report on reproducibility status of installed packages

2017-08-25 Thread James McCoy
On Sun, Aug 20, 2017 at 11:19:08AM -0700, Chris Lamb wrote:
> Hi,
> 
> > devscripts: Please add script to report on reproducibility
> > status of installed packages
> 
> Updated patch attached that adds the correct line to debian/control.

Thanks for working on the new script!  I had looked at it earlier but
realized (due to mapreri's nudging) that I hadn't followed up about it.

I think it's a good addition to devscripts, so definitely welcome it
being included.  I only had a couple small comments.

Is it intentional that the cache file is named bz rather than bz2?  I
know .bz is recognized by the relevant tools, but it seems .bz2 is the
more typical form.

README needs to be updated with information about the new script.  It
basically follows the same format as the long description in
debian/control.

Cheers,
-- 
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB



Bug#872514: devscripts: Please add script to report on reproducibility status of installed packages

2017-08-20 Thread Chris Lamb
Hi,

> devscripts: Please add script to report on reproducibility
> status of installed packages

Updated patch attached that adds the correct line to debian/control.


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-
>From a31a6019499732ec4def642ea1891fe5cf19d527 Mon Sep 17 00:00:00 2001
From: Chris Lamb 
Date: Sun, 20 Aug 2017 11:18:29 -0700
Subject: [PATCH] reproducible-check: New script to report on reproducibility
 status of installed packages.

Signed-off-by: Chris Lamb 
---
 .gitignore |   1 +
 debian/control |   9 +++
 debian/copyright   |   6 ++
 scripts/Makefile   |   7 +-
 scripts/reproducible-check | 185 +
 scripts/setup.py   |   2 +-
 6 files changed, 207 insertions(+), 3 deletions(-)
 create mode 100755 scripts/reproducible-check

diff --git a/.gitignore b/.gitignore
index e96730cd..248fd399 100644
--- a/.gitignore
+++ b/.gitignore
@@ -98,6 +98,7 @@ scripts/origtargz.1
 scripts/plotchangelog
 scripts/pts-subscribe
 scripts/rc-alert
+scripts/reproducible-check.1
 scripts/rmadison
 scripts/rmadison.1
 scripts/sadt.1
diff --git a/debian/control b/debian/control
index 82165b80..275d96cd 100644
--- a/debian/control
+++ b/debian/control
@@ -13,6 +13,7 @@ Build-Depends: bash-completion,
dpkg-dev (>= 1.17.6),
file,
gnupg | gnupg2,
+   help2man,
libdistro-info-perl,
libdpkg-perl,
libfile-desktopentry-perl,
@@ -29,11 +30,14 @@ Build-Depends: bash-completion,
po4a (>= 0.40),
pylint,
python3-all,
+   python3-apt,
python3-debian (>= 0.1.15),
python3-flake8,
python3-magic,
+   python3-requests,
python3-setuptools,
python3-unidiff ,
+   python3-xdg,
shunit2 (>= 2.1.6),
unzip,
wdiff,
@@ -72,9 +76,12 @@ Recommends: apt,
 man-db,
 patch,
 patchutils,
+python3-apt,
 python3-debian (>= 0.1.15),
 python3-magic,
+python3-requests,
 python3-unidiff,
+python3-xdg,
 sensible-utils,
 strace,
 unzip,
@@ -215,6 +222,8 @@ Description: scripts to make the life of a Debian Package maintainer easier
 [libtimedate-perl, gnuplot]
   - pts-subscribe: subscribe to the PTS for a limited period of time
 [bsd-mailx | mailx, at]
+  - reproducible-check: reports on the reproducible status of installed
+packages [python3-apt, python3-requests]
   - rc-alert: list installed packages which have release-critical bugs
 [wget | curl]
   - rmadison: remotely query the Debian archive database about packages
diff --git a/debian/copyright b/debian/copyright
index c22addad..95550dc7 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -68,6 +68,12 @@ Copyright: 2009,  Jonathan Patrick Davies 
2006-2008, Kees Cook 
2007-2008, Siegfried-Angel Gevatter Pujals 
2013,  Rafael Laboissiere 
+License: GPL-3+
+
+Files: scripts/reproducible-check
+Copyright: © 2017 Chris Lamb 
+License: GPL-3+
+
 License: GPL-3+
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
diff --git a/scripts/Makefile b/scripts/Makefile
index ece5455a..21ed11a6 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -24,9 +24,9 @@ COMPLETION = $(patsubst %.bash_completion,$(BC_BUILD_DIR)/%,$(COMPL_FILES))
 COMPL_DIR := $(shell pkg-config --variable=completionsdir bash-completion)
 PKGNAMES:=wnpp-alert wnpp-check mk-build-deps rmadison mass-bug debsnap dd-list build-rdeps who-uploads transition-check getbuildlog dcontrol grep-excuses rc-alert whodepends dget pts-subscribe pts-unsubscribe debcheckout
 # also update the list in setup.py
-PYTHON3_SCRIPTS:=debdiff-apply sadt suspicious-source wrap-and-sort
+PYTHON3_SCRIPTS:=debdiff-apply sadt suspicious-source wrap-and-sort reproducible-check
 
-GEN_MAN1S += debrepro.1 devscripts.1 mk-origtargz.1 uscan.1
+GEN_MAN1S += debrepro.1 devscripts.1 mk-origtargz.1 uscan.1 reproducible-check.1
 
 all: $(SCRIPTS) $(GEN_MAN1S) $(CWRAPPERS) $(COMPLETION)
 
@@ -74,6 +74,9 @@ devscripts.1: devscripts.1.in
 	perl ../debian/genmanpage.pl >> $@.$(PID)
 	mv $@.$(PID) $@
 
+reproducible-check.1: reproducible-check
+	help2man --no-info --no-discard-stderr ./reproducible-check >$@
+
 $(BC_BUILD_DIR):
 	mkdir $(BC_BUILD_DIR)
 
diff --git a/scripts/reproducible-check b/scripts/reproducible-check
new file mode 100755
index ..f6444b87
--- /dev/null

Bug#872514: devscripts: Please add script to report on reproducibility status of installed packages

2017-08-18 Thread Chris Lamb
Hi,

> devscripts: Please add script to report on reproducibility status
> of installed packages

Updated patch attached:

  commit ae5eb4b49f6388e4e813a1fb5aef58a291b82ffc
  Author: Chris Lamb 
  Date:   Thu Aug 17 17:07:16 2017 -0700
  
  reproducible-check: New script to report on reproducibility status of 
installed packages.
  
  Signed-off-by: Chris Lamb 
  
   .gitignore |   1 +
   debian/control |   7 ++
   debian/copyright   |   6 ++
   scripts/Makefile   |   7 +-
   scripts/reproducible-check | 185 
+
   scripts/setup.py   |   2 +-
   6 files changed, 205 insertions(+), 3 deletions(-)

Compared to the previous patch, it

  * Lets the cache expire after 1 day
  * Sets a User-Agent
  * Tidies up some variable names, etc.


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-
>From ae5eb4b49f6388e4e813a1fb5aef58a291b82ffc Mon Sep 17 00:00:00 2001
From: Chris Lamb 
Date: Thu, 17 Aug 2017 17:07:16 -0700
Subject: [PATCH] reproducible-check: New script to report on reproducibility
 status of installed packages.

Signed-off-by: Chris Lamb 
---
 .gitignore |   1 +
 debian/control |   7 ++
 debian/copyright   |   6 ++
 scripts/Makefile   |   7 +-
 scripts/reproducible-check | 185 +
 scripts/setup.py   |   2 +-
 6 files changed, 205 insertions(+), 3 deletions(-)
 create mode 100755 scripts/reproducible-check

diff --git a/.gitignore b/.gitignore
index e96730cd..248fd399 100644
--- a/.gitignore
+++ b/.gitignore
@@ -98,6 +98,7 @@ scripts/origtargz.1
 scripts/plotchangelog
 scripts/pts-subscribe
 scripts/rc-alert
+scripts/reproducible-check.1
 scripts/rmadison
 scripts/rmadison.1
 scripts/sadt.1
diff --git a/debian/control b/debian/control
index 82165b80..6eac2ce5 100644
--- a/debian/control
+++ b/debian/control
@@ -13,6 +13,7 @@ Build-Depends: bash-completion,
dpkg-dev (>= 1.17.6),
file,
gnupg | gnupg2,
+   help2man,
libdistro-info-perl,
libdpkg-perl,
libfile-desktopentry-perl,
@@ -29,11 +30,14 @@ Build-Depends: bash-completion,
po4a (>= 0.40),
pylint,
python3-all,
+   python3-apt,
python3-debian (>= 0.1.15),
python3-flake8,
python3-magic,
+   python3-requests,
python3-setuptools,
python3-unidiff ,
+   python3-xdg,
shunit2 (>= 2.1.6),
unzip,
wdiff,
@@ -72,9 +76,12 @@ Recommends: apt,
 man-db,
 patch,
 patchutils,
+python3-apt,
 python3-debian (>= 0.1.15),
 python3-magic,
+python3-requests,
 python3-unidiff,
+python3-xdg,
 sensible-utils,
 strace,
 unzip,
diff --git a/debian/copyright b/debian/copyright
index c22addad..95550dc7 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -68,6 +68,12 @@ Copyright: 2009,  Jonathan Patrick Davies 
2006-2008, Kees Cook 
2007-2008, Siegfried-Angel Gevatter Pujals 
2013,  Rafael Laboissiere 
+License: GPL-3+
+
+Files: scripts/reproducible-check
+Copyright: © 2017 Chris Lamb 
+License: GPL-3+
+
 License: GPL-3+
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
diff --git a/scripts/Makefile b/scripts/Makefile
index ece5455a..21ed11a6 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -24,9 +24,9 @@ COMPLETION = $(patsubst %.bash_completion,$(BC_BUILD_DIR)/%,$(COMPL_FILES))
 COMPL_DIR := $(shell pkg-config --variable=completionsdir bash-completion)
 PKGNAMES:=wnpp-alert wnpp-check mk-build-deps rmadison mass-bug debsnap dd-list build-rdeps who-uploads transition-check getbuildlog dcontrol grep-excuses rc-alert whodepends dget pts-subscribe pts-unsubscribe debcheckout
 # also update the list in setup.py
-PYTHON3_SCRIPTS:=debdiff-apply sadt suspicious-source wrap-and-sort
+PYTHON3_SCRIPTS:=debdiff-apply sadt suspicious-source wrap-and-sort reproducible-check
 
-GEN_MAN1S += debrepro.1 devscripts.1 mk-origtargz.1 uscan.1
+GEN_MAN1S += debrepro.1 devscripts.1 mk-origtargz.1 uscan.1 reproducible-check.1
 
 all: $(SCRIPTS) $(GEN_MAN1S) $(CWRAPPERS) $(COMPLETION)
 
@@ -74,6 +74,9 @@ devscripts.1: devscripts.1.in
 	perl ../debian/genmanpage.pl >> $@.$(PID)
 	mv $@.$(PID) $@
 
+reproducible-check.1: reproducible-check
+	help2man --no-info --no-discard-stderr 

Bug#872514: devscripts: Please add script to report on reproducibility status of installed packages

2017-08-17 Thread Chris Lamb
Package: devscripts
Version: 2.17.9
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: toolchain
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi!

Thanks for your work on devscripts. Attached is the following:

  commit 57512128c75ac74b6cfa3c70a0613ba85789b992
  Author: Chris Lamb 
  Date:   Thu Aug 17 17:07:16 2017 -0700
  
  reproducible-check: New script to report on reproducibility status
of installed packages.
  
  Signed-off-by: Chris Lamb 
  
   .gitignore |   1 +
   debian/control |   7 ++
   debian/copyright   |   6 ++
   scripts/Makefile   |   7 +-
   scripts/reproducible-check | 170 
+
   scripts/setup.py   |   2 +-
   6 files changed, 190 insertions(+), 3 deletions(-)

Example output:

  $ reproducible-check
  […]
  xen (4.8.1-1+deb9u1) is unreproducible (libxen-4.8, libxenstore3.0) 

  xmlrpc-c (1.33.14-4) is unreproducible (libxmlrpc-core-c3) 

  xmlstarlet (1.6.1-2) is unreproducible 

  xorg-server (2:1.19.3-2) is unreproducible (xserver-xephyr, 
xserver-xorg-core) 
  zsh (5.4.1-1) is unreproducible 

366/4083 (8.96%) of installed binary packages are unreproducible.

Also:

  $ reproducible-check --raw | dd-list -i
  […]
  Torsten Marek 
 pycairo (U)

  Vagrant Cascadian 
 qemu (U)

  Vincent Fourmond 
 imagemagick (U)

  Yury V. Zaytsev 
 mc (U)


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-
>From 57512128c75ac74b6cfa3c70a0613ba85789b992 Mon Sep 17 00:00:00 2001
From: Chris Lamb 
Date: Thu, 17 Aug 2017 17:07:16 -0700
Subject: [PATCH] reproducible-check: New script to report on reproducibility
 status of installed packages.

Signed-off-by: Chris Lamb 
---
 .gitignore |   1 +
 debian/control |   7 ++
 debian/copyright   |   6 ++
 scripts/Makefile   |   7 +-
 scripts/reproducible-check | 170 +
 scripts/setup.py   |   2 +-
 6 files changed, 190 insertions(+), 3 deletions(-)
 create mode 100755 scripts/reproducible-check

diff --git a/.gitignore b/.gitignore
index e96730cd..248fd399 100644
--- a/.gitignore
+++ b/.gitignore
@@ -98,6 +98,7 @@ scripts/origtargz.1
 scripts/plotchangelog
 scripts/pts-subscribe
 scripts/rc-alert
+scripts/reproducible-check.1
 scripts/rmadison
 scripts/rmadison.1
 scripts/sadt.1
diff --git a/debian/control b/debian/control
index 82165b80..6eac2ce5 100644
--- a/debian/control
+++ b/debian/control
@@ -13,6 +13,7 @@ Build-Depends: bash-completion,
dpkg-dev (>= 1.17.6),
file,
gnupg | gnupg2,
+   help2man,
libdistro-info-perl,
libdpkg-perl,
libfile-desktopentry-perl,
@@ -29,11 +30,14 @@ Build-Depends: bash-completion,
po4a (>= 0.40),
pylint,
python3-all,
+   python3-apt,
python3-debian (>= 0.1.15),
python3-flake8,
python3-magic,
+   python3-requests,
python3-setuptools,
python3-unidiff ,
+   python3-xdg,
shunit2 (>= 2.1.6),
unzip,
wdiff,
@@ -72,9 +76,12 @@ Recommends: apt,
 man-db,
 patch,
 patchutils,
+python3-apt,
 python3-debian (>= 0.1.15),
 python3-magic,
+python3-requests,
 python3-unidiff,
+python3-xdg,
 sensible-utils,
 strace,
 unzip,
diff --git a/debian/copyright b/debian/copyright
index c22addad..95550dc7 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -68,6 +68,12 @@ Copyright: 2009,  Jonathan Patrick Davies 
2006-2008, Kees Cook 
2007-2008, Siegfried-Angel Gevatter Pujals 
2013,  Rafael Laboissiere 
+License: GPL-3+
+
+Files: scripts/reproducible-check
+Copyright: © 2017 Chris Lamb 
+License: GPL-3+
+
 License: GPL-3+
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
diff --git a/scripts/Makefile b/scripts/Makefile
index ece5455a..21ed11a6 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@