diff --git a/u_fno-common.patch b/u_fno-common.patch new file mode 100644 index 0000000..ce0174b --- /dev/null +++ b/u_fno-common.patch @@ -0,0 +1,11 @@ +--- xf86-video-ati-19.1.0.old/src/drmmode_display.h 2020-01-09 23:19:29.783677517 +0000 ++++ xf86-video-ati-19.1.0/src/drmmode_display.h 2020-01-09 23:20:10.268450223 +0000 +@@ -262,7 +262,7 @@ Bool drmmode_wait_vblank(xf86CrtcPtr crt + uint64_t *ust, uint32_t *result_seq); + + +-miPointerSpriteFuncRec drmmode_sprite_funcs; ++extern miPointerSpriteFuncRec drmmode_sprite_funcs; + + + #endif diff --git a/xf86-video-ati.changes b/xf86-video-ati.changes index 286c050..86de9f7 100644 --- a/xf86-video-ati.changes +++ b/xf86-video-ati.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 9 23:26:04 UTC 2020 - Stefan Dirsch + +- u_fno-common.patch + * fix build with gcc's -fno-common option (boo#1160422) + ------------------------------------------------------------------- Tue Oct 15 16:55:49 UTC 2019 - Stefan Dirsch diff --git a/xf86-video-ati.spec b/xf86-video-ati.spec index 3cedc92..64c9e85 100644 --- a/xf86-video-ati.spec +++ b/xf86-video-ati.spec @@ -1,7 +1,7 @@ # # spec file for package xf86-video-ati # -# 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 @@ -27,6 +27,7 @@ Url: http://xorg.freedesktop.org/ Source0: http://xorg.freedesktop.org/releases/individual/driver/%{name}-%{version}.tar.bz2 Source1: http://xorg.freedesktop.org/releases/individual/driver/%{name}-%{version}.tar.bz2.sig Source2: %{name}.keyring +Patch0: u_fno-common.patch BuildRequires: autoconf >= 2.60 BuildRequires: automake BuildRequires: libtool @@ -66,6 +67,7 @@ driver as appropriate. %prep %setup -q +%patch0 -p1 %build autoreconf -fiv