Bug#1131724: sol2: please make the build reproducible
Chris Lamb
lamby at debian.org
Mon Mar 23 17:27:44 GMT 2026
Source: sol2
Version: 3.5.0-2
Severity: wishlist
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], I noticed that
sol2 could not be built reproducibly.
This was because the package contents differ if the tests are skipped
via nocheck; specifically, the .cpp example files are not included if
the tests are skipped, rendering the package unreproducible as it
differs depending on this.
A patch is attached that uses the dh_installexamples mechanism to always
ship these files, but this would appear to conflict with the intention of
the debian/patches/0005-install-example-sources.patch file already in
the package. (I am therefore not tagging this bug as "+ patch", as it is
not strictly complete.) However, I *do* include it by way of illustration,
and perhaps applying it and removing 0005-install-example-sources.patch
is the way you would prefer to go.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2026-03-23 09:29:04.423717256 -0700
--- b/debian/rules 2026-03-23 10:06:52.639135346 -0700
@@ -18,9 +18,6 @@
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES) $(BUILD_PROFILES) $(DEB_BUILD_OPTIONS)),)
CMAKE_FLAGS += -DSOL2_DOCS=ON
-ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES) $(BUILD_PROFILES) $(DEB_BUILD_OPTIONS)),)
-CMAKE_FLAGS += -DSOL2_EXAMPLES=ON
-endif
endif
override_dh_auto_configure:
--- a/debian/sol2-dev.examples 1969-12-31 16:00:00.000000000 -0800
--- b/debian/sol2-dev.examples 2026-03-23 10:07:21.001506241 -0700
@@ -0,0 +1 @@
+examples/source/*.cpp
More information about the Reproducible-bugs
mailing list