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 |
/* |