From 787143551bdb4f1cf02333ad37651cc02f91d958 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Mon, 4 Jul 2022 15:49:00 +0000 Subject: [PATCH] got: update to 0.73. --- srcpkgs/got/patches/cast-printf-time_t.patch | 24 ++++++++++++++++++++ srcpkgs/got/template | 4 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/got/patches/cast-printf-time_t.patch diff --git a/srcpkgs/got/patches/cast-printf-time_t.patch b/srcpkgs/got/patches/cast-printf-time_t.patch new file mode 100644 index 000000000000..a369ddff9278 --- /dev/null +++ b/srcpkgs/got/patches/cast-printf-time_t.patch @@ -0,0 +1,24 @@ +From: Christian Weisgerber +Date: Mon, 4 Jul 2022 15:13:11 +0000 (+0000) +Subject: fix potential type mismatch between format specifier and argument +X-Git-Url: https://git.gameoftrees.org/gitweb/?p=got.git;a=commitdiff_plain;h=b9a36ae5 + +fix potential type mismatch between format specifier and argument + +Cast printf argument of type time_t to long long to match the %lld +format specifier on platforms where this might not be the case. +--- + +diff --git a/lib/sigs.c b/lib/sigs.c +index 693a3a27..ac1b2637 100644 +--- a/lib/sigs.c ++++ b/lib/sigs.c +@@ -204,7 +204,7 @@ got_tag_write_signed_data(BUF *buf, struct got_tag_object *tag, + got_date_format_gmtoff(gmtoff, sizeof(gmtoff), + got_object_tag_get_tagger_gmtoff(tag)); + if (asprintf(&tagger, "%s %lld %s", got_object_tag_get_tagger(tag), +- got_object_tag_get_tagger_time(tag), gmtoff) == -1) { ++ (long long)got_object_tag_get_tagger_time(tag), gmtoff) == -1) { + err = got_error_from_errno("asprintf"); + goto done; + } diff --git a/srcpkgs/got/template b/srcpkgs/got/template index 1113cca08d9b..6a991e32a027 100644 --- a/srcpkgs/got/template +++ b/srcpkgs/got/template @@ -1,6 +1,6 @@ # Template file for 'got' pkgname=got -version=0.71 +version=0.73 revision=1 wrksrc=got-portable-${version} build_style=gnu-configure @@ -12,7 +12,7 @@ license="ISC" homepage="https://gameoftrees.org" changelog="https://gameoftrees.org/releases/CHANGES" distfiles="https://gameoftrees.org/releases/portable/got-portable-${version}.tar.gz" -checksum="16a61f49e52e189606d8f4236423f912b5cae71b1d505ef1313b4fc3173108f0" +checksum="f0753a7e745bb3975cdd915424827d76bdec6bd0832c443c77d84ae3121ca874" post_install() { sed -n '/Copyright/,/PERFORMANCE/p' got/got.c > LICENSE