Source: yaml-cpp
Version: 0.5.2-3
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: fileordering
X-Debbugs-Cc: [email protected]
Hi!
While working on the "reproducible builds" effort [1], we have noticed
that yaml-cpp could not be built reproducibly.
A list of source files in CMakeLists.txt is unsorted.
The attached patch fixes this.
Regards,
Reiner
[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..e718fdf
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,10 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -100,6 +100,7 @@
+ ${contrib_private_headers}
+ )
+ add_sources(${library_sources})
++list(SORT library_sources)
+
+ if(VERBOSE)
+ message(STATUS "sources: ${sources}")
diff --git a/debian/patches/series b/debian/patches/series
index 099bc08..17b37b4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
pkgconfig.patch
install-cmake-dev-files.patch
+reproducible-build.patch