From: "Alon Bar-Lev" <alonbl@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/p11-kit/files/, app-crypt/p11-kit/
Date: Tue, 2 Jul 2019 05:51:22 +0000 (UTC) [thread overview]
Message-ID: <1562046656.a252cace3c34490668017794a229f6ddf6a3f7d8.alonbl@gentoo> (raw)
commit: a252cace3c34490668017794a229f6ddf6a3f7d8
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 2 05:50:20 2019 +0000
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
CommitDate: Tue Jul 2 05:50:56 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a252cace
app-crypt/p11-kit: fix date handling
Closes: https://bugs.gentoo.org/show_bug.cgi?id=688460
Thanks: Alexey
Signed-off-by: Alon Bar-Lev <alonbl <AT> gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
RepoMan-Options: --force
.../p11-kit/files/p11-kit-0.23.12-mktime.patch | 26 ++++++++++++++++++++++
...it-0.23.12.ebuild => p11-kit-0.23.12-r1.ebuild} | 4 ++++
....23.16.1.ebuild => p11-kit-0.23.16.1-r1.ebuild} | 4 ++++
3 files changed, 34 insertions(+)
diff --git a/app-crypt/p11-kit/files/p11-kit-0.23.12-mktime.patch b/app-crypt/p11-kit/files/p11-kit-0.23.12-mktime.patch
new file mode 100644
index 00000000000..7cc0baada97
--- /dev/null
+++ b/app-crypt/p11-kit/files/p11-kit-0.23.12-mktime.patch
@@ -0,0 +1,26 @@
+From 3d009fda4cb39157d6876e7d16cbc57f7b59bc86 Mon Sep 17 00:00:00 2001
+From: Alon Bar-Lev <alon.barlev@gmail.com>
+Date: Mon, 1 Jul 2019 13:38:25 +0300
+Subject: [PATCH] trust: do not allow daylight to invalidate date validation
+
+Issue: 235
+Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
+---
+ trust/builder.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/trust/builder.c b/trust/builder.c
+index d819dc8..2fc0c40 100644
+--- a/trust/builder.c
++++ b/trust/builder.c
+@@ -261,6 +261,7 @@ type_date (p11_builder *builder,
+ return false;
+
+ memcpy (&two, &tm, sizeof (tm));
++ two.tm_isdst = -1; // do not perform tz fixup
+ if (mktime (&two) < 0)
+ return false;
+
+--
+2.21.0
+
diff --git a/app-crypt/p11-kit/p11-kit-0.23.12.ebuild b/app-crypt/p11-kit/p11-kit-0.23.12-r1.ebuild
similarity index 97%
rename from app-crypt/p11-kit/p11-kit-0.23.12.ebuild
rename to app-crypt/p11-kit/p11-kit-0.23.12-r1.ebuild
index 1e38188fa1a..acd2250428b 100644
--- a/app-crypt/p11-kit/p11-kit-0.23.12.ebuild
+++ b/app-crypt/p11-kit/p11-kit-0.23.12-r1.ebuild
@@ -21,6 +21,10 @@ RDEPEND="asn1? ( >=dev-libs/libtasn1-3.4:=[${MULTILIB_USEDEP}] )
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
+PATCHES=(
+ "${FILESDIR}/${P}-mktime.patch"
+)
+
pkg_setup() {
# disable unsafe tests, bug#502088
export FAKED_MODE=1
diff --git a/app-crypt/p11-kit/p11-kit-0.23.16.1.ebuild b/app-crypt/p11-kit/p11-kit-0.23.16.1-r1.ebuild
similarity index 97%
rename from app-crypt/p11-kit/p11-kit-0.23.16.1.ebuild
rename to app-crypt/p11-kit/p11-kit-0.23.16.1-r1.ebuild
index ec7c6c32971..6b1c88e6912 100644
--- a/app-crypt/p11-kit/p11-kit-0.23.16.1.ebuild
+++ b/app-crypt/p11-kit/p11-kit-0.23.16.1-r1.ebuild
@@ -21,6 +21,10 @@ RDEPEND="asn1? ( >=dev-libs/libtasn1-3.4:=[${MULTILIB_USEDEP}] )
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
+PATCHES=(
+ "${FILESDIR}/${PN}-0.23.12-mktime.patch"
+)
+
pkg_setup() {
# disable unsafe tests, bug#502088
export FAKED_MODE=1
next reply other threads:[~2019-07-02 5:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-02 5:51 Alon Bar-Lev [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-02-25 11:45 [gentoo-commits] repo/gentoo:master commit in: app-crypt/p11-kit/files/, app-crypt/p11-kit/ Mikle Kolyada
2023-01-04 4:32 Sam James
2023-08-03 22:16 Sam James
2023-10-27 23:28 Sam James
2023-10-27 23:33 Sam James
2023-10-27 23:51 Sam James
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=1562046656.a252cace3c34490668017794a229f6ddf6a3f7d8.alonbl@gentoo \
--to=alonbl@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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