summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2025-01-05 13:54:31 -0500
committerMatt Turner <mattst88@gentoo.org>2025-01-05 23:08:18 -0500
commit25aa95a483d41b5f6fd8dbe53936b3efe6a4a2e1 (patch)
treeca8f74943999a7c78d7f37ec80b63742827a7125 /x11-apps/xinit
parentsci-libs/mpfi: keyword 1.5.4_p20220401 for ~loong (diff)
downloadgentoo-25aa95a483d41b5f6fd8dbe53936b3efe6a4a2e1.tar.gz
gentoo-25aa95a483d41b5f6fd8dbe53936b3efe6a4a2e1.tar.bz2
gentoo-25aa95a483d41b5f6fd8dbe53936b3efe6a4a2e1.zip
x11-apps/xinit: Version bump to 1.4.3
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'x11-apps/xinit')
-rw-r--r--x11-apps/xinit/Manifest1
-rw-r--r--x11-apps/xinit/files/xinit-1.4.3-gentoo-customizations.patch60
-rw-r--r--x11-apps/xinit/files/xinit-1.4.3-startx-current-vt.patch34
-rw-r--r--x11-apps/xinit/xinit-1.4.3.ebuild75
4 files changed, 170 insertions, 0 deletions
diff --git a/x11-apps/xinit/Manifest b/x11-apps/xinit/Manifest
index 43e8e71ec08b..2f4aa3ce6a07 100644
--- a/x11-apps/xinit/Manifest
+++ b/x11-apps/xinit/Manifest
@@ -1 +1,2 @@
DIST xinit-1.4.2.tar.xz 156728 BLAKE2B 8f5c16d5ec9cc16c734b1661def4f7e68321259f24e7aac2b039b8e142fb4a324d2471a0f04d3b4448ae713082ad9ec7018083b00ed1a93aac90fa7db172247d SHA512 4b62c2edd97b40133577cbba88b3f31b36c5634b4eb667ef0c302e8358dc1c55a255abe42aaadc910d8aa9ea0e3add157a12a301382f1cdbe091df4e1215fae0
+DIST xinit-1.4.3.tar.xz 158348 BLAKE2B 321400aa6572a7309ece961c1f053382825de5c12a235eb7f4345d5da4f95a199a9e1987e21baa5c3a472d2638e8c18a1610e4f0d617f3205f58cd66415efb6a SHA512 ff754567d2224d1ff5023b302cae3a435950a6f24a773e214ea108b96d18b722d4cc86d0e25a7d92edea1307e3037248b4da004c1b392f73ba7bc1e04a94b77b
diff --git a/x11-apps/xinit/files/xinit-1.4.3-gentoo-customizations.patch b/x11-apps/xinit/files/xinit-1.4.3-gentoo-customizations.patch
new file mode 100644
index 000000000000..bdbde8614105
--- /dev/null
+++ b/x11-apps/xinit/files/xinit-1.4.3-gentoo-customizations.patch
@@ -0,0 +1,60 @@
+From 51b59e76c26da000de8a3d3f32d440d4213c2964 Mon Sep 17 00:00:00 2001
+From: Tomas Chvatal <scarabeus@gentoo.org>
+Date: Mon, 1 Nov 2010 16:46:36 +0100
+Subject: [PATCH] Gentoo customizations.
+
+Signed-off-by: Tomas Chvatal <scarabeus@gentoo.org>
+---
+ xinitrc.cpp | 26 ++++++++++++++++++--------
+ 1 file changed, 18 insertions(+), 8 deletions(-)
+
+diff --git ./xinitrc.cpp ./xinitrc.cpp
+index fa1675c..7cff166 100644
+--- ./xinitrc.cpp
++++ ./xinitrc.cpp
+@@ -9,8 +9,8 @@ xmodmap=XMODMAP
+
+ userresources=$HOME/.Xresources
+ usermodmap=$HOME/.Xmodmap
+-sysresources=$xinitdir/.Xresources
+-sysmodmap=$xinitdir/.Xmodmap
++sysresources=$xinitdir/Xresources
++sysmodmap=$xinitdir/Xmodmap
+
+ XCOMM merge in defaults and keymaps
+
+@@ -40,15 +40,25 @@ fi
+
+ XCOMM start some nice programs
+
++if [ -n "`/etc/X11/chooser.sh`" ]; then
++ command="`/etc/X11/chooser.sh`"
++else
++ failsafe="yes"
++fi
++
+ if [ -d $xinitdir/xinitrc.d ] ; then
+- for f in "$xinitdir/xinitrc.d"/?*.sh ; do
++ for f in "$xinitdir/xinitrc.d"/?* ; do
+ [ -x "$f" ] && . "$f"
+ done
+ unset f
+ fi
+
+-$twm &
+-$xclock -geometry 50x50-1+1 &
+-$xterm -geometry 80x50+494+51 &
+-$xterm -geometry 80x20+494-0 &
+-exec $xterm -geometry 80x66+0+0 -name login
++if [ -n "$failsafe" ]; then
++ $twm &
++ $xclock -geometry 50x50-1+1 &
++ $xterm -geometry 80x50+494+51 &
++ $xterm -geometry 80x20+494-0 &
++ exec $xterm -geometry 80x66+0+0 -name login
++else
++ exec $command
++fi
+--
+2.45.2
+
diff --git a/x11-apps/xinit/files/xinit-1.4.3-startx-current-vt.patch b/x11-apps/xinit/files/xinit-1.4.3-startx-current-vt.patch
new file mode 100644
index 000000000000..2feaedca6c2f
--- /dev/null
+++ b/x11-apps/xinit/files/xinit-1.4.3-startx-current-vt.patch
@@ -0,0 +1,34 @@
+From 14903751c4d53bb69c3ee241524888cf746784c6 Mon Sep 17 00:00:00 2001
+From: Matt Turner <mattst88@gmail.com>
+Date: Sat, 3 Dec 2022 18:21:50 -0500
+Subject: [PATCH] files/xinit-1.4.0-startx-current-vt.patch
+
+---
+ startx.cpp | 11 -----------
+ 1 file changed, 11 deletions(-)
+
+diff --git ./startx.cpp ./startx.cpp
+index 645566f..aa1dd7a 100644
+--- ./startx.cpp
++++ ./startx.cpp
+@@ -211,17 +211,6 @@ XCOMM process server arguments
+ if [ "$server" = "" ]; then
+ server=$defaultserver
+
+-if [ "$(uname -s)" = "Linux" ] ; then
+- XCOMM When starting the defaultserver start X on the current tty to avoid
+- XCOMM the startx session being seen as inactive:
+- XCOMM "https://bugzilla.redhat.com/show_bug.cgi?id=806491"
+- tty=$(tty)
+- if expr "$tty" : '/dev/tty[0-9][0-9]*$' > /dev/null; then
+- tty_num=${tty#/dev/tty}
+- vtarg="vt$tty_num -keeptty"
+- fi
+-fi
+-
+ XCOMM For compatibility reasons, only use xserverrc if there were no server command line arguments
+ if [ "$serverargs" = "" ] && [ "$display" = "" ]; then
+ if [ -f "$userserverrc" ]; then
+--
+2.45.2
+
diff --git a/x11-apps/xinit/xinit-1.4.3.ebuild b/x11-apps/xinit/xinit-1.4.3.ebuild
new file mode 100644
index 000000000000..204a32fcc6aa
--- /dev/null
+++ b/x11-apps/xinit/xinit-1.4.3.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit xorg-3
+
+DESCRIPTION="X Window System initializer"
+
+LICENSE="${LICENSE} GPL-2"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm-linux ~x86-linux"
+IUSE="twm"
+
+RDEPEND="
+ x11-apps/xauth
+ x11-libs/libX11
+"
+DEPEND="${RDEPEND}"
+PDEPEND="x11-apps/xrdb
+ twm? (
+ x11-apps/xclock
+ x11-apps/xsm
+ x11-terms/xterm
+ x11-wm/twm
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.4.3-gentoo-customizations.patch"
+ "${FILESDIR}/${PN}-1.4.3-startx-current-vt.patch"
+ "${FILESDIR}/${PN}-1.4.2-move-serverauthfile-into-tmp.patch"
+)
+
+XORG_CONFIGURE_OPTIONS=(
+ --with-xinitdir="${EPREFIX}"/etc/X11/xinit
+)
+
+src_install() {
+ xorg-3_src_install
+
+ exeinto /etc/X11
+ doexe "${FILESDIR}"/chooser.sh
+ exeinto /etc/X11/Sessions
+ doexe "${FILESDIR}"/Xsession
+ exeinto /etc/X11/xinit
+ newexe "${FILESDIR}"/xserverrc.2 xserverrc
+ exeinto /etc/X11/xinit/xinitrc.d/
+ doexe "${FILESDIR}"/00-xhost
+
+ insinto /usr/share/xsessions
+ doins "${FILESDIR}"/Xsession.desktop
+}
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ ewarn "If you use startx to start X instead of a login manager like gdm/kdm,"
+ ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or"
+ ewarn "any executable. When you run startx, it will run this as the login session."
+ ewarn "You can set this in a file in /etc/env.d/ for the entire system,"
+ ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)."
+ ewarn "Here's an example of setting it for the whole system:"
+ ewarn " echo XSESSION=\"Gnome\" > /etc/env.d/90xsession"
+ ewarn " env-update && source /etc/profile"
+ fi
+
+ for v in ${REPLACING_VERSIONS}; do
+ if ver_test "$v" "-lt" "1.4.1"; then
+ ewarn "Starting with ${CATEGORY}/${PN}-1.4.1 serverauth files are no longer kept in the"
+ ewarn "home directory but rather are created in \$TMPDIR (typically /tmp). The change"
+ ewarn "is transparent for most of users, however those that use runtime temporary"
+ ewarn "directories cleaning tools, like app-admin/tmpreaper, may need to adjust them"
+ ewarn "not to remove the 'serverauth.*' files."
+ fi
+ done
+}