~alpine/aports

main/binutils: Enable deterministic archives. v1 PROPOSED

Przemyslaw Pawelczyk <przemoc@zoho.com>
Przemyslaw Pawelczyk: 1
 main/binutils: Enable deterministic archives.

 1 files changed, 2 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/2349/mbox | git am -3
Learn more about email & git

[alpine-aports] [PATCH] main/binutils: Enable deterministic archives. Export this patch

Przemyslaw Pawelczyk <przemoc@zoho.com>
"GNU ar and other tools from binutils have a deterministic mode which
will use zero for UIDs, GIDs, timestamps, and use consistent file modes
for all files.  It can be made the default by passing the
--enable-deterministic-archives option to ./configure."

Quoted from:
https://reproducible-builds.org/docs/archives/
---
 main/binutils/APKBUILD | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/main/binutils/APKBUILD b/main/binutils/APKBUILD
index cda0c35442f0..8bacc931c21f 100644
--- a/main/binutils/APKBUILD
+++ b/main/binutils/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=binutils
pkgver=2.27
pkgrel=0
pkgrel=1
pkgdesc="Tools necessary to build programs"
url="http://www.gnu.org/software/binutils/"
depends=""
@@ -51,6 +51,7 @@ build() {
		--enable-64-bit-bfd \
		--enable-plugins \
		--enable-relro \
		--enable-deterministic-archives \
		$_cross_configure \
		--disable-werror \
		--disable-nls \
-- 
2.8.3




---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Przemysław Pawełczyk <przemoc@zoho.com>
 ---- On Tue, 22 Nov 2016 23:01:02 +0100 Przemyslaw Pawelczyk <przemoc@zoho.com> wrote ---- 
 > "GNU ar and other tools from binutils have a deterministic mode which 
 > will use zero for UIDs, GIDs, timestamps, and use consistent file modes 
 > for all files.  It can be made the default by passing the 
 > --enable-deterministic-archives option to ./configure." 
 >  
 > Quoted from: 
 > https://reproducible-builds.org/docs/archives/ 

All packages providing .a files should be rebuilt after this change.
Therefore maybe it's better to apply the patch only after releasing AL 3.5?

Regards,
Przemek



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---