From 28323cd3ce6d71644b070d0aaa20f280d3ef8394 Mon Sep 17 00:00:00 2001 From: user18130814200115-2 <66143190+user18130814200115-2@users.noreply.github.com> Date: Sun, 9 Jan 2022 20:27:13 +0000 Subject: [PATCH 1/3] Added lswt template New template for lswt, a program that allows one to list wayland toplevels using the foreign-toplevel-management-unstable-v1 protocol --- srcpkgs/lswt/template | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/lswt/template diff --git a/srcpkgs/lswt/template b/srcpkgs/lswt/template new file mode 100644 index 000000000000..eaf0f46b0704 --- /dev/null +++ b/srcpkgs/lswt/template @@ -0,0 +1,13 @@ +# Template file for 'lswt' +pkgname=lswt +version=v1.0.2 +revision=1 +build_style=gnu-makefile +makedepends="wayland-devel" +short_desc="List wayland toplevels using foreign-toplevel-management-unstable-v1" +maintainer="Thijs Wester " +license="GPL-3.0-only" +homepage="https://git.sr.ht/~leon_plickat/lswt" +changelog="https://git.sr.ht/~leon_plickat/lswt/refs/${version}" +distfiles="https://git.sr.ht/~leon_plickat/lswt/archive/${version}.tar.gz" +checksum="28810c124c0d017ffe41e4b91461a07692aa12a3cd49261c3297dfb0dcf2f4cf" From 74c952132602fe5a000c99dcd21d4582777cb313 Mon Sep 17 00:00:00 2001 From: user18130814200115-2 <66143190+user18130814200115-2@users.noreply.github.com> Date: Sun, 9 Jan 2022 20:30:29 +0000 Subject: [PATCH 2/3] lswt: PATCH disable execinfo.h Only include execinfo.h when GLIBC is used. This patch is from the upstream repository but is not present in any release yet --- srcpkgs/lswt/patches/execinfo.patch | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 srcpkgs/lswt/patches/execinfo.patch diff --git a/srcpkgs/lswt/patches/execinfo.patch b/srcpkgs/lswt/patches/execinfo.patch new file mode 100644 index 000000000000..292d6900256d --- /dev/null +++ b/srcpkgs/lswt/patches/execinfo.patch @@ -0,0 +1,43 @@ +From 389b2578b27b1f3dc65952bf0d3f98e12410a8b8 Mon Sep 17 00:00:00 2001 +From: Leon Henrik Plickat +Date: Fri, 26 Nov 2021 13:45:06 +0100 +Subject: [PATCH] Only include execinfo.h when GLIBC is used + +--- + lswt.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/lswt.c b/lswt.c +index b61463d..f5fe78a 100644 +--- a/lswt.c ++++ b/lswt.c +@@ -27,8 +27,11 @@ + #include + + #ifdef __linux__ ++#include ++#ifdef __GLIBC__ + #include + #endif ++#endif + + #include "xdg-output-unstable-v1.h" + #include "wlr-foreign-toplevel-management-unstable-v1.h" +@@ -642,6 +645,7 @@ static void handle_error (int signum) + fputs(msg, stderr); + + #ifdef __linux__ ++#ifdef __GLIBC__ + fputs("Attempting to get backtrace:\n", stderr); + + /* In some rare cases, getting a backtrace can also cause a segfault. +@@ -652,6 +656,7 @@ static void handle_error (int signum) + const int calls = backtrace(buffer, sizeof(buffer) / sizeof(void *)); + backtrace_symbols_fd(buffer, calls, fileno(stderr)); + fputs("\n", stderr); ++#endif + #endif + + /* Let the default handlers deal with the rest. */ +-- +2.32.0 From d272c44b4fc70e1faa487def814cdf56dc4b46bc Mon Sep 17 00:00:00 2001 From: user18130814200115-2 <66143190+user18130814200115-2@users.noreply.github.com> Date: Mon, 10 Jan 2022 18:58:04 +0000 Subject: [PATCH 3/3] Fix lswt template The package was cross-compiling, I believe this should now be fixed --- srcpkgs/lswt/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/lswt/template b/srcpkgs/lswt/template index eaf0f46b0704..261e0e9349ff 100644 --- a/srcpkgs/lswt/template +++ b/srcpkgs/lswt/template @@ -3,7 +3,7 @@ pkgname=lswt version=v1.0.2 revision=1 build_style=gnu-makefile -makedepends="wayland-devel" +hostmakedepends="wayland-devel" short_desc="List wayland toplevels using foreign-toplevel-management-unstable-v1" maintainer="Thijs Wester " license="GPL-3.0-only"