From d33967220bbd8429ecebd440392da26f6e67d521 Mon Sep 17 00:00:00 2001 From: Natanael Copa <ncopa@alpinelinux.org> Date: Thu, 21 Nov 2024 22:50:04 +0100 Subject: [PATCH] community/avfs: fix build with gcc14 on 32 bit --- community/avfs/APKBUILD | 4 +++- community/avfs/time_t.patch | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 community/avfs/time_t.patch diff --git a/community/avfs/APKBUILD b/community/avfs/APKBUILD index e5fd55b4acf5..dd63e009c827 100644 --- a/community/avfs/APKBUILD +++ b/community/avfs/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=avfs pkgver=1.1.5 -pkgrel=2 +pkgrel=3 pkgdesc="A Virtual File System for looking into archives" url="https://avf.sourceforge.net/" arch="all" @@ -13,6 +13,7 @@ makedepends="zlib-dev bzip2-dev fuse-dev zstd-dev xz-dev" subpackages="$pkgname-dev $pkgname-libs" source="https://downloads.sourceforge.net/project/avf/avfs/$pkgver/avfs-$pkgver.tar.bz2 fix-PATH_MAX.patch + time_t.patch " build() { @@ -41,4 +42,5 @@ package() { sha512sums=" 03e9abbda17d7976f9c6e4f8a426ff0b85f626ba2942cb2ec17aff3239476d6de385d7d709d7f0b23e31fbde5bcf131e512d38354f78f7fdc04d4b6d0d593e1b avfs-1.1.5.tar.bz2 281d36f65652a265781e305647a4c1c8f03b851ba458a0b7d9f36119f5489f3b16337019da2b8521695c9bb5cee7ee01ef0a040453c27e1f82f51d858f4940b5 fix-PATH_MAX.patch +55bf743e4e881d54a26024cce4ccac72cb5997df3212592449be2637fd7e79fa7c8284069663079406c6297cdaa60da89e31b404586673f12247379212078c55 time_t.patch " diff --git a/community/avfs/time_t.patch b/community/avfs/time_t.patch new file mode 100644 index 000000000000..c7e4179aa732 --- /dev/null +++ b/community/avfs/time_t.patch @@ -0,0 +1,16 @@ +diff --git a/src/sysdeps.c b/src/sysdeps.c +index b764c27..0e0f2ef 100644 +--- a/src/sysdeps.c ++++ b/src/sysdeps.c +@@ -321,8 +321,9 @@ avtime_t av_mktime(struct avtm *tp) + void av_localtime(avtime_t t, struct avtm *tp) + { + struct tm tms; +- +- localtime_r(&t, &tms); ++ ++ time_t tmp = t; ++ localtime_r(&tmp, &tms); + + tp->sec = tms.tm_sec; + tp->min = tms.tm_min; -- GitLab