SHA256
1
0
forked from pool/xdm

Accepting request 1155484 from X11:XOrg

- u_gcc14-fix.patch
  * fix build against gcc14 (boo#1221028)

OBS-URL: https://build.opensuse.org/request/show/1155484
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xdm?expand=0&rev=103
This commit is contained in:
Dominique Leuenberger 2024-03-07 17:27:46 +00:00 committed by Git OBS Bridge
commit 99bcdf3cc5
3 changed files with 21 additions and 1 deletions

12
u_gcc14-fix.patch Normal file
View File

@ -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;

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Mar 6 09:21:36 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>
- u_gcc14-fix.patch
* fix build against gcc14 (boo#1221028)
-------------------------------------------------------------------
Mon Feb 26 12:07:38 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -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