From d2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 15 Jun 2022 20:02:02 +0100 Subject: added deps for qemu --- repo/vte3/fix-W_EXITCODE.patch | 17 +++++++++++++++++ repo/vte3/syscall.patch | 15 +++++++++++++++ repo/vte3/vte3.xibuild | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 repo/vte3/fix-W_EXITCODE.patch create mode 100644 repo/vte3/syscall.patch create mode 100644 repo/vte3/vte3.xibuild (limited to 'repo/vte3') diff --git a/repo/vte3/fix-W_EXITCODE.patch b/repo/vte3/fix-W_EXITCODE.patch new file mode 100644 index 0000000..ae6e5e4 --- /dev/null +++ b/repo/vte3/fix-W_EXITCODE.patch @@ -0,0 +1,17 @@ +Source: https://mail-archives.apache.org/mod_mbox/mesos-reviews/201610.mbox/%3C20161014170728.1720.54446@reviews.apache.org%3E +Upstream: No +Reason: fixes compilation with musl that doesn't define W* macros. + +--- a/src/widget.cc ++++ b/src/widget.cc +@@ -31,6 +31,10 @@ + #include "vteptyinternal.hh" + #include "debug.h" + ++#ifndef W_EXITCODE ++#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) ++#endif ++ + using namespace std::literals; + + namespace vte { diff --git a/repo/vte3/syscall.patch b/repo/vte3/syscall.patch new file mode 100644 index 0000000..2564b80 --- /dev/null +++ b/repo/vte3/syscall.patch @@ -0,0 +1,15 @@ +upstream report: +https://gitlab.gnome.org/GNOME/vte/-/issues/342 + +diff --git a/src/missing.hh b/src/missing.hh +index d5d0484..5738813 100644 +--- a/src/missing.hh ++++ b/src/missing.hh +@@ -35,6 +35,7 @@ char* strchrnul(char const* s, + #endif + + #ifdef __linux__ ++#include + + /* BEGIN + * The following is copied from systemd/src/basic/missing_syscall_def.h (LGPL2.1+) diff --git a/repo/vte3/vte3.xibuild b/repo/vte3/vte3.xibuild new file mode 100644 index 0000000..9d490a1 --- /dev/null +++ b/repo/vte3/vte3.xibuild @@ -0,0 +1,35 @@ +#!/bin/sh + +NAME="vte3" +DESC="Virtual Terminal Emulator library" + +MAKEDEPS="bash gnutls gobject-introspection gperf gtk3 gtk2 icu intltool libxml2 linux-headers meson ncurses pango pcre2 vala" + +PKG_VER=0.68.0 +SOURCE="https://gitlab.gnome.org/GNOME/vte/-/archive/$PKG_VER/vte-$PKG_VER.tar.gz" + +ADDITIONAL=" +fix-W_EXITCODE.patch +syscall.patch +" + +prepare () { + apply_patches +} + +build() { + meson --prefix=/usr \ + -Ddocs=false \ + -D_systemd=false \ + . output + meson compile ${JOBS:+-j ${JOBS}} -C output +} + +check() { + meson test --no-rebuild -v -C output +} + +package() { + DESTDIR="$PKG_DEST" meson install --no-rebuild -C output +} + -- cgit v1.2.1