From 2e8a0fe6ecf894392fa2114f7ee4a7f98391304fbd3570c3638b1a94c552392f Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Wed, 6 Mar 2024 09:26:20 +0000 Subject: [PATCH] - u_gcc14-fix.patch * fix build against gcc14 (boo#1221028) OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xdm?expand=0&rev=269 --- u_gcc14-fix.patch | 12 ++++++++++++ xdm.changes | 6 ++++++ xdm.spec | 4 +++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 u_gcc14-fix.patch diff --git a/u_gcc14-fix.patch b/u_gcc14-fix.patch new file mode 100644 index 0000000..f9ed78a --- /dev/null +++ b/u_gcc14-fix.patch @@ -0,0 +1,12 @@ +diff -u -r -p xdm-1.1.14.old/chooser/chooser.c xdm-1.1.14/chooser/chooser.c +--- xdm-1.1.14.old/chooser/chooser.c 2024-03-06 09:11:44.928220105 +0000 ++++ xdm-1.1.14/chooser/chooser.c 2024-03-06 09:18:17.760108455 +0000 +@@ -277,7 +277,7 @@ RebuildTable (int size) + newTable[i] = names->fullname; + qsort (newTable, size, sizeof (char *), HostnameCompare); + } +- XawListChange (list, newTable, size, 0, TRUE); ++ XawListChange (list, (_Xconst char **) newTable, size, 0, TRUE); + free (NameTable); + NameTable = newTable; + NameTableSize = size; diff --git a/xdm.changes b/xdm.changes index 62e9cf3..da491ed 100644 --- a/xdm.changes +++ b/xdm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 6 09:21:36 UTC 2024 - Stefan Dirsch + +- u_gcc14-fix.patch + * fix build against gcc14 (boo#1221028) + ------------------------------------------------------------------- Mon Feb 26 12:07:38 UTC 2024 - Dominique Leuenberger diff --git a/xdm.spec b/xdm.spec index 2695cfa..f0c9e5d 100644 --- a/xdm.spec +++ b/xdm.spec @@ -1,7 +1,7 @@ # # spec file for package xdm # -# Copyright (c) 2023 SUSE LLC +# 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 @@ -40,6 +40,7 @@ Patch1: xdm-tolerant-hostname-changes.diff Patch2: xdm-tarball.patch Patch3: n_Allow-the-greeter-to-set-the-input-fields-bg-color.patch Patch4: xinit-UsrEtcMove.patch +Patch5: u_gcc14-fix.patch BuildRequires: firewall-macros BuildRequires: libtool BuildRequires: pam-devel @@ -104,6 +105,7 @@ pushd xdm popd # reverse apply (boo#1130321) %patch -P 3 -p1 -R +%patch -P 5 -p1 %build # needed for patch0