aoetool: make builds reproducible
PATCH 1/1 aoetool: make builds reproducible
Strip host path infomation out of binaries by not suppressing default CFLAGS.
--- .../aoetools/aoetools/reproducible-build.patch | 12 ++++++++++++ .../recipes-support/aoetools/aoetools_36.bb | 1 + 2 files changed, 13 insertions(+) create mode 100644 meta-networking/recipes-support/aoetools/aoetools/reproducible-build.patch
meta-networking/recipes-support/aoetools/aoetools/reproducible-build.patch new file +12 -0
@@ -0,0 +1,12 @@ +--- a/Makefile ++++ b/Makefile +@@ -40,7 +40,8 @@ NPERSHELF=16 + CONF_SCRIPTS = aoe-discover aoe-interfaces aoe-mkshelf aoe-revalidate aoe-flush aoe-stat + PROGS = aoeping aoecfg aoe-sancheck + COMMANDS := ${CONF_SCRIPTS} aoe-mkdevs aoe-version coraid-update ${PROGS} +-CFLAGS = -Wall -O -g ++# We could still override this on the command line. ++CFLAGS += -Wall -O -g + SANCHECKLIBS = -lpthread + + AOE_PING_OBJ = aoeping.o linux.o
meta-networking/recipes-support/aoetools/aoetools_36.bb +1 -0
@@ -13,6 +13,7 @@ RRECOMMENDS_${PN} = "kernel-module-aoe" SRC_URI = "http://sourceforge.net/projects/${BPN}/files/${BPN}/${BPN}-${PV}.tar.gz \ file://aoe-stat-no-bashism.patch \ file://makefile-add-ldflags.patch \ + file://reproducible-build.patch \ " SRC_URI[md5sum] = "bff30daa988a65f69d4448ce4726a6db" SRC_URI[sha256sum] = "fb5e2cd0de7644cc1ec04ee3aeb43211cf7445a0c19e13d6b3ed5a8fbdf215ff"
Signature · 1 line
2.24.1
Quoted 17 lines · Joe Slater
Strip host path infomation out of binaries by not suppressing default CFLAGS.
Signed-off-by Joe Slater <[email protected]>--- .../aoetools/aoetools/reproducible-build.patch | 12 ++++++++++++ .../recipes-support/aoetools/aoetools_36.bb | 1 + 2 files changed, 13 insertions(+) create mode 100644 meta-networking/recipes-support/aoetools/aoetools/reproducible-build.patchmeta-networking/recipes-support/aoetools/aoetools/reproducible-build.patch new file +0
-0
meta-networking/recipes-support/aoetools/aoetools/reproducible-build.patch line 9
Quoted 9 lines
meta-networking/recipes-support/aoetools/aoetools/reproducible-build.patch new file +9
-0@@ -0,0 +1,12 @@ +--- a/Makefile ++++ b/Makefile +@@ -40,7 +40,8 @@ NPERSHELF=16 + CONF_SCRIPTS = aoe-discover aoe-interfaces aoe-mkshelf aoe-revalidate aoe-flush aoe-stat + PROGS = aoeping aoecfg aoe-sancheck + COMMANDS := ${CONF_SCRIPTS} aoe-mkdevs aoe-version coraid-update ${PROGS} +-CFLAGS = -Wall -O -g ++# We could still override this on the command line. ++CFLAGS += -Wall -O -g
Perhaps use ?= here, since -O will override the default optimization that bitbake will pass in env
Quoted 19 lines
meta-networking/recipes-support/aoetools/aoetools/reproducible-build.patch new file +3
-0+ SANCHECKLIBS = -lpthread + + AOE_PING_OBJ = aoeping.o linux.ometa-networking/recipes-support/aoetools/aoetools_36.bb +1
-1@@ -13,6 +13,7 @@ RRECOMMENDS_${PN} = "kernel-module-aoe" SRC_URI = "http://sourceforge.net/projects/${BPN}/files/${BPN}/${BPN}-${PV}.tar.gz \ file://aoe-stat-no-bashism.patch \ file://makefile-add-ldflags.patch \ + file://reproducible-build.patch \ " SRC_URI[md5sum] = "bff30daa988a65f69d4448ce4726a6db" SRC_URI[sha256sum] = "fb5e2cd0de7644cc1ec04ee3aeb43211cf7445a0c19e13d6b3ed5a8fbdf215ff" --2.24.1
Fine with me, but I thought there could be some reason they REALLY want -O. Assuming it builds, I'll send a V2
Joe
-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Thursday, August 13, 2020 3:25 PM
To: Slater, Joseph <[email protected]>
Cc: openembeded-devel <[email protected]>; MacLeod, Randy <[email protected]>
Subject: Re: [oe] [meta-networking][PATCH 1/1] aoetool: make builds reproducible
Quoted 24 lines · Joe Slater
Strip host path infomation out of binaries by not suppressing default CFLAGS.
Signed-off-by Joe Slater <[email protected]>--- .../aoetools/aoetools/reproducible-build.patch | 12 ++++++++++++ .../recipes-support/aoetools/aoetools_36.bb | 1 + 2 files changed, 13 insertions(+) create mode 100644meta-networking/recipes-support/aoetools/aoetools/reproducible-build.p atch
(quoted diff) +0
-0a/meta-networking/recipes-support/aoetools/aoetools/reproducible-build .patch b/meta-networking/recipes-support/aoetools/aoetools/reproducible-build .patch
new file mode 100644
index 000000000..4939ab25cmeta-networking/recipes-support/aoetools/aoetools/reproducible-b new file +1
-0+++ uild.patch
meta-networking/recipes-support/aoetools/aoetools/reproducible-b line 9
Quoted 9 lines
meta-networking/recipes-support/aoetools/aoetools/reproducible-b new file +9
-0@@ -0,0 +1,12 @@ +--- a/Makefile ++++ b/Makefile +@@ -40,7 +40,8 @@ NPERSHELF=16 + CONF_SCRIPTS = aoe-discover aoe-interfaces aoe-mkshelf +aoe-revalidate aoe-flush aoe-stat PROGS = aoeping aoecfg +aoe-sancheck COMMANDS := ${CONF_SCRIPTS} aoe-mkdevs aoe-version +coraid-update ${PROGS} -CFLAGS = -Wall -O -g ++# We could still override this on the command line. ++CFLAGS += -Wall -O -g
Perhaps use ?= here, since -O will override the default optimization that bitbake will pass in env
Quoted 20 lines
meta-networking/recipes-support/aoetools/aoetools/reproducible-b new file +3
-0+ SANCHECKLIBS = -lpthread + + AOE_PING_OBJ = aoeping.o linux.ometa-networking/recipes-support/aoetools/aoetools_36.bb +1
-1@@ -13,6 +13,7 @@ RRECOMMENDS_${PN} = "kernel-module-aoe" SRC_URI = "http://sourceforge.net/projects/${BPN}/files/${BPN}/${BPN}-${PV}.tar.gz \ file://aoe-stat-no-bashism.patch \ file://makefile-add-ldflags.patch \ + file://reproducible-build.patch \ " SRC_URI[md5sum] = "bff30daa988a65f69d4448ce4726a6db" SRC_URI[sha256sum] = "fb5e2cd0de7644cc1ec04ee3aeb43211cf7445a0c19e13d6b3ed5a8fbdf215ff" --2.24.1
Quoted 3 lines · Joseph
Fine with me, but I thought there could be some reason they REALLY want -O. Assuming it builds, I'll send a V2
possible but I doubt it. its perhaps worth asking upstream.
Quoted 66 lines
Joe
-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Thursday, August 13, 2020 3:25 PM
To: Slater, Joseph <[email protected]>
Cc: openembeded-devel <[email protected]>; MacLeod, Randy <[email protected]>
Subject: Re: [oe] [meta-networking][PATCH 1/1] aoetool: make builds reproducibleQuoted 24 lines · Joe Slater
Strip host path infomation out of binaries by not suppressing default CFLAGS.
Signed-off-by Joe Slater <[email protected]>--- .../aoetools/aoetools/reproducible-build.patch | 12 ++++++++++++ .../recipes-support/aoetools/aoetools_36.bb | 1 + 2 files changed, 13 insertions(+) create mode 100644meta-networking/recipes-support/aoetools/aoetools/reproducible-build.p atch
diff --git a/meta-networking/recipes-support/aoetools/aoetools/reproducible-build .patch b/meta-networking/recipes-support/aoetools/aoetools/reproducible-build .patch
new file mode 100644
index 000000000..4939ab25cmeta-networking/recipes-support/aoetools/aoetools/reproducible-b new file +1
-0+++ uild.patchmeta-networking/recipes-support/aoetools/aoetools/reproducible-b line 9
Quoted 9 lines
meta-networking/recipes-support/aoetools/aoetools/reproducible-b new file +9
-0@@ -0,0 +1,12 @@ +--- a/Makefile ++++ b/Makefile +@@ -40,7 +40,8 @@ NPERSHELF=16 + CONF_SCRIPTS = aoe-discover aoe-interfaces aoe-mkshelf +aoe-revalidate aoe-flush aoe-stat PROGS = aoeping aoecfg +aoe-sancheck COMMANDS := ${CONF_SCRIPTS} aoe-mkdevs aoe-version +coraid-update ${PROGS} -CFLAGS = -Wall -O -g ++# We could still override this on the command line. ++CFLAGS += -Wall -O -gPerhaps use ?= here, since -O will override the default optimization that bitbake will pass in env
Quoted 20 lines
meta-networking/recipes-support/aoetools/aoetools/reproducible-b new file +3
-0+ SANCHECKLIBS = -lpthread + + AOE_PING_OBJ = aoeping.o linux.ometa-networking/recipes-support/aoetools/aoetools_36.bb +1
-1@@ -13,6 +13,7 @@ RRECOMMENDS_${PN} = "kernel-module-aoe" SRC_URI = "http://sourceforge.net/projects/${BPN}/files/${BPN}/${BPN}-${PV}.tar.gz \ file://aoe-stat-no-bashism.patch \ file://makefile-add-ldflags.patch \ + file://reproducible-build.patch \ " SRC_URI[md5sum] = "bff30daa988a65f69d4448ce4726a6db" SRC_URI[sha256sum] = "fb5e2cd0de7644cc1ec04ee3aeb43211cf7445a0c19e13d6b3ed5a8fbdf215ff" --2.24.1