diff options
author | Sam James <sam@gentoo.org> | 2024-03-02 01:15:31 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-03-02 01:15:31 +0000 |
commit | 2d839da180554b5e76f8a5869378fcf73fcfcf64 (patch) | |
tree | e0c887fafd335fd13ac2f4885fd443715741ffc8 /app-misc/ca-certificates/files | |
parent | app-misc/ca-certificates: drop versions (diff) | |
download | gentoo-2d839da180554b5e76f8a5869378fcf73fcfcf64.tar.gz gentoo-2d839da180554b5e76f8a5869378fcf73fcfcf64.tar.bz2 gentoo-2d839da180554b5e76f8a5869378fcf73fcfcf64.zip |
app-misc/ca-certificates: add 20240203.3.98
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-misc/ca-certificates/files')
-rw-r--r-- | app-misc/ca-certificates/files/ca-certificates-20240203.3.98-update-ca-certificates-drop-pointless-dependency.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/app-misc/ca-certificates/files/ca-certificates-20240203.3.98-update-ca-certificates-drop-pointless-dependency.patch b/app-misc/ca-certificates/files/ca-certificates-20240203.3.98-update-ca-certificates-drop-pointless-dependency.patch new file mode 100644 index 000000000000..55c082595579 --- /dev/null +++ b/app-misc/ca-certificates/files/ca-certificates-20240203.3.98-update-ca-certificates-drop-pointless-dependency.patch @@ -0,0 +1,45 @@ +From c33e85bc2fe61e66e2fa5c2ab0efc4277b7cef5e Mon Sep 17 00:00:00 2001 +From: Eli Schwartz <eschwartz93@gmail.com> +Date: Mon, 29 Jan 2024 21:54:04 -0500 +Subject: [PATCH] update-ca-certificates: drop pointless dependency on external + run-parts + +This external program belongs to debianutils and hence is used +internally by the update-ca-certificates script synced from Debian. + +It has a couple utilities: +- it sorts files in a directory with LC_ALL=C +- it runs each of them in turn +- it can print them instead of running them + +Here, it's used for sorting and printing the scripts to run. They need +to each accept some stdin, so run-parts cannot actually be used for +dispatch. But this functionality works fine directly from a shell, so +the additional dependency honestly seems frivolous. In particular, this +is the only reason why all Debian systems have debianutils installed, +through openssl. (This is in contrast to Debian, where debianutils is +part of the essential system set and provides a vastly greater number of +programs than the ones Gentoo repackages.) + +It's very easy to replace with `printf %s\\n *`, so do so. Even if it +wasn't easy to replace with printf, it would be easy to replace with +`for x in *; "$x"; done` instead. +--- + image/usr/sbin/update-ca-certificates | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/image/usr/sbin/update-ca-certificates b/image/usr/sbin/update-ca-certificates +index bb5aa54..fbf1ee2 100755 +--- a/image/usr/sbin/update-ca-certificates ++++ b/image/usr/sbin/update-ca-certificates +@@ -218,8 +218,9 @@ then + echo "Running hooks in $HOOKSDIR..." + VERBOSE_ARG= + [ "$verbose" = 0 ] || VERBOSE_ARG="--verbose" +- eval run-parts "$VERBOSE_ARG" --test -- "$HOOKSDIR" | while read -r hook ++ ( LC_ALL=C; printf %s\\n "$HOOKSDIR"/* ) | while read hook + do ++ [ -f "$hook" ] || continue + ( cat "$ADDED" + cat "$REMOVED" ) | "$hook" || echo "E: $hook exited with code $?." + done |