Просмотр исходного кода

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>
(cherry picked from commit c61b49e5b5c83237c8895d8caf76a9c448c41241)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Martin Bark 7 лет назад
Родитель
Сommit
1a33cfffc4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      package/ca-certificates/ca-certificates.mk

+ 1 - 1
package/ca-certificates/ca-certificates.mk

@@ -31,7 +31,7 @@ define CA_CERTIFICATES_INSTALL_TARGET_CMDS
 	# Create symlinks to certificates under /etc/ssl/certs
 	# Create symlinks to certificates under /etc/ssl/certs
 	# and generate the bundle
 	# and generate the bundle
 	cd $(TARGET_DIR) ;\
 	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 ;\
 		ln -sf ../../../$$i etc/ssl/certs/`basename $${i} .crt`.pem ;\
 		cat $$i ;\
 		cat $$i ;\
 	done >$(@D)/ca-certificates.crt
 	done >$(@D)/ca-certificates.crt