diff options
author | Slater, Joseph <joe.slater@windriver.com> | 2020-08-13 12:40:15 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-08-13 22:37:48 -0700 |
commit | 98991b2e0fae9d07b17c504a7dd4a9f32ad07a0b (patch) | |
tree | 0da1c07d023251acc6769fa25c97fce09e9f8c48 | |
parent | 29de5fbc5e0f61033f9a4f145b3494edc7d3c58c (diff) | |
download | meta-openembedded-98991b2e0fae9d07b17c504a7dd4a9f32ad07a0b.tar.gz |
aoetool: make builds reproducible
Strip host path infomation out of binaries by not suppressing
default CFLAGS.
Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-networking/recipes-support/aoetools/aoetools/reproducible-build.patch | 12 | ||||
-rw-r--r-- | meta-networking/recipes-support/aoetools/aoetools_36.bb | 1 |
2 files changed, 13 insertions, 0 deletions
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..4939ab25c --- /dev/null +++ b/meta-networking/recipes-support/aoetools/aoetools/reproducible-build.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | --- a/Makefile | ||
2 | +++ b/Makefile | ||
3 | @@ -40,7 +40,8 @@ NPERSHELF=16 | ||
4 | CONF_SCRIPTS = aoe-discover aoe-interfaces aoe-mkshelf aoe-revalidate aoe-flush aoe-stat | ||
5 | PROGS = aoeping aoecfg aoe-sancheck | ||
6 | COMMANDS := ${CONF_SCRIPTS} aoe-mkdevs aoe-version coraid-update ${PROGS} | ||
7 | -CFLAGS = -Wall -O -g | ||
8 | +# We could still override this on the command line. | ||
9 | +CFLAGS += -Wall -O -g | ||
10 | SANCHECKLIBS = -lpthread | ||
11 | |||
12 | AOE_PING_OBJ = aoeping.o linux.o | ||
diff --git a/meta-networking/recipes-support/aoetools/aoetools_36.bb b/meta-networking/recipes-support/aoetools/aoetools_36.bb index 9b73b442a..60f3dc9b2 100644 --- a/meta-networking/recipes-support/aoetools/aoetools_36.bb +++ b/meta-networking/recipes-support/aoetools/aoetools_36.bb | |||
@@ -13,6 +13,7 @@ RRECOMMENDS_${PN} = "kernel-module-aoe" | |||
13 | SRC_URI = "http://sourceforge.net/projects/${BPN}/files/${BPN}/${BPN}-${PV}.tar.gz \ | 13 | SRC_URI = "http://sourceforge.net/projects/${BPN}/files/${BPN}/${BPN}-${PV}.tar.gz \ |
14 | file://aoe-stat-no-bashism.patch \ | 14 | file://aoe-stat-no-bashism.patch \ |
15 | file://makefile-add-ldflags.patch \ | 15 | file://makefile-add-ldflags.patch \ |
16 | file://reproducible-build.patch \ | ||
16 | " | 17 | " |
17 | SRC_URI[md5sum] = "bff30daa988a65f69d4448ce4726a6db" | 18 | SRC_URI[md5sum] = "bff30daa988a65f69d4448ce4726a6db" |
18 | SRC_URI[sha256sum] = "fb5e2cd0de7644cc1ec04ee3aeb43211cf7445a0c19e13d6b3ed5a8fbdf215ff" | 19 | SRC_URI[sha256sum] = "fb5e2cd0de7644cc1ec04ee3aeb43211cf7445a0c19e13d6b3ed5a8fbdf215ff" |