Bug#1053353: dacite: please make the build reproducible

2023-10-25 Thread Valentin Vidic
On Wed, Oct 25, 2023 at 08:00:43AM +0100, Chris Lamb wrote:
> Hm, after fiddling for a few minutes I can't quite work it out. What
> happens when you build it locally?

Locally I also don't see these files being created, so the updated
package has the same contents as version in unstable.

-- 
Valentin



Bug#1053353: dacite: please make the build reproducible

2023-10-25 Thread Chris Lamb
Valentin Vidic wrote:

> Not sure why would reproducible build have these files included?

Hm, after fiddling for a few minutes I can't quite work it out. What
happens when you build it locally?

It's not as if the testsuite is not being run on the buildd's, as we
can see that it is. For example:

  
https://buildd.debian.org/status/fetch.php?pkg=dacite=all=1.8.1-1=1687608805=0


Regards,

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



Bug#1053353: dacite: please make the build reproducible

2023-10-23 Thread Valentin Vidic
On Mon, Oct 02, 2023 at 02:29:34PM +0200, Chris Lamb wrote:
> Whilst working on the Reproducible Builds effort [0], we noticed that
> dacite could not be built reproducibly.
> 
> This is because it shipped a bunch of nondeterminstic ~temporary build
> files in the binary package, such as benchmarks (in addition to
> benchmark.json) and test caches.
> 
> Patch attached that removes them in a way paralleling the existing
> removal method in debian/rules.
> 
>  [0] https://reproducible-builds.org/
> 
> 
> Regards,
> 
> -- 
>   ,''`.
>  : :'  : Chris Lamb
>  `. `'`  la...@debian.org / chris-lamb.co.uk
>`-

> --- a/debian/rules2023-10-02 14:23:18.762168493 +0200
> --- b/debian/rules2023-10-02 14:27:11.902512609 +0200
> @@ -7,3 +7,5 @@
>  override_dh_auto_install:
>   dh_auto_install
>   rm debian/python3-dacite/usr/lib/python3*/dist-packages/benchmark.json
> + rm -rf debian/python3-dacite/usr/lib/python3*/dist-packages/.benchmarks
> + rm -rf 
> debian/python3-dacite/usr/lib/python3*/dist-packages/.pytest_cache

Hi, thanks for the patch, but it seems like the normal build does not
contain these files, for example:

File list of package python3-dacite in sid of architecture all

/usr/lib/python3/dist-packages/dacite-1.8.1.egg-info/PKG-INFO
/usr/lib/python3/dist-packages/dacite-1.8.1.egg-info/dependency_links.txt
/usr/lib/python3/dist-packages/dacite-1.8.1.egg-info/requires.txt
/usr/lib/python3/dist-packages/dacite-1.8.1.egg-info/top_level.txt
/usr/lib/python3/dist-packages/dacite/__init__.py
/usr/lib/python3/dist-packages/dacite/cache.py
/usr/lib/python3/dist-packages/dacite/config.py
/usr/lib/python3/dist-packages/dacite/core.py
/usr/lib/python3/dist-packages/dacite/data.py
/usr/lib/python3/dist-packages/dacite/dataclasses.py
/usr/lib/python3/dist-packages/dacite/exceptions.py
/usr/lib/python3/dist-packages/dacite/frozen_dict.py
/usr/lib/python3/dist-packages/dacite/py.typed
/usr/lib/python3/dist-packages/dacite/types.py
/usr/share/doc/python3-dacite/README.md.gz
/usr/share/doc/python3-dacite/changelog.Debian.gz
/usr/share/doc/python3-dacite/changelog.gz
/usr/share/doc/python3-dacite/copyright

Not sure why whould reproducible build have these files included?

-- 
Valentin



Bug#1053353: dacite: please make the build reproducible

2023-10-02 Thread Chris Lamb
Source: dacite
Version: 1.8.1-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
dacite could not be built reproducibly.

This is because it shipped a bunch of nondeterminstic ~temporary build
files in the binary package, such as benchmarks (in addition to
benchmark.json) and test caches.

Patch attached that removes them in a way paralleling the existing
removal method in debian/rules.

 [0] https://reproducible-builds.org/


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-
--- a/debian/rules  2023-10-02 14:23:18.762168493 +0200
--- b/debian/rules  2023-10-02 14:27:11.902512609 +0200
@@ -7,3 +7,5 @@
 override_dh_auto_install:
dh_auto_install
rm debian/python3-dacite/usr/lib/python3*/dist-packages/benchmark.json
+   rm -rf debian/python3-dacite/usr/lib/python3*/dist-packages/.benchmarks
+   rm -rf 
debian/python3-dacite/usr/lib/python3*/dist-packages/.pytest_cache