Sort the certificates on making bundle file 68/84668/3 accepted/tizen/common/20160822.132551 accepted/tizen/ivi/20160823.041027 accepted/tizen/mobile/20160823.040922 accepted/tizen/tv/20160823.040944 accepted/tizen/wearable/20160823.041007 submit/tizen/20160822.023804
authorsangwan.kwon <sangwan.kwon@samsung.com>
Mon, 22 Aug 2016 02:22:46 +0000 (11:22 +0900)
committersangwan.kwon <sangwan.kwon@samsung.com>
Mon, 22 Aug 2016 05:13:02 +0000 (14:13 +0900)
[Problem]
 'find' will be traversing the directory tree in the order
items are stored within the directory entries.
 However, some file systems will re-order directory entries
as part of compaction operations or when the size of the entry
needs to be expanded

[Solution]
 Feed the output through an extra sorting stage.

Change-Id: I4c896caea30a26e808cc64d8bab88202c1871179

concat-cacerts.sh
packaging/ca-certificates.spec

index 5a0655f..ddb11a0 100755 (executable)
@@ -8,7 +8,7 @@ then
     rm $CRT_PATH
 fi
 
-for i in `find $SRC_PATH -maxdepth 1 -type f`
+for i in `find $SRC_PATH -maxdepth 1 -type f | sort`
 do
     openssl x509 -in $i -outform PEM >> $CRT_PATH
 done
index 01f766f..c7f4a92 100644 (file)
@@ -9,6 +9,7 @@ BuildArch:      noarch
 BuildRequires:  openssl
 BuildRequires:  pkgconfig(libtzplatform-config)
 BuildRequires:  cmake
+BuildRequires:  coreutils
 BuildRequires:  findutils
 Requires: filesystem
 Requires: security-config