Accepting request 1235079 from X11:XOrg

- Update to version 1.4.3
  * Reindent startx after !6
  * Remove Xdmx from suggested Xserver list
  * Mark global variables as static since there's only one source file
  * Clear -Wunused-parameter warnings from clang
  * Use ptrdiff_t to store results of pointer subtraction
  * Use asprintf() if available
  * Don't exit with failure on SIGTERM regardless.
  * darwin: Remove bashism from 10-tmpdirs script
  * Modernized shell scripts
  * startx: Assign XSERVERRC to correct userserverrc
  * add closing quote to /dev/random mcookie hex
- adjusted xinit-suse.patch
- refreshed xinit-client-session.patch
- refreshed xinit-tolerant-hostname-changes.patch

- Properly comment %patch 5 out: '#' still expands the macro, which
  makes build fail with rpm 4.20. Use %dnl instead.

OBS-URL: https://build.opensuse.org/request/show/1235079
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xinit?expand=0&rev=32
This commit is contained in:
Ana Guerrero 2025-01-06 15:04:41 +00:00 committed by Git OBS Bridge
commit a3b14a19da
7 changed files with 75 additions and 49 deletions

BIN
xinit-1.4.2.tar.xz (Stored with Git LFS)

Binary file not shown.

BIN
xinit-1.4.3.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,8 +1,8 @@
Index: xinit-1.3.4/xinit.c Index: xinit-1.4.3/xinit.c
=================================================================== ===================================================================
--- xinit-1.3.4.orig/xinit.c --- xinit-1.4.3.orig/xinit.c
+++ xinit-1.3.4/xinit.c +++ xinit-1.4.3/xinit.c
@@ -89,6 +89,7 @@ char xserverrcbuf[256]; @@ -90,6 +90,7 @@ static char xserverrcbuf[256];
#define TRUE 1 #define TRUE 1
#define FALSE 0 #define FALSE 0
@ -10,7 +10,7 @@ Index: xinit-1.3.4/xinit.c
static char *default_server = "X"; static char *default_server = "X";
static char *default_display = ":0"; /* choose most efficient */ static char *default_display = ":0"; /* choose most efficient */
@@ -560,6 +561,8 @@ startClient(char *client_argv[]) @@ -570,6 +571,8 @@ startClient(char *client_argv[])
{ {
clientpid = fork(); clientpid = fork();
if (clientpid == 0) { if (clientpid == 0) {
@ -19,7 +19,7 @@ Index: xinit-1.3.4/xinit.c
set_environment(); set_environment();
setWindowPath(); setWindowPath();
@@ -567,7 +570,17 @@ startClient(char *client_argv[]) @@ -577,7 +580,17 @@ startClient(char *client_argv[])
Error("cannot change uid"); Error("cannot change uid");
_exit(EXIT_FAILURE); _exit(EXIT_FAILURE);
} }

View File

@ -1,8 +1,8 @@
Index: xinit-1.4.0/startx.cpp Index: xinit-1.4.3/startx.cpp
=================================================================== ===================================================================
--- xinit-1.4.0.orig/startx.cpp 2018-03-10 02:46:03.000000000 +0100 --- xinit-1.4.3.orig/startx.cpp
+++ xinit-1.4.0/startx.cpp 2018-07-11 13:16:21.864694488 +0200 +++ xinit-1.4.3/startx.cpp
@@ -50,11 +50,103 @@ @@ -59,11 +59,103 @@ userclientrc=$HOME/.xinitrc
[ -f "${XINITRC}" ] && userclientrc="${XINITRC}" [ -f "${XINITRC}" ] && userclientrc="${XINITRC}"
sysclientrc=XINITDIR/xinitrc sysclientrc=XINITDIR/xinitrc
@ -97,52 +97,53 @@ Index: xinit-1.4.0/startx.cpp
+. /etc/sysconfig/displaymanager +. /etc/sysconfig/displaymanager
+ +
userserverrc=$HOME/.xserverrc userserverrc=$HOME/.xserverrc
[ -f "${XSERVERRC}" ] && userclientrc="${XSERVERRC}" [ -f "${XSERVERRC}" ] && userserverrc="${XSERVERRC}"
sysserverrc=XINITDIR/xserverrc sysserverrc=$xinitdir/xserverrc
defaultclient=XTERM defaultclient=$xterm
+XCOMM set X Server accordingly (Xorg/Xgl) +XCOMM set X Server accordingly (Xorg/Xgl)
defaultserver=XSERVER defaultserver=$xserver
+test -n "$DISPLAYMANAGER_XSERVER" && defaultserver=/usr/bin/$DISPLAYMANAGER_XSERVER +test -n "$DISPLAYMANAGER_XSERVER" && defaultserver=/usr/bin/$DISPLAYMANAGER_XSERVER
defaultclientargs="" defaultclientargs=""
defaultserverargs="" defaultserverargs=""
defaultdisplay="" defaultdisplay=""
@@ -312,6 +404,9 @@ @@ -317,6 +409,10 @@ EOF
fi
done done
fi fi
+XCOMM handle TCP port 6000 +XCOMM handle TCP port 6000
+test "$DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN" != "yes" && \ +test "$DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN" != "yes" && \
+ serverargs="$serverargs -nolisten tcp" + serverargs="$serverargs -nolisten tcp"
+
#if defined(__APPLE__) || defined(__CYGWIN__) case "$(uname -s)" in
eval XINIT \"$client\" $clientargs -- \"$server\" $display $serverargs CYGWIN_NT*|Darwin)
@@ -320,6 +415,12 @@ eval $xinit \"$client\" $clientargs -- \"$server\" $display $serverargs
#endif @@ -327,6 +423,12 @@ CYGWIN_NT*|Darwin)
esac
retval=$? retval=$?
+if [ "$retval" != 0 -a ! -u "/usr/bin/Xorg" ]; then +if [ "$retval" != 0 -a ! -u "/usr/bin/Xorg" ]; then
+ echo "-------------------------------------------------------------------------------------------" + echo "-------------------------------------------------------------------------------------------"
+ echo "xinit failed. /usr/bin/Xorg is not setuid, maybe that's the reason?" + echo "xinit failed. /usr/bin/Xorg is not setuid, maybe that's the reason?"
+ echo "If so either use a display manager (strongly recommended) or adjust /etc/permissions.local and run \"chkstat --system --set\" afterwards" + echo "If so either use a display manager (strongly recommended) or adjust /etc/permissions.local and run \"chkstat --system --set\" afterwards"
+fi +fi
+ +
if [ x"$enable_xauth" = x1 ] ; then if [ "$enable_xauth" = 1 ] ; then
if [ x"$removelist" != x ]; then if [ "$removelist" != "" ]; then
XAUTH remove $removelist $xauth remove $removelist
Index: xinit-1.4.0/xinitrc.cpp Index: xinit-1.4.3/xinitrc.cpp
=================================================================== ===================================================================
--- xinit-1.4.0.orig/xinitrc.cpp 2018-03-10 02:46:03.000000000 +0100 --- xinit-1.4.3.orig/xinitrc.cpp
+++ xinit-1.4.0/xinitrc.cpp 2018-07-11 13:13:23.808686361 +0200 +++ xinit-1.4.3/xinitrc.cpp
@@ -48,8 +48,10 @@ @@ -47,8 +47,10 @@ if [ -d $xinitdir/xinitrc.d ] ; then
unset f unset f
fi fi
-TWM & -$twm &
+if [ -x /usr/X11R6/bin/fvwm -o -x /usr/bin/fvwm]; then +if [ -x /usr/X11R6/bin/fvwm -o -x /usr/bin/fvwm]; then
+ exec fvwm + exec fvwm
+fi +fi
XCLOCK -geometry 50x50-1+1 & $xclock -geometry 50x50-1+1 &
XTERM -geometry 80x50+494+51 & $xterm -geometry 80x50+494+51 &
XTERM -geometry 80x20+494-0 & $xterm -geometry 80x20+494-0 &
-exec XTERM -geometry 80x66+0+0 -name login -exec $xterm -geometry 80x66+0+0 -name login
+exec TWM +exec $twm

View File

@ -1,12 +1,12 @@
Index: xinit-1.3.4/startx.cpp Index: xinit-1.4.3/startx.cpp
=================================================================== ===================================================================
--- xinit-1.3.4.orig/startx.cpp --- xinit-1.4.3.orig/startx.cpp
+++ xinit-1.3.4/startx.cpp +++ xinit-1.4.3/startx.cpp
@@ -407,6 +407,7 @@ fi @@ -412,6 +412,7 @@ fi
XCOMM handle TCP port 6000 XCOMM handle TCP port 6000
test "$DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN" != "yes" && \ test "$DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN" != "yes" && \
serverargs="$serverargs -nolisten tcp" serverargs="$serverargs -nolisten tcp"
+export XAUTHLOCALHOSTNAME=`hostname` +export XAUTHLOCALHOSTNAME=`hostname`
#if defined(__APPLE__) || defined(__CYGWIN__) case "$(uname -s)" in
eval XINIT \"$client\" $clientargs -- \"$server\" $display $serverargs CYGWIN_NT*|Darwin)

View File

@ -1,3 +1,28 @@
-------------------------------------------------------------------
Sun Jan 5 21:33:42 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>
- Update to version 1.4.3
* Reindent startx after !6
* Remove Xdmx from suggested Xserver list
* Mark global variables as static since there's only one source file
* Clear -Wunused-parameter warnings from clang
* Use ptrdiff_t to store results of pointer subtraction
* Use asprintf() if available
* Don't exit with failure on SIGTERM regardless.
* darwin: Remove bashism from 10-tmpdirs script
* Modernized shell scripts
* startx: Assign XSERVERRC to correct userserverrc
* add closing quote to /dev/random mcookie hex
- adjusted xinit-suse.patch
- refreshed xinit-client-session.patch
- refreshed xinit-tolerant-hostname-changes.patch
-------------------------------------------------------------------
Mon Dec 23 16:55:44 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Properly comment %patch 5 out: '#' still expands the macro, which
makes build fail with rpm 4.20. Use %dnl instead.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jul 4 12:02:51 UTC 2024 - Stefan Dirsch <sndirsch@suse.com> Thu Jul 4 12:02:51 UTC 2024 - Stefan Dirsch <sndirsch@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package xinit # spec file for package xinit
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -20,7 +20,7 @@
%define UsrEtcMove 1 %define UsrEtcMove 1
%endif %endif
Name: xinit Name: xinit
Version: 1.4.2 Version: 1.4.3
Release: 0 Release: 0
Summary: X Window System initializer Summary: X Window System initializer
License: MIT License: MIT
@ -72,7 +72,7 @@ sed -i 's+%{_sysconfdir}/X11+%{_libexecdir}+' %{PATCH0}
%patch -P 2 -p1 %patch -P 2 -p1
%patch -P 3 -p1 %patch -P 3 -p1
### patch is applied later in %install section ### patch is applied later in %install section
#%patch -P 5 -p0 %dnl %patch -P 5 -p0
# needed for patch0 # needed for patch0
autoreconf -fi autoreconf -fi