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