Accepting request 762590 from X11:XOrg

- u_fno-common.patch
  * fix build with gcc's -fno-common option (boo#1160421)

OBS-URL: https://build.opensuse.org/request/show/762590
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xf86-video-amdgpu?expand=0&rev=26
This commit is contained in:
Dominique Leuenberger 2020-01-12 22:18:00 +00:00 committed by Git OBS Bridge
commit d3af895958
3 changed files with 20 additions and 1 deletions

11
u_fno-common.patch Normal file
View File

@ -0,0 +1,11 @@
--- xf86-video-amdgpu-19.1.0.old/src/drmmode_display.h 2020-01-09 23:36:44.871438889 +0000
+++ xf86-video-amdgpu-19.1.0/src/drmmode_display.h 2020-01-09 23:37:15.904031508 +0000
@@ -289,7 +289,7 @@
uint64_t *ust, uint32_t *result_seq);
-miPointerSpriteFuncRec drmmode_sprite_funcs;
+extern miPointerSpriteFuncRec drmmode_sprite_funcs;
#endif

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jan 9 23:39:11 UTC 2020 - Stefan Dirsch <sndirsch@suse.com>
- u_fno-common.patch
* fix build with gcc's -fno-common option (boo#1160421)
-------------------------------------------------------------------
Sat Oct 12 13:39:40 UTC 2019 - Stefan Dirsch <sndirsch@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package xf86-video-amdgpu
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -31,6 +31,7 @@ Source: http://xorg.freedesktop.org/releases/individual/driver/%{name}-%
Source1: http://xorg.freedesktop.org/releases/individual/driver/%{name}-%{version}.tar.bz2.sig
Source2: %{name}.keyring
Source3: amdgpu.ids
Patch0: u_fno-common.patch
BuildRequires: autoconf >= 2.6.0
BuildRequires: automake
BuildRequires: libtool
@ -64,6 +65,7 @@ Its autodetects whether your hardware has a CI or newer AMD Graphics Card
%prep
%setup -q
%patch0 -p1
%build
autoreconf -fiv