]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
ca-certificates: Fix reproducibilty and multilib issue obi/pyro
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Aug 2019 11:10:16 +0000 (12:10 +0100)
committerAndreas Oberritter <obi@opendreambox.org>
Mon, 1 Jun 2020 13:21:41 +0000 (15:21 +0200)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c8f329fc562c9eecdcc1cb10d2c7661f44110fb4)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
meta/recipes-support/ca-certificates/ca-certificates_20190110.bb

index b9f57900c8e365e095ec117ffc48b68037cdd4de..775d69e2ee0972c1b1879d7af5acc46ad76d4c3d 100644 (file)
@@ -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
 }