Bug#1120872: ruby-gnuplot: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Nov 17 20:31:13 GMT 2025


Source: ruby-gnuplot
Version: 2.6.2-4
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: nocheck
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

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

This is because it ships a different binary package depending on
whether the testsuite is run or not. Specifically, sin_wave.gif is
generated in the tests only (not in the build); a patch is attached
that will delete this file and ensure it is not shipped in the
binary package.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-11-17 10:44:47.665764873 -0800
--- b/debian/rules	2025-11-17 10:53:34.786047911 -0800
@@ -5,3 +5,8 @@
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+execute_after_dh_auto_install:
+	# sin_wave.gif is generated in dh_auto_install (not dh_auto_test)...
+	# but only if the tests are run.
+	rm -rvf examples/sin_wave.gif


More information about the Reproducible-bugs mailing list