Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 931328
Collapse All | Expand All

(-)a/sys-apps/util-linux/files/lld-ver-sym.patch (+43 lines)
Line 0 Link Here
1
Gentoo bug 931328 (https://bugs.gentoo.org/931328)
2
3
From 86d3f3f03231d25f9cbf18d83aeeccd2225dd246 Mon Sep 17 00:00:00 2001
4
From: Nicholas Vinson <nvinson234@gmail.com>
5
Date: Wed, 15 May 2024 11:14:54 -0400
6
Subject: [PATCH] Conditionally add uuid_time64 to sym. version map
7
8
The symbol uuid_time64 is conditionally defined. It only exists on
9
32-bit platforms that use the glibc library and enable support for
10
the 64-bit time_t type.
11
12
For all other platforms, the symbol is undefined. As a result, when
13
ld.lld version 17 or newer is used with default flags, ld.lld will
14
reject the symbol map with the error:
15
16
    version script assignment of 'UUID_2.40' to symbol 'uuid_time64'
17
    failed: symbol not defined
18
19
To fix this issue, the reference to uuid_time64 is changed to
20
uuid_time64*. The change to a glob pattern satisifies ld.lld and allows
21
the library to link.
22
23
fixes util-linux/util-linux#3036
24
fixes Gentoo bug #931328
25
26
Signed-off-by: Nicholas Vinson <nvinson234@gmail.com>
27
---
28
 libuuid/src/libuuid.sym | 2 +-
29
 1 file changed, 1 insertion(+), 1 deletion(-)
30
31
diff --git a/libuuid/src/libuuid.sym b/libuuid/src/libuuid.sym
32
index 4c4b4eba2e..774228548a 100644
33
--- a/libuuid/src/libuuid.sym
34
+++ b/libuuid/src/libuuid.sym
35
@@ -57,7 +57,7 @@ global:
36
  */
37
 UUID_2.40 {
38
 global:
39
-        uuid_time64; /* only on 32bit architectures with 64bit time_t */
40
+        uuid_time64*; /* only on 32bit architectures with 64bit time_t */
41
 } UUID_2.36;
42
 
43
 /*
(-)a/sys-apps/util-linux/util-linux-2.40.1-r3.ebuild (+4 lines)
Lines 102-107 fi Link Here
102
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) su? ( pam )"
102
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) su? ( pam )"
103
RESTRICT="!test? ( test )"
103
RESTRICT="!test? ( test )"
104
104
105
PATCHES=(
106
	"${FILESDIR}/lld-ver-sym.patch"
107
)
108
105
pkg_pretend() {
109
pkg_pretend() {
106
	if use su && ! use suid ; then
110
	if use su && ! use suid ; then
107
		elog "su will be installed as suid despite USE=-suid (bug #832092)"
111
		elog "su will be installed as suid despite USE=-suid (bug #832092)"

Return to bug 931328