1 |
commit: 532a3eb3dda0ff59c4e3e80ff28b7856561fbee4 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 1 18:49:01 2020 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 1 18:54:34 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=532a3eb3 |
7 |
|
8 |
x11-drivers/xf86-video-amdgpu: Add patch for GCC-10 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/719950 |
11 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
12 |
|
13 |
...mdgpu-19.1.0-Fix-link-failure-with-gcc-10.patch | 28 ++++++++++++++++++++++ |
14 |
.../xf86-video-amdgpu-19.1.0.ebuild | 4 ++++ |
15 |
2 files changed, 32 insertions(+) |
16 |
|
17 |
diff --git a/x11-drivers/xf86-video-amdgpu/files/xf86-video-amdgpu-19.1.0-Fix-link-failure-with-gcc-10.patch b/x11-drivers/xf86-video-amdgpu/files/xf86-video-amdgpu-19.1.0-Fix-link-failure-with-gcc-10.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..cab3d1b11d1 |
20 |
--- /dev/null |
21 |
+++ b/x11-drivers/xf86-video-amdgpu/files/xf86-video-amdgpu-19.1.0-Fix-link-failure-with-gcc-10.patch |
22 |
@@ -0,0 +1,28 @@ |
23 |
+From edcbe5f52ddfceee3d66d69bbcebbceac06b6d0d Mon Sep 17 00:00:00 2001 |
24 |
+From: Adam Jackson <ajax@××××××.com> |
25 |
+Date: Tue, 4 Feb 2020 16:38:06 -0500 |
26 |
+Subject: [PATCH] Fix link failure with gcc 10 |
27 |
+ |
28 |
+Without the 'extern' this looks like a definition not just a |
29 |
+declaration, in every file that includes the header. gcc 10 is stricter |
30 |
+about this kind of multiple definition. |
31 |
+--- |
32 |
+ src/drmmode_display.h | 2 +- |
33 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
34 |
+ |
35 |
+diff --git a/src/drmmode_display.h b/src/drmmode_display.h |
36 |
+index 803ac3c..9c0f25a 100644 |
37 |
+--- a/src/drmmode_display.h |
38 |
++++ b/src/drmmode_display.h |
39 |
+@@ -289,7 +289,7 @@ Bool drmmode_wait_vblank(xf86CrtcPtr crtc, drmVBlankSeqType type, |
40 |
+ uint64_t *ust, uint32_t *result_seq); |
41 |
+ |
42 |
+ |
43 |
+-miPointerSpriteFuncRec drmmode_sprite_funcs; |
44 |
++extern miPointerSpriteFuncRec drmmode_sprite_funcs; |
45 |
+ |
46 |
+ |
47 |
+ #endif |
48 |
+-- |
49 |
+2.26.2 |
50 |
+ |
51 |
|
52 |
diff --git a/x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-19.1.0.ebuild b/x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-19.1.0.ebuild |
53 |
index d1d64a0c5d9..1c98f5bc557 100644 |
54 |
--- a/x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-19.1.0.ebuild |
55 |
+++ b/x11-drivers/xf86-video-amdgpu/xf86-video-amdgpu-19.1.0.ebuild |
56 |
@@ -20,6 +20,10 @@ RDEPEND=">=x11-libs/libdrm-2.4.89[video_cards_amdgpu] |
57 |
udev? ( virtual/libudev:= )" |
58 |
DEPEND="${RDEPEND}" |
59 |
|
60 |
+PATCHES=( |
61 |
+ "${FILESDIR}"/${P}-Fix-link-failure-with-gcc-10.patch |
62 |
+) |
63 |
+ |
64 |
pkg_setup() { |
65 |
XORG_CONFIGURE_OPTIONS=( |
66 |
--enable-glamor |