[arch-commits] Commit in traceroute/trunk (PKGBUILD reproducible-build.patch)
Anatol Pomozov
anatolik at archlinux.org
Thu Nov 21 08:48:57 UTC 2019
Date: Thursday, November 21, 2019 @ 08:48:56
Author: anatolik
Revision: 369533
Make the build reproducible
Sort source files so it makes the order deterministic
Added:
traceroute/trunk/reproducible-build.patch
Modified:
traceroute/trunk/PKGBUILD
--------------------------+
PKGBUILD | 13 ++++++++++---
reproducible-build.patch | 13 +++++++++++++
2 files changed, 23 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-21 08:18:50 UTC (rev 369532)
+++ PKGBUILD 2019-11-21 08:48:56 UTC (rev 369533)
@@ -2,15 +2,22 @@
pkgname=traceroute
pkgver=2.1.0
-pkgrel=3
+pkgrel=4
pkgdesc="Tracks the route taken by packets over an IP network"
arch=('x86_64')
url="http://traceroute.sourceforge.net/"
license=('GPL2')
depends=('glibc')
-source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz)
-sha1sums=('bc5c6c8022187511be5665b3818d919be5987dcc')
+source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
+ reproducible-build.patch)
+sha1sums=('bc5c6c8022187511be5665b3818d919be5987dcc'
+ 'ca5fc57ff373b26e9d2850ffd380f06618759eef')
+patch() {
+ cd ${pkgname}-${pkgver}
+ patch -p1 < ../reproducible-build.patch
+}
+
build() {
cd ${pkgname}-${pkgver}
make CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS"
Added: reproducible-build.patch
===================================================================
--- reproducible-build.patch (rev 0)
+++ reproducible-build.patch 2019-11-21 08:48:56 UTC (rev 369533)
@@ -0,0 +1,13 @@
+diff --git a/Make.rules b/Make.rules
+index ce5b033..49cad28 100644
+--- a/Make.rules
++++ b/Make.rules
+@@ -166,7 +166,7 @@ endif
+ endif
+ endif
+
+-sources = $(wildcard *.c)
++sources = $(sort $(wildcard *.c))
+ OBJS = $(sources:.c=.$(obj))
+
+
More information about the arch-commits
mailing list