Source: onboard Version: 1.1.2-1 Severity: wishlist Tags: patch User: [email protected] Usertags: randomness X-Debbugs-Cc: [email protected]
Hi! While working on the "reproducible builds" effort [1], we have noticed that onboard could not be built reproducibly. It links against libraries in a random order. The attached patch fixes this by sorting the list of items parsed from pkg-config. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/0002-reproducible-build.patch b/debian/patches/0002-reproducible-build.patch
new file mode 100644
index 0000000..0ad3ba9
--- /dev/null
+++ b/debian/patches/0002-reproducible-build.patch
@@ -0,0 +1,13 @@
+Index: onboard-1.1.2/setup.py
+===================================================================
+--- onboard-1.1.2.orig/setup.py
++++ onboard-1.1.2/setup.py
+@@ -72,7 +72,7 @@ def pkgconfig(*packages, **kw):
+ else:
+ kw.setdefault('extra_link_args', []).append(token)
+ for k, v in kw.items():
+- kw[k] = list(set(v))
++ kw[k] = sorted(list(set(v)))
+
+ return kw
+
diff --git a/debian/patches/series b/debian/patches/series
index 7c0331d..ce04c37 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0001_make-desktop-files-appropriate-for-Debian.patch
+0002-reproducible-build.patch
signature.asc
Description: PGP signature

