From 2793dd0404e9b96f04954dde3ce7b30cf27dea4e Mon Sep 17 00:00:00 2001 From: Matheus Date: Mon, 22 Jun 2026 23:36:41 -0300 Subject: [PATCH] ports: xinit --- patches/xinit/jinx-working-patch.patch | 13 +++++++++++++ recipes/xinit | 18 ++++++++++++++++++ source-recipes/xinit | 9 +++++++++ 3 files changed, 40 insertions(+) create mode 100644 patches/xinit/jinx-working-patch.patch create mode 100644 recipes/xinit create mode 100644 source-recipes/xinit diff --git a/patches/xinit/jinx-working-patch.patch b/patches/xinit/jinx-working-patch.patch new file mode 100644 index 00000000..ffe3a914 --- /dev/null +++ b/patches/xinit/jinx-working-patch.patch @@ -0,0 +1,13 @@ +diff --git xinit-clean/startx.in xinit-workdir/startx.in +index 9b224af..6c69eab 100644 +--- xinit-clean/startx.in ++++ xinit-workdir/startx.in +@@ -267,7 +267,7 @@ if [ "$enable_xauth" = 1 ] ; then + hostname="$(uname -n)" + + authdisplay=${display:-:0} +- if [ -n "$has_cookie_maker" ] && [ -n "$mk_cookie" ] ; then ++ if [ -n "$has_cookie_maker" ] && [ -n "$mk_cookie" ] && command -v "$mk_cookie" >/dev/null 2>&1 ; then + mcookie=$($mk_cookie) + else + if [ -r /dev/urandom ]; then diff --git a/recipes/xinit b/recipes/xinit new file mode 100644 index 00000000..f567e06a --- /dev/null +++ b/recipes/xinit @@ -0,0 +1,18 @@ +name=xinit +revision=1 +from_source=xinit +imagedeps="gcc" +hostdeps="xgcc xbinutils pkgconfig" +deps="base xorg-server xauth xclock xrdb xmodmap xterm twm" + +configure() { + ${source_dir}/configure --prefix=${prefix} --host=x86_64-astral --with-xinitdir=${prefix}/lib/X11/xinit +} + +build() { + make -j${parallelism} +} + +package() { + make DESTDIR=${dest_dir} install +} diff --git a/source-recipes/xinit b/source-recipes/xinit new file mode 100644 index 00000000..02a9881a --- /dev/null +++ b/source-recipes/xinit @@ -0,0 +1,9 @@ +name=xinit +version=1.4.4 +source_method=tarball +tarball_url="https://www.x.org/releases/individual/app/xinit-${version}.tar.xz" +tarball_sha512="387285c952bbe074d2ed2dbbf745d1634763bb71f7f7edb22b3306b9e96ae4e28e59ecd6c48cc646b12dbdbcc68d42036bd127da75ef3c16fabdae87794ad6d1" +hostdeps="autoconf automake util-macros pkgconfig libtool" +prepare() { + autoreconf -fvi +}