1 |
commit: e652e01f35129b584502ac6367de13cfbf1b528c |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 17 20:14:32 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 17 20:14:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e652e01f |
7 |
|
8 |
dev-util/lttng-ust: backport gcc-10 fix, bug #706862 |
9 |
|
10 |
Reported-by: Toralf Förster |
11 |
Closes: https://bugs.gentoo.org/706862 |
12 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
.../files/lttng-ust-2.11.0-fno-common.patch | 47 ++++++++++++++++++++++ |
16 |
dev-util/lttng-ust/lttng-ust-2.11.0.ebuild | 4 +- |
17 |
2 files changed, 50 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/dev-util/lttng-ust/files/lttng-ust-2.11.0-fno-common.patch b/dev-util/lttng-ust/files/lttng-ust-2.11.0-fno-common.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..48b5bfbbe39 |
22 |
--- /dev/null |
23 |
+++ b/dev-util/lttng-ust/files/lttng-ust-2.11.0-fno-common.patch |
24 |
@@ -0,0 +1,47 @@ |
25 |
+From 21a934df4c683e73e0a66a9afca33573fcf9d789 Mon Sep 17 00:00:00 2001 |
26 |
+From: Michael Jeanson <mjeanson@××××××××.com> |
27 |
+Date: Thu, 16 Jan 2020 10:59:14 -0500 |
28 |
+Subject: [PATCH] Fix: build with -fno-common |
29 |
+ |
30 |
+GCC 10 will default to building with -fno-common, this inhibits the |
31 |
+linker from merging multiple tentative definitions of a symbol in an |
32 |
+archive. Keep only the declaration in the libustsnprintf.la convenience |
33 |
+library. |
34 |
+ |
35 |
+Signed-off-by: Michael Jeanson <mjeanson@××××××××.com> |
36 |
+Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@××××××××.com> |
37 |
+Change-Id: I8fb7c72811ce7e62f10342f55fcabeeabfdd4c67 |
38 |
+--- |
39 |
+ liblttng-ust-ctl/ustctl.c | 2 -- |
40 |
+ liblttng-ust-fd/lttng-ust-fd.c | 2 -- |
41 |
+ 2 files changed, 4 deletions(-) |
42 |
+ |
43 |
+diff --git a/liblttng-ust-ctl/ustctl.c b/liblttng-ust-ctl/ustctl.c |
44 |
+index 949ece17..c2b761a1 100644 |
45 |
+--- a/liblttng-ust-ctl/ustctl.c |
46 |
++++ b/liblttng-ust-ctl/ustctl.c |
47 |
+@@ -77,8 +77,6 @@ extern void lttng_ring_buffer_client_discard_exit(void); |
48 |
+ extern void lttng_ring_buffer_client_discard_rt_exit(void); |
49 |
+ extern void lttng_ring_buffer_metadata_client_exit(void); |
50 |
+ |
51 |
+-volatile enum ust_loglevel ust_loglevel; |
52 |
+- |
53 |
+ int ustctl_release_handle(int sock, int handle) |
54 |
+ { |
55 |
+ struct ustcomm_ust_msg lum; |
56 |
+diff --git a/liblttng-ust-fd/lttng-ust-fd.c b/liblttng-ust-fd/lttng-ust-fd.c |
57 |
+index 863f0618..4818e02e 100644 |
58 |
+--- a/liblttng-ust-fd/lttng-ust-fd.c |
59 |
++++ b/liblttng-ust-fd/lttng-ust-fd.c |
60 |
+@@ -28,8 +28,6 @@ |
61 |
+ #include <helper.h> |
62 |
+ #include "usterr-signal-safe.h" |
63 |
+ |
64 |
+-volatile enum ust_loglevel ust_loglevel; |
65 |
+- |
66 |
+ static int (*__lttng_ust_fd_plibc_close)(int fd); |
67 |
+ static int (*__lttng_ust_fd_plibc_fclose)(FILE *stream); |
68 |
+ |
69 |
+-- |
70 |
+2.25.0 |
71 |
+ |
72 |
|
73 |
diff --git a/dev-util/lttng-ust/lttng-ust-2.11.0.ebuild b/dev-util/lttng-ust/lttng-ust-2.11.0.ebuild |
74 |
index ecc26c91c8a..a3aa0dbf6f7 100644 |
75 |
--- a/dev-util/lttng-ust/lttng-ust-2.11.0.ebuild |
76 |
+++ b/dev-util/lttng-ust/lttng-ust-2.11.0.ebuild |
77 |
@@ -1,4 +1,4 @@ |
78 |
-# Copyright 1999-2019 Gentoo Authors |
79 |
+# Copyright 1999-2020 Gentoo Authors |
80 |
# Distributed under the terms of the GNU General Public License v2 |
81 |
|
82 |
EAPI=7 |
83 |
@@ -23,6 +23,8 @@ DEPEND=" |
84 |
" |
85 |
RDEPEND="${DEPEND}" |
86 |
|
87 |
+PATCHES=("${FILESDIR}"/${P}-fno-common.patch) |
88 |
+ |
89 |
S="${WORKDIR}"/${MY_P} |
90 |
|
91 |
src_prepare() { |