ca-certificates: fix busybox error in post-upgrade #3
|
@ -0,0 +1,45 @@
|
|||
From c32d2e7154e242402f086b126dc439507813f173 Mon Sep 17 00:00:00 2001
|
||||
From: Oliver Smith <osmith@sysmocom.de>
|
||||
Date: Tue, 16 Nov 2021 08:38:47 +0100
|
||||
Subject: [PATCH] Revert "update-ca-certificates: Replace deprecated mktemp -t
|
||||
with mktemp --tmpdir"
|
||||
|
||||
This reverts commit 66951d3b45ffe24d182d36ec02d3ec7aee30ece7.
|
||||
|
||||
The busybox version we use doesn't support --tmpdir. Fix for:
|
||||
|
||||
root@sysmocom-alix:~# opkg upgrade
|
||||
Not selecting udev 232 as installing it would break existing dependencies.
|
||||
Configuring ca-certificates.
|
||||
mktemp: unrecognized option '--tmpdir'
|
||||
BusyBox v1.24.1 (2019-08-13 07:53:38 UTC) multi-call binary.
|
||||
|
||||
Usage: mktemp [-dt] [-p DIR] [TEMPLATE]
|
||||
Collected errors:
|
||||
* pkg_run_script: package "ca-certificates" postinst script returned status 1.
|
||||
* opkg_configure: ca-certificates.postinst returned 1.
|
||||
root@sysmocom-alix:~#
|
||||
|
||||
Related: SYS#5283
|
||||
---
|
||||
sbin/update-ca-certificates | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/sbin/update-ca-certificates b/sbin/update-ca-certificates
|
||||
index 9a876d7..40a3932 100755
|
||||
--- a/sbin/update-ca-certificates
|
||||
+++ b/sbin/update-ca-certificates
|
||||
@@ -81,8 +81,8 @@ trap cleanup 0
|
||||
# Helper files. (Some of them are not simple arrays because we spawn
|
||||
# subshells later on.)
|
||||
TEMPBUNDLE="${ETCCERTSDIR}/${CERTBUNDLE}.new"
|
||||
-ADDED="$(mktemp --tmpdir "ca-certificates.tmp.XXXXXX")"
|
||||
-REMOVED="$(mktemp --tmpdir "ca-certificates.tmp.XXXXXX")"
|
||||
+ADDED="$(mktemp -t "ca-certificates.tmp.XXXXXX")"
|
||||
+REMOVED="$(mktemp -t "ca-certificates.tmp.XXXXXX")"
|
||||
|
||||
# Adds a certificate to the list of trusted ones. This includes a symlink
|
||||
# in /etc/ssl/certs to the certificate file and its inclusion into the
|
||||
--
|
||||
2.30.2
|
||||
|
|
@ -6,6 +6,7 @@ HOMEPAGE = "http://packages.debian.org/sid/ca-certificates"
|
|||
SECTION = "misc"
|
||||
LICENSE = "GPL-2.0+ & MPL-2.0"
|
||||
LIC_FILES_CHKSUM = "file://debian/copyright;md5=ae5b36b514e3f12ce1aa8e2ee67f3d7e"
|
||||
PR="r1"
|
||||
|
||||
# This is needed to ensure we can run the postinst at image creation time
|
||||
DEPENDS = ""
|
||||
|
@ -22,6 +23,7 @@ SRC_URI = "git://salsa.debian.org/debian/ca-certificates.git;protocol=https \
|
|||
file://default-sysroot.patch \
|
||||
file://0003-update-ca-certificates-use-relative-symlinks-from-ET.patch \
|
||||
file://0001-Revert-mozilla-certdata2pem.py-print-a-warning-for-e.patch \
|
||||
file://0004-Revert-update-ca-certificates-Replace-deprecated-mkt.patch \
|
||||
"
|
||||
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+)"
|
||||
|
||||
|
|
Loading…
Reference in New Issue