From 684600f2c08d1817024ef27fa205bd330c005530 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Wed, 17 Sep 2025 16:30:46 +0000 Subject: [PATCH] 64bit time_t. --- security/gnutls/Makefile | 1 + .../gnutls/patches/patch-lib_x509_output_c | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 security/gnutls/patches/patch-lib_x509_output_c diff --git a/security/gnutls/Makefile b/security/gnutls/Makefile index 280f9c21379..0b9ea772c25 100644 --- a/security/gnutls/Makefile +++ b/security/gnutls/Makefile @@ -3,6 +3,7 @@ COMMENT= GNU Transport Layer Security library V= 3.8.10 DISTNAME= gnutls-${V} EXTRACT_SUFX= .tar.xz +REVISION= 0 CATEGORIES= security diff --git a/security/gnutls/patches/patch-lib_x509_output_c b/security/gnutls/patches/patch-lib_x509_output_c new file mode 100644 index 00000000000..043df2df30b --- /dev/null +++ b/security/gnutls/patches/patch-lib_x509_output_c @@ -0,0 +1,20 @@ +64bit time_t + +Index: lib/x509/output.c +--- lib/x509/output.c.orig ++++ lib/x509/output.c +@@ -477,12 +477,12 @@ static void print_time(gnutls_buffer_st *str, time_t t + struct tm t; + + if (gmtime_r(×tamp, &t) == NULL) { +- addf(str, "error: gmtime_r (%lu)\n", timestamp); ++ addf(str, "error: gmtime_r (%lld)\n", timestamp); + return; + } + + if (strftime(s, max, "%a, %b %d %H:%M:%S UTC %Y", &t) == 0) +- addf(str, "error: strftime (%lu)\n", timestamp); ++ addf(str, "error: strftime (%lld)\n", timestamp); + else + addf(str, "%s\n", s); + }