From 1543bba0a2652bcb70334c4f14bb9e298ca3d09d Mon Sep 17 00:00:00 2001 From: Bernhard Froehlich Date: Wed, 15 Oct 2025 19:20:38 +0000 Subject: devel/efivar: Update to version 39 and take maintainership This is a big and important update which was initially submitted as part of D29332 by Norbert Kaminski . The submitted patches were for 0.24 and at the last two EuroBSDCons I've spend a lot of time to rework them for v39. Thanks a lot for the initial patches, even if there is not much of the initial work left. Differential Revision: https://reviews.freebsd.org/D29332 --- devel/efivar/files/patch-src_time.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 devel/efivar/files/patch-src_time.c (limited to 'devel/efivar/files/patch-src_time.c') diff --git a/devel/efivar/files/patch-src_time.c b/devel/efivar/files/patch-src_time.c new file mode 100644 index 000000000000..4a7edf743ef4 --- /dev/null +++ b/devel/efivar/files/patch-src_time.c @@ -0,0 +1,20 @@ +--- src/time.c.orig 2024-01-31 20:08:46 UTC ++++ src/time.c +@@ -52,7 +52,17 @@ tm_to_efi_time(const struct tm * const s, efi_time_t * + + if (tzadj) { + tzset(); ++ ++#if defined(__FreeBSD__) ++ time_t t = time(NULL); ++ struct tm lt = {0}; ++ ++ localtime_r(&t, <); ++ ++ d->timezone = lt.tm_gmtoff / 60; ++#else + d->timezone = timezone / 60; ++#endif + } + + return 0; -- cgit v1.2.3