Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Anders Heimer <anders.heimer@est.tech>
To: openembedded-core@lists.openembedded.org
Cc: Anders Heimer <anders.heimer@est.tech>,
	Jaipaul Cheernam <jaipaul.cheernam@est.tech>
Subject: [PATCH] ca-certificates: upgrade 20261123 -> 20261130
Date: Fri,  4 Dec 2026 15:37:16 +0100	[thread overview]
Message-ID: <20261204143716.3629266-1-anders.heimer@est.tech> (raw)

Upstream added --fresh to each hook call during a fresh update.
Refresh the run-parts patch to keep the invocation compatible with
busybox.

Source: debian/changelog
https://metadata.ftp-master.debian.org/changelogs/main/c/ca-certificates/ca-certificates_20261130_changelog

ca-certificates (20261130) unstable; urgency=medium

* update-ca-certificates: Pass --fresh option to the hook scripts.
  (Closes: #866670)
* Add Breaks against ca-certificates-java (<< 20210218) that didn't use
  triggers in its jks-keystore hook script.
* Do not skip hooks during postinst configure otherwise the certificate
  updates will be lost.  (Closes: #1069251)
* Always run update-ca-certificates --fresh on configure, so hook
  consumers (e.g. the ca-certificates-java keystore) that missed earlier
  updates get resynced.

Reviewed-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
Signed-off-by: Anders Heimer <anders.heimer@est.tech>
---
 ...certificates-don-t-use-Debianisms-in-run-p.patch | 13 +++++++++----
 ...ates_20261123.bb => ca-certificates_20261130.bb} |  2 +-
 2 files changed, 10 insertions(+), 5 deletions(-)
 rename meta/recipes-support/ca-certificates/{ca-certificates_20261123.bb => ca-certificates_20261130.bb} (97%)

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
index 23335fbf59..b71f676085 100644
--- 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
@@ -1,4 +1,4 @@
-From c8d73c5ebc095a9f5d06d841461dc1701d0cf4c5 Mon Sep 17 00:00:00 2001
+From f00708940a2348d4088e59e1caa4f292e5b07d21 Mon Sep 17 00:00:00 2001
 From: Ross Burton <ross.burton@intel.com>
 Date: Mon, 6 Jul 2015 15:19:41 +0100
 Subject: [PATCH] ca-certificates: remove Debianism in run-parts invocation
@@ -22,17 +22,22 @@ Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com>
  1 file changed, 1 insertion(+), 3 deletions(-)
 
 diff --git a/sbin/update-ca-certificates b/sbin/update-ca-certificates
-index 91d8024..1e737b9 100755
+index 16daace..5016bfa 100755
 --- a/sbin/update-ca-certificates
 +++ b/sbin/update-ca-certificates
-@@ -210,9 +210,7 @@ if [ -d "$HOOKSDIR" ]
+@@ -211,14 +211,12 @@ if [ -d "$HOOKSDIR" ]
  then
  
    echo "Running hooks in $HOOKSDIR..."
 -  VERBOSE_ARG=
 -  [ "$verbose" = 0 ] || VERBOSE_ARG="--verbose"
+   FRESH_ARG=
+   [ "$fresh" = 0 ] || FRESH_ARG="--fresh"
+   # removed certificates must come after added certificates because the -d
+   # option first adds *all* certificates and afterwards removes again
+   # those explicitly disabled in ca-certificates.conf
 -  eval run-parts "$VERBOSE_ARG" --test -- "$HOOKSDIR" | while read -r hook
 +  eval run-parts --test "$HOOKSDIR" | while read -r hook
    do
      ( cat "$ADDED"
-       cat "$REMOVED" ) | "$hook" || echo "E: $hook exited with code $?."
+       cat "$REMOVED" ) | "$hook" $FRESH_ARG || echo "E: $hook exited with code $?."
diff --git a/meta/recipes-support/ca-certificates/ca-certificates_20261123.bb b/meta/recipes-support/ca-certificates/ca-certificates_20261130.bb
similarity index 97%
rename from meta/recipes-support/ca-certificates/ca-certificates_20261123.bb
rename to meta/recipes-support/ca-certificates/ca-certificates_20261130.bb
index fbbc504274..079d4d833b 100644
--- a/meta/recipes-support/ca-certificates/ca-certificates_20261123.bb
+++ b/meta/recipes-support/ca-certificates/ca-certificates_20261130.bb
@@ -14,7 +14,7 @@ DEPENDS:class-nativesdk = "openssl-native"
 # Need rehash from openssl and run-parts from debianutils
 PACKAGE_WRITE_DEPS += "openssl-native debianutils-native"
 
-SRC_URI[sha256sum] = "ca7c16b757f342d34248874edf40e15a85d6dcf221b7e2ef2fe026e4fa4c6a51"
+SRC_URI[sha256sum] = "d469c8dd18e7a86ea8eb2a6ec15b7febdcc7aaf97793dcb63b4ceecb3e9a6e20"
 SRC_URI = "${DEBIAN_MIRROR}/main/c/ca-certificates/${BPN}_${PV}.tar.xz \
            file://0001-update-ca-certificates-don-t-use-Debianisms-in-run-p.patch \
            file://0003-update-ca-certificates-use-relative-symlinks-from-ET.patch \

                 reply	other threads:[~2026-12-04 14:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204143716.3629266-1-anders.heimer@est.tech \
    --to=anders.heimer@est.tech \
    --cc=jaipaul.cheernam@est.tech \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox