summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox
diff options
context:
space:
mode:
authorMartin Hundebøll <martin@geanix.com>2018-11-08 13:07:27 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-14 11:14:39 +0000
commit3689c735b5680bd90ae81ed89d44528d7b5e2ee6 (patch)
tree210cb48d9ea9e999d97f5f52e42ef94f9a78a818 /meta/recipes-core/busybox
parentf3b1155f2bec64ae601306ddac730d5844f4d468 (diff)
downloadopenembedded-core-contrib-3689c735b5680bd90ae81ed89d44528d7b5e2ee6.tar.gz
busybox: make busybox.links.{suid, nosuid} reproducible
The busybox.link.* files are generated from autoconf.h and applets.h, which are both auto-generated by the build system. The contents of the two files might be in different order, and so the link files are not reproducble as is. Fix this by sorting the lists using `sort`. (From OE-Core rev: e2450857d898238b0b719a5400e2340c65c80ada) Signed-off-by: Martin Hundebøll <martin@geanix.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/busybox')
-rw-r--r--meta/recipes-core/busybox/busybox.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index 10582a7534..09433dd824 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -184,7 +184,8 @@ do_compile() {
oe_runmake busybox_unstripped
mv busybox_unstripped busybox.$s
oe_runmake busybox.links
- mv busybox.links busybox.links.$s
+ sort busybox.links > busybox.links.$s
+ rm busybox.links
done
# hard fail if sh is being linked to the suid busybox (detects bug 10346)