Source: media-player-info Version: 22-2 Severity: wishlist Tags: patch User: reproducible-builds@lists.alioth.debian.org Usertags: fileordering X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org
Hi! While working on the "reproducible builds" effort [1], we have noticed that media-player-info could not be built reproducibly. It searches for .mpi files without sorting them. This leads to an unsorted order in .hwdb and .rules files. 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..b742eca --- /dev/null +++ b/debian/patches/reproducible_build.patch @@ -0,0 +1,12 @@ +Author: Reiner Herrmann <rei...@reiner-h.de> +Description: Sort list of mpi files to get reproducible rules/hwdb files + +--- a/media-players/Makefile.am ++++ b/media-players/Makefile.am +@@ -1,5 +1,5 @@ + mpidir = $(datadir)/media-player-info +-dist_mpi_DATA = $(shell find $(top_srcdir)/media-players -name "*.mpi" -printf "%p\n") ++dist_mpi_DATA = $(shell find $(top_srcdir)/media-players -name "*.mpi" -printf "%p\n" | LC_ALL=C sort) + + udevrulesdir = $(UDEV_DIR)/rules.d + nodist_udevrules_DATA = 40-usb-media-players.rules diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..b2026fe --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +reproducible_build.patch
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds