From: Thomas Weißschuh Date: Thu, 26 Jun 2025 10:54:40 +0000 (+0200) Subject: tools: util-linux: update to v2.41.1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2520c1910813441eec5e4cc5024f610e0318cc9;p=thirdparty%2Fopenwrt.git tools: util-linux: update to v2.41.1 Release Notes: https://www.kernel.org/pub/linux/utils/util-linux/v2.41/v2.41.1-ReleaseNotes Remove upstreamed: tools/util-linux/patches/101-macos-weak-aliases.patch Signed-off-by: Thomas Weißschuh Link: https://github.com/openwrt/openwrt/pull/19236 Signed-off-by: Nick Hainke --- diff --git a/tools/util-linux/Makefile b/tools/util-linux/Makefile index 37c9366f372..fd90f31b5f3 100644 --- a/tools/util-linux/Makefile +++ b/tools/util-linux/Makefile @@ -7,11 +7,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=util-linux -PKG_VERSION:=2.41 +PKG_VERSION:=2.41.1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.41 -PKG_HASH:=81ee93b3cfdfeb7d7c4090cedeba1d7bbce9141fd0b501b686b3fe475ddca4c6 +PKG_HASH:=be9ad9a276f4305ab7dd2f5225c8be1ff54352f565ff4dede9628c1aaa7dec57 PKG_CPE_ID:=cpe:/a:kernel:util-linux PKG_FIXUP:=autoreconf diff --git a/tools/util-linux/patches/101-macos-weak-aliases.patch b/tools/util-linux/patches/101-macos-weak-aliases.patch deleted file mode 100644 index 13acccd535e..00000000000 --- a/tools/util-linux/patches/101-macos-weak-aliases.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 9445f477cfcfb3615ffde8f93b1b98c809ee4eca Mon Sep 17 00:00:00 2001 -From: Eugene Gershnik -Date: Mon, 6 May 2024 09:29:39 -0700 -Subject: [PATCH] This re-enables build on macOS. - -Weak aliases are not supported by clang on Darwin. -Instead this fix uses inline asm to make `_uuid_time` and alias to `___uuid_time` - -Fixes util-linux/util-linux#2873 ---- - libuuid/src/uuid_time.c | 4 ++++ - 1 file changed, 4 insertions(+) - ---- a/libuuid/src/uuid_time.c -+++ b/libuuid/src/uuid_time.c -@@ -144,6 +144,10 @@ time_t __uuid_time(const uuid_t uu, stru - } - #if defined(__USE_TIME_BITS64) && defined(__GLIBC__) - extern time_t uuid_time64(const uuid_t uu, struct timeval *ret_tv) __attribute__((weak, alias("__uuid_time"))); -+#elif defined(__clang__) && defined(__APPLE__) -+__asm__(".globl _uuid_time"); -+__asm__(".set _uuid_time, ___uuid_time"); -+extern time_t uuid_time(const uuid_t uu, struct timeval *ret_tv); - #else - extern time_t uuid_time(const uuid_t uu, struct timeval *ret_tv) __attribute__((weak, alias("__uuid_time"))); - #endif