diff options
Diffstat (limited to 'meta/recipes-support/ca-certificates/ca-certificates/0001-update-ca-certificates-don-t-use-Debianisms-in-run-p.patch')
-rw-r--r-- | meta/recipes-support/ca-certificates/ca-certificates/0001-update-ca-certificates-don-t-use-Debianisms-in-run-p.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-support/ca-certificates/ca-certificates/0001-update-ca-certificates-don-t-use-Debianisms-in-run-p.patch b/meta/recipes-support/ca-certificates/ca-certificates/0001-update-ca-certificates-don-t-use-Debianisms-in-run-p.patch new file mode 100644 index 0000000000..d7d487e676 --- /dev/null +++ b/meta/recipes-support/ca-certificates/ca-certificates/0001-update-ca-certificates-don-t-use-Debianisms-in-run-p.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | ca-certificates is a package from Debian, but some host distros such as Fedora | ||
2 | have a leaner run-parts provided by cron which doesn't support --verbose or the | ||
3 | -- separator between arguments and paths. | ||
4 | |||
5 | This solves errors such as | ||
6 | |||
7 | | Running hooks in [...]/rootfs/etc/ca-certificates/update.d... | ||
8 | | [...]/usr/sbin/update-ca-certificates: line 194: Not: command not found | ||
9 | |||
10 | Upstream-Status: Inappropriate | ||
11 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
12 | --- | ||
13 | sbin/update-ca-certificates | 4 +--- | ||
14 | 1 file changed, 1 insertion(+), 3 deletions(-) | ||
15 | |||
16 | diff --git a/sbin/update-ca-certificates b/sbin/update-ca-certificates | ||
17 | index fed9c25..29ecc69 100755 | ||
18 | --- a/sbin/update-ca-certificates | ||
19 | +++ b/sbin/update-ca-certificates | ||
20 | @@ -186,9 +186,7 @@ echo "$ADDED_CNT added, $REMOVED_CNT removed; done." | ||
21 | |||
22 | HOOKSDIR=$SYSROOT/etc/ca-certificates/update.d | ||
23 | echo -n "Running hooks in $HOOKSDIR...." | ||
24 | -VERBOSE_ARG= | ||
25 | -[ "$verbose" = 0 ] || VERBOSE_ARG=--verbose | ||
26 | -eval run-parts $VERBOSE_ARG --test -- $HOOKSDIR | while read hook | ||
27 | +eval run-parts --test $HOOKSDIR | while read hook | ||
28 | do | ||
29 | ( cat $ADDED | ||
30 | cat $REMOVED ) | $hook || echo E: $hook exited with code $?. | ||
31 | -- | ||
32 | 2.1.4 | ||
33 | |||