From 99584a0cf3ba9b981cce42ac538af1272195d2c0 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 24 Sep 2018 15:22:27 +0000 Subject: main/ca-certificates: upgrade to 20180924 --- .../0001-update-ca-fix-build-with-newer-musl.patch | 29 ++++++++++++++++++++++ main/ca-certificates/APKBUILD | 10 +++++--- 2 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 main/ca-certificates/0001-update-ca-fix-build-with-newer-musl.patch (limited to 'main/ca-certificates') diff --git a/main/ca-certificates/0001-update-ca-fix-build-with-newer-musl.patch b/main/ca-certificates/0001-update-ca-fix-build-with-newer-musl.patch new file mode 100644 index 0000000000..9f03d5053a --- /dev/null +++ b/main/ca-certificates/0001-update-ca-fix-build-with-newer-musl.patch @@ -0,0 +1,29 @@ +From 33042b0af9d4139959a1b9a7179dd3843ea00f0d Mon Sep 17 00:00:00 2001 +From: Natanael Copa +Date: Mon, 24 Sep 2018 17:18:26 +0200 +Subject: [PATCH] update-ca: fix build with newer musl + +musl removed SYMLINK_MAX define[1]. Use PATH_MAX instead for symlink +target. + +[1]: http://git.musl-libc.org/cgit/musl/commit/?id=767f7a1091af3a3dcee2f7a49d0713359a81961c +--- + update-ca.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/update-ca.c b/update-ca.c +index 641fd64..7bb4f1b 100644 +--- a/update-ca.c ++++ b/update-ca.c +@@ -196,7 +196,7 @@ static void proc_localglobaldir(const char *fullpath, struct hash *h, int tmpfil + + static void proc_etccertsdir(const char* fullpath, struct hash* h, int tmpfile_fd) + { +- char linktarget[SYMLINK_MAX]; ++ char linktarget[PATH_MAX]; + ssize_t linklen; + + linklen = readlink(fullpath, linktarget, sizeof(linktarget)-1); +-- +2.19.0 + diff --git a/main/ca-certificates/APKBUILD b/main/ca-certificates/APKBUILD index d51025abb9..53196fbd5c 100644 --- a/main/ca-certificates/APKBUILD +++ b/main/ca-certificates/APKBUILD @@ -2,8 +2,8 @@ # Contributor: William Pitcock # Maintainer: Natanael Copa pkgname=ca-certificates -pkgver=20171114 -pkgrel=3 +pkgver=20180924 +pkgrel=0 pkgdesc="Common CA certificates PEM files" url="https://www.mozilla.org/en-US/about/governance/policies/security-group/certs/" arch="all" @@ -16,7 +16,8 @@ replaces="libcrypto1.0 openssl" options="!fhs !check" triggers="ca-certificates.trigger=/usr/share/ca-certificates:/usr/local/share/ca-certificates:/etc/ssl/certs:/etc/ca-certificates/update.d" install="$pkgname.post-deinstall" -source="https://git.alpinelinux.org/cgit/ca-certificates/snapshot/ca-certificates-$pkgver.tar.bz2" +source="https://git.alpinelinux.org/cgit/ca-certificates/snapshot/ca-certificates-$pkgver.tar.bz2 + 0001-update-ca-fix-build-with-newer-musl.patch" builddir="$srcdir/ca-certificates-$pkgver" build() { @@ -50,4 +51,5 @@ package() { chmod +x "$pkgdir"/etc/ca-certificates/update.d/certhash } -sha512sums="bbb05049fb01be101ec9959504b90add1a034e8b0485901828b535e56cef6cbb50d4aa4649fc4c46b9869a21d3f77f6aa210e947a29c4ba36fc1d552125a248e ca-certificates-20171114.tar.bz2" +sha512sums="dbcd786a1c8d17132cceac8100ceac3902cd2360ba6773d0a65739da39a932f50e59d830b1060776ba89b778f451ab12bd879971e370a30b21e367951935ed3a ca-certificates-20180924.tar.bz2 +e0b7c0dafb5e9e5ff58c7db7a0c5805617197a549d7af1c117406eeda063aee7806000d686e15536c69e026d00fd3ca68dfc37a7dad839b90e754858ff6096dd 0001-update-ca-fix-build-with-newer-musl.patch" -- cgit v1.2.3