Skip to contentSkip to conversation

busybox: make busybox.links.{suid, nosuid} reproducible

PATCH New Martin Hundebøll 1 participant 1 message Nov 8, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/recipes-core/busybox/busybox.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-core/busybox/busybox.inc +2 -1
index 10582a7534..09433dd824 100644
@@ -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)
Signature · 1 line
2.19.1