Skip to contentSkip to conversation

ca-certificates: Fix reproducibilty and multilib issue

PATCH New Richard Purdie 1 participant 1 message Aug 29, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ca-certificates: Fix reproducibilty and multilib issue

This command was dependent on the order of files on the disk and for multilib builds could result in:

Error: Transaction check error:
file /etc/ca-certificates.conf conflicts between attempted installs of ca-certificates-20190110-r0.core2_32 and lib64-ca-certificates-20190110-r0.x86_64

Sorting the file makes things deterministic.

---
 .../recipes-support/ca-certificates/ca-certificates_20190110.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-support/ca-certificates/ca-certificates_20190110.bb +1 -1
index efd9eaa71e4..7d87da10bb5 100644
@@ -53,7 +53,7 @@ do_install () {
         echo "# Lines starting with ! will remove certificate on next update"
         echo "#"
         find ${D}${datadir}/ca-certificates -type f -name '*.crt' | \
-            sed 's,^${D}${datadir}/ca-certificates/,,'
+            sed 's,^${D}${datadir}/ca-certificates/,,' | sort
     } >${D}${sysconfdir}/ca-certificates.conf
 }
 
Signature · 1 line
2.20.1