summaryrefslogtreecommitdiffstats
path: root/package/ca-certificates
diff options
context:
space:
mode:
authorMartin Bark <martin@barkynet.com>2018-06-16 23:06:01 +0100
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2018-10-21 14:36:32 +0100
commitc61b49e5b5c83237c8895d8caf76a9c448c41241 (patch)
tree1330ce03cb40674c07754341440b088978fb9488 /package/ca-certificates
parent42b10634c628918c753bfb1aad4f950fa5d41299 (diff)
downloadbuildroot-c61b49e5b5c83237c8895d8caf76a9c448c41241.tar.gz
buildroot-c61b49e5b5c83237c8895d8caf76a9c448c41241.zip
package/ca-certificates: create ca-certificates.crt reproducibly
Sort the certificates into alphabetical order so the contents of ca-certificates.crt can be built reproducibly. Note: The certificates are sorted uppercase then lowercase filenames so the contents of ca-certificates.crt matches the source debian package. Signed-off-by: Martin Bark <martin@barkynet.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Diffstat (limited to 'package/ca-certificates')
-rw-r--r--package/ca-certificates/ca-certificates.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/ca-certificates/ca-certificates.mk b/package/ca-certificates/ca-certificates.mk
index 1df9543e03..5c259aa3ab 100644
--- a/package/ca-certificates/ca-certificates.mk
+++ b/package/ca-certificates/ca-certificates.mk
@@ -31,7 +31,7 @@ define CA_CERTIFICATES_INSTALL_TARGET_CMDS
# Create symlinks to certificates under /etc/ssl/certs
# and generate the bundle
cd $(TARGET_DIR) ;\
- for i in `find usr/share/ca-certificates -name "*.crt"` ; do \
+ for i in `find usr/share/ca-certificates -name "*.crt" | LC_COLLATE=C sort` ; do \
ln -sf ../../../$$i etc/ssl/certs/`basename $${i} .crt`.pem ;\
cat $$i ;\
done >$(@D)/ca-certificates.crt
OpenPOWER on IntegriCloud