diff options
author | Martin Hundebøll <martin@geanix.com> | 2018-11-15 10:12:49 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-16 17:01:05 +0000 |
commit | bade7cc344c2f0e9316f973c34e9c9dfcbdbe32d (patch) | |
tree | 14be281279b8cba5c880175f18ded3d8c4cf8062 | |
parent | 5f4fe91cb6c21cd3ecd0b68d1c6b46a9530c7570 (diff) | |
download | openembedded-core-bade7cc344c2f0e9316f973c34e9c9dfcbdbe32d.tar.gz openembedded-core-bade7cc344c2f0e9316f973c34e9c9dfcbdbe32d.tar.bz2 openembedded-core-bade7cc344c2f0e9316f973c34e9c9dfcbdbe32d.zip |
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`.
Signed-off-by: Martin Hundebøll <martin@geanix.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/busybox/busybox.inc | 3 |
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) |