From 516d6cb7abc8a04f561e225415f9839363090bca08057ba923aef82c2a960783 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 28 Mar 2023 10:44:35 +0000 Subject: [PATCH] Accepting request 1074957 from home:iznogood:branches:X11:Utilities - Add fix-missing-include.patch: Add missing include exposed by gcc13. OBS-URL: https://build.opensuse.org/request/show/1074957 OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/adriconf?expand=0&rev=15 --- adriconf.changes | 6 ++++++ adriconf.spec | 4 +++- fix-missing-include.patch | 22 ++++++++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 fix-missing-include.patch diff --git a/adriconf.changes b/adriconf.changes index d86225d..3798161 100644 --- a/adriconf.changes +++ b/adriconf.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 28 09:26:46 UTC 2023 - Bjørn Lie + +- Add fix-missing-include.patch: Add missing include exposed by + gcc13. + ------------------------------------------------------------------- Wed Mar 15 15:37:10 UTC 2023 - Martin Pluskal diff --git a/adriconf.spec b/adriconf.spec index c7683ab..08a6ce5 100644 --- a/adriconf.spec +++ b/adriconf.spec @@ -26,6 +26,8 @@ URL: https://gitlab.freedesktop.org/mesa/adriconf Source0: https://gitlab.freedesktop.org/mesa/adriconf/-/archive/v%{version}/adriconf-v%{version}.tar.bz2 Source1: adriconf.desktop Source2: driconf-icon.png +# PATCH-FIX-UPSTREAM fix-missing-include.patch -- Add missing include exposed by gcc 13 +Patch0: fix-missing-include.patch BuildRequires: Mesa-devel BuildRequires: cmake BuildRequires: gcc-c++ @@ -53,7 +55,7 @@ the standard drirc file used by the Mesa drivers. %lang_package %prep -%autosetup -n %{name}-v%{version} +%autosetup -n %{name}-v%{version} -p1 %build %cmake \ diff --git a/fix-missing-include.patch b/fix-missing-include.patch new file mode 100644 index 0000000..7d592b0 --- /dev/null +++ b/fix-missing-include.patch @@ -0,0 +1,22 @@ +diff -Nur adriconf-v2.6.0-orig/adriconf/Utils/PCIDatabaseQuery.h adriconf-v2.6.0/adriconf/Utils/PCIDatabaseQuery.h +--- adriconf-v2.6.0-orig/adriconf/Utils/PCIDatabaseQuery.h 2023-03-28 11:58:00.433964215 +0200 ++++ adriconf-v2.6.0/adriconf/Utils/PCIDatabaseQuery.h 2023-03-28 11:59:12.830851304 +0200 +@@ -3,6 +3,7 @@ + + #include + #include "PCIDatabaseQueryInterface.h" ++#include + + extern "C" { + #include +diff -Nur adriconf-v2.6.0-orig/adriconf/Utils/PCIDatabaseQueryInterface.h adriconf-v2.6.0/adriconf/Utils/PCIDatabaseQueryInterface.h +--- adriconf-v2.6.0-orig/adriconf/Utils/PCIDatabaseQueryInterface.h 2023-03-28 11:58:13.394123341 +0200 ++++ adriconf-v2.6.0/adriconf/Utils/PCIDatabaseQueryInterface.h 2023-03-28 11:59:27.811034337 +0200 +@@ -2,6 +2,7 @@ + #define ADRICONF_PCIDATABASEQUERYINTERFACE_H + + #include ++#include + + class PCIDatabaseQueryInterface { + public: