Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-drivers/xf86-video-ati/files/, x11-drivers/xf86-video-ati/
Date: Fri, 01 May 2020 18:54:54
Message-Id: 1588359274.1089c0fa030301e8f4d29c04552ac1cbff1bd645.mattst88@gentoo
1 commit: 1089c0fa030301e8f4d29c04552ac1cbff1bd645
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 1 18:48:58 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=1089c0fa
7
8 x11-drivers/xf86-video-ati: Add patch for GCC-10
9
10 Closes: https://bugs.gentoo.org/720266
11 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
12
13 ...o-ati-19.1.0-Fix-link-failure-with-gcc-10.patch | 33 ++++++++++++++++++++++
14 .../xf86-video-ati/xf86-video-ati-19.1.0.ebuild | 4 +++
15 2 files changed, 37 insertions(+)
16
17 diff --git a/x11-drivers/xf86-video-ati/files/xf86-video-ati-19.1.0-Fix-link-failure-with-gcc-10.patch b/x11-drivers/xf86-video-ati/files/xf86-video-ati-19.1.0-Fix-link-failure-with-gcc-10.patch
18 new file mode 100644
19 index 00000000000..e0375b0826c
20 --- /dev/null
21 +++ b/x11-drivers/xf86-video-ati/files/xf86-video-ati-19.1.0-Fix-link-failure-with-gcc-10.patch
22 @@ -0,0 +1,33 @@
23 +From f223035f4ffcff2a9296d1e907a5193f8e8845a3 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 +MIME-Version: 1.0
28 +Content-Type: text/plain; charset=UTF-8
29 +Content-Transfer-Encoding: 8bit
30 +
31 +Without the 'extern' this looks like a definition not just a
32 +declaration, in every file that includes the header. gcc 10 is stricter
33 +about this kind of multiple definition.
34 +
35 +Reviewed-by: Michel Dänzer <mdaenzer@××××××.com>
36 +---
37 + src/drmmode_display.h | 2 +-
38 + 1 file changed, 1 insertion(+), 1 deletion(-)
39 +
40 +diff --git a/src/drmmode_display.h b/src/drmmode_display.h
41 +index 96eaef0a..8cd8a0a6 100644
42 +--- a/src/drmmode_display.h
43 ++++ b/src/drmmode_display.h
44 +@@ -262,7 +262,7 @@ Bool drmmode_wait_vblank(xf86CrtcPtr crtc, drmVBlankSeqType type,
45 + uint64_t *ust, uint32_t *result_seq);
46 +
47 +
48 +-miPointerSpriteFuncRec drmmode_sprite_funcs;
49 ++extern miPointerSpriteFuncRec drmmode_sprite_funcs;
50 +
51 +
52 + #endif
53 +--
54 +2.26.2
55 +
56
57 diff --git a/x11-drivers/xf86-video-ati/xf86-video-ati-19.1.0.ebuild b/x11-drivers/xf86-video-ati/xf86-video-ati-19.1.0.ebuild
58 index f0b151ac4ac..5350c72cb74 100644
59 --- a/x11-drivers/xf86-video-ati/xf86-video-ati-19.1.0.ebuild
60 +++ b/x11-drivers/xf86-video-ati/xf86-video-ati-19.1.0.ebuild
61 @@ -24,6 +24,10 @@ RDEPEND=">=x11-libs/libdrm-2.4.89[video_cards_radeon]
62 DEPEND="${RDEPEND}
63 x11-base/xorg-proto"
64
65 +PATCHES=(
66 + "${FILESDIR}"/${P}-Fix-link-failure-with-gcc-10.patch
67 +)
68 +
69 pkg_pretend() {
70 if use kernel_linux ; then
71 if kernel_is -ge 3 9; then