From 2de90daf7cbcb36a13401ba53d5baaa4e1c4b389fd1408006cdeb0774dcb5072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Sat, 25 Jun 2016 12:07:44 +0000 Subject: [PATCH 1/2] new meta OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/xsession?expand=0&rev=5 --- xsession.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xsession.spec b/xsession.spec index c469cc1..fb616d7 100644 --- a/xsession.spec +++ b/xsession.spec @@ -1,7 +1,7 @@ # # spec file for package xsession # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 From 3069416d9291b7082b611fa79dd9c808059a922970990bdf4f28b830ee2e9c3a Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 12 Sep 2024 12:51:58 +0000 Subject: [PATCH 2/2] =?UTF-8?q?-=20Add=20xsession-implicit-shutdown.patch:?= =?UTF-8?q?=20Fix=20build=20with=20GCC=2014:=20=20=20xsession.c:212:5:=20e?= =?UTF-8?q?rror:=20implicit=20declaration=20of=20function=20=E2=80=98shutd?= =?UTF-8?q?own=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/xsession?expand=0&rev=6 --- xsession-implicit-shutdown.patch | 12 ++++++++++++ xsession.changes | 6 ++++++ xsession.spec | 14 ++++---------- 3 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 xsession-implicit-shutdown.patch diff --git a/xsession-implicit-shutdown.patch b/xsession-implicit-shutdown.patch new file mode 100644 index 0000000..d472060 --- /dev/null +++ b/xsession-implicit-shutdown.patch @@ -0,0 +1,12 @@ +Index: xsession-1.1/xsession.c +=================================================================== +--- xsession-1.1.orig/xsession.c ++++ xsession-1.1/xsession.c +@@ -52,6 +52,7 @@ + #include + #include "xsession.h" + #include "resources.h" ++#include + + #ifdef SOUNDS + #include diff --git a/xsession.changes b/xsession.changes index 0f6d636..ccc3deb 100644 --- a/xsession.changes +++ b/xsession.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Sep 12 12:20:22 UTC 2024 - Dominique Leuenberger + +- Add xsession-implicit-shutdown.patch: Fix build with GCC 14: + xsession.c:212:5: error: implicit declaration of function ‘shutdown’ + ------------------------------------------------------------------- Wed Oct 1 23:21:28 UTC 2014 - crrodriguez@opensuse.org diff --git a/xsession.spec b/xsession.spec index fb616d7..30c53c5 100644 --- a/xsession.spec +++ b/xsession.spec @@ -1,7 +1,7 @@ # # spec file for package xsession # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -29,6 +29,7 @@ Summary: A session manager License: MIT Group: System/X11/Utilities Source: xsession-1.1.tar.gz +Patch0: xsession-implicit-shutdown.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)} %if "%_exec_prefix" == "/usr/X11R6" @@ -50,15 +51,8 @@ applications from the xsession menus. Examples may be found under /usr/share/doc/packages/xsession/examples. - - -Authors: --------- - Alain Nissen - Raphael Quinet - %prep -%setup -q +%autosetup -p1 %build xmkmf -a