From 518c1ab2bf54e84b8bbf6c18ae0538c7e5636648 Mon Sep 17 00:00:00 2001 From: Matheus Date: Thu, 21 May 2026 23:25:27 -0300 Subject: [PATCH] ports: libxkbcommon, xdotool and missing patches --- patches/luit/jinx-working-patch.patch | 17 +++++++++++++++++ patches/xdotool/jinx-working-patch.patch | 14 ++++++++++++++ patches/xhost/jinx-working-patch.patch | 13 +++++++++++++ recipes/libxkbcommon | 18 ++++++++++++++++++ recipes/xdotool | 18 ++++++++++++++++++ source-recipes/libxkbcommon | 5 +++++ source-recipes/xdotool | 5 +++++ 7 files changed, 90 insertions(+) create mode 100644 patches/luit/jinx-working-patch.patch create mode 100644 patches/xdotool/jinx-working-patch.patch create mode 100644 patches/xhost/jinx-working-patch.patch create mode 100644 recipes/libxkbcommon create mode 100644 recipes/xdotool create mode 100644 source-recipes/libxkbcommon create mode 100644 source-recipes/xdotool diff --git a/patches/luit/jinx-working-patch.patch b/patches/luit/jinx-working-patch.patch new file mode 100644 index 00000000..845c3612 --- /dev/null +++ b/patches/luit/jinx-working-patch.patch @@ -0,0 +1,17 @@ +diff --git luit-clean/configure.ac luit-workdir/configure.ac +index c214d85..ba7b129 100644 +--- luit-clean/configure.ac ++++ luit-workdir/configure.ac +@@ -59,10 +59,10 @@ case $host_os in + darwin*) + OS_CFLAGS= + ;; +- linux*) ++ linux* | astral*) + AC_CHECK_HEADERS([poll.h]) + AC_CHECK_FUNCS([poll]) +- OS_CFLAGS="-D_XOPEN_SOURCE=500" ++ OS_CFLAGS="-D_XOPEN_SOURCE=600" + ;; + *) + AC_CHECK_HEADERS([poll.h]) diff --git a/patches/xdotool/jinx-working-patch.patch b/patches/xdotool/jinx-working-patch.patch new file mode 100644 index 00000000..f7452b51 --- /dev/null +++ b/patches/xdotool/jinx-working-patch.patch @@ -0,0 +1,14 @@ +diff --git xdotool-clean/xdo.h xdotool-workdir/xdo.h +index 24d9865..b5ccac7 100644 +--- xdotool-clean/xdo.h ++++ xdotool-workdir/xdo.h +@@ -8,6 +8,9 @@ + #define __USE_XOPEN + #endif /* __USE_XOPEN */ + ++typedef unsigned int useconds_t; ++ ++#include + #include + #include + #include diff --git a/patches/xhost/jinx-working-patch.patch b/patches/xhost/jinx-working-patch.patch new file mode 100644 index 00000000..f6e20226 --- /dev/null +++ b/patches/xhost/jinx-working-patch.patch @@ -0,0 +1,13 @@ +diff --git xhost-clean/xhost.c xhost-workdir/xhost.c +index 7a5e41a..c7a0711 100644 +--- xhost-clean/xhost.c ++++ xhost-workdir/xhost.c +@@ -171,7 +171,7 @@ XFamily(int af) + } + #endif /* NEEDSOCKETS */ + +-#if defined(__CYGWIN__) || defined(WIN32) ++#if defined(__CYGWIN__) || defined(WIN32) || defined(__astral__) + void sethostent(int x) + {} + diff --git a/recipes/libxkbcommon b/recipes/libxkbcommon new file mode 100644 index 00000000..a9941222 --- /dev/null +++ b/recipes/libxkbcommon @@ -0,0 +1,18 @@ +name=libxkbcommon +revision=1 +from_source=libxkbcommon +imagedeps="gcc meson ninja-build" +hostdeps="xgcc xbinutils pkgconfig automake autoconf util-macros libtool" +deps="base xkeyboardconfig libxcb libxml" + +configure() { + meson --cross-file ${base_dir}/util/crossfile --prefix=${prefix} ${source_dir} -Denable-wayland=false +} + +build() { + ninja +} + +package() { + DESTDIR=${dest_dir} ninja install +} diff --git a/recipes/xdotool b/recipes/xdotool new file mode 100644 index 00000000..41e124aa --- /dev/null +++ b/recipes/xdotool @@ -0,0 +1,18 @@ +name=xdotool +revision=1 +from_source=xdotool +imagedeps="meson build-essential" +hostdeps="xgcc xbinutils pkgconfig" +deps="base libx11 libxi libxkbcommon libxtst libxinerama" + +configure() { + cp -rp ${source_dir}/* . +} + +build() { + make -j${parallelism} WITHOUT_RPATH_FIX=1 CC=x86_64-astral-gcc +} + +package() { + make DESTDIR=${dest_dir} PREFIX=/usr install +} diff --git a/source-recipes/libxkbcommon b/source-recipes/libxkbcommon new file mode 100644 index 00000000..43c9d37f --- /dev/null +++ b/source-recipes/libxkbcommon @@ -0,0 +1,5 @@ +name=libxkbcommon +version=1.13.1 +source_method=tarball +tarball_url="https://github.com/lfs-book/libxkbcommon/archive/v${version}/libxkbcommon-${version}.tar.gz" +tarball_sha512="7cee7fc498c9bae19fc09356d0c989f1a3bb1f60f56768bc2e8bad9b2e89b9ccac9539228f5e14efe151f0b55b2b52db4fe047e166541121511a991e260bce4b" diff --git a/source-recipes/xdotool b/source-recipes/xdotool new file mode 100644 index 00000000..4d6b8d01 --- /dev/null +++ b/source-recipes/xdotool @@ -0,0 +1,5 @@ +name=xdotool +version=4.20260303.1 +source_method=tarball +tarball_url="https://github.com/jordansissel/xdotool/archive/refs/tags/v${version}.tar.gz" +tarball_sha512="2ec84a0856797d24c3fe7aa75cb643e37d1b2a2ff7dc332a11f9e88321592c4f0e2aa7a7e981ca98ca624fc120d1abb0021d97537555c43be77afc1b9a72803c"