From 48dacc6c1e2ada032192a8242343a018e9ce7ea3 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] New package: lswt-v1.0.2 --- srcpkgs/lswt/patches/execinfo.patch | 43 +++++++++++++++++++++++++++++ srcpkgs/lswt/template | 14 ++++++++++ 2 files changed, 57 insertions(+) create mode 100644 srcpkgs/lswt/patches/execinfo.patch create mode 100644 srcpkgs/lswt/template 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 diff --git a/srcpkgs/lswt/template b/srcpkgs/lswt/template new file mode 100644 index 000000000000..c720ae982eb4 --- /dev/null +++ b/srcpkgs/lswt/template @@ -0,0 +1,14 @@ +# Template file for 'lswt' +pkgname=lswt +version=v1.0.2 +revision=1 +build_style=gnu-makefile +hostmakedepends="wayland-devel" +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"