tilix: update to 1.8.7.

closes #6585
This commit is contained in:
Rasmus Thomsen 2019-01-04 15:56:34 +01:00 committed by maxice8
parent 125ceaa0c0
commit 4d92051031
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
2 changed files with 92 additions and 3 deletions

View File

@ -0,0 +1,81 @@
Upstream: No
Reason: Reverts/Breaks flatpak integration to fix musl build.
--- source/gx/tilix/terminal/terminal.d 2019-01-04 01:03:40.000000000 +0100
+++ source/gx/tilix/terminal/terminal.d 2019-01-04 23:38:51.915350033 +0100
@@ -2834,31 +2834,8 @@
if (isFlatpak()) {
Pty pty = vte.ptyNewSync(VtePtyFlags.DEFAULT, null);
- int pty_master = pty.getFd();
-
- import core.sys.posix.stdlib: grantpt, unlockpt, ptsname;
- import core.sys.posix.fcntl: open, O_RDWR;
-
- if (grantpt(pty_master) != 0) {
- warning("Failed granting access to slave pseudoterminal device");
- return false;
- }
-
- if (unlockpt(pty_master) != 0) {
- warning("Failed unlocking slave pseudoterminal device");
- return false;
- }
-
- int[] pty_slaves;
- pty_slaves ~= open(ptsname(pty_master), O_RDWR | O_CLOEXEC);
- if (pty_slaves[0] < 0) {
- warning("Failed opening slave pseudoterminal device");
- return false;
- }
-
- foreach(i; 0 .. 2) {
- pty_slaves ~= core.sys.posix.unistd.dup(pty_slaves[0]);
- }
+ import vtec.vte: vte_pty_child_setup;
+ vte_pty_child_setup(pty.getPtyStruct());
import VteVersion = vte.Version;
@@ -2892,7 +2869,7 @@
onTerminalChildExited(status, vte);
}
- bool result = sendHostCommand(workingDir, args, envv, pty_slaves, gpid, &exitedCallback);
+ bool result = sendHostCommand(workingDir, args, envv, gpid, &exitedCallback);
vte.setPty(pty);
@@ -2971,15 +2948,20 @@
}
}
- bool sendHostCommand(string workingDir, string[] args, string[] envv, int[] stdio_fds, out int gpid, HostCommandExitedCallback exitedCallback) {
+ bool sendHostCommand(string workingDir, string[] args, string[] envv, out int gpid, HostCommandExitedCallback exitedCallback) {
import gio.DBusConnection;
import gio.UnixFDList;
uint[] handles;
+ int[] fdList;
+
+ fdList ~= std.stdio.stdin.fileno;
+ fdList ~= std.stdio.stdout.fileno;
+ fdList ~= std.stdio.stderr.fileno;
UnixFDList outFdList;
UnixFDList inFdList = new UnixFDList();
- foreach(i, fd; stdio_fds) {
+ foreach(i, fd; fdList) {
handles ~= inFdList.append(fd);
if (handles[i] == -1) {
warning("Error creating fd list handles");
@@ -3071,9 +3053,7 @@
status = command_status;
}
- int[] stdio_fds = [0, output.writeEnd.fileno, 2] ~ extra_fds;
-
- if (!sendHostCommand("/", args, [], stdio_fds, gpid, &commandExited)) {
+ if (!sendHostCommand("/", args, [], gpid, &commandExited)) {
return null;
}

View File

@ -1,18 +1,26 @@
# Template file for 'tilix' # Template file for 'tilix'
pkgname=tilix pkgname=tilix
version=1.8.5 version=1.8.7
revision=3 revision=1
build_style=gnu-configure build_style=gnu-configure
hostmakedepends="automake gettext-devel gdk-pixbuf glib-devel ldc po4a pkg-config hostmakedepends="automake gettext-devel gdk-pixbuf glib-devel ldc po4a pkg-config
librsvg" librsvg"
makedepends="dconf-devel gtkd-devel libglib-devel libvted-devel libX11-devel" makedepends="dconf-devel gtkd-devel libglib-devel libvted-devel libX11-devel"
depends="gsettings-desktop-schemas"
short_desc="Tiling terminal emulator for Linux" short_desc="Tiling terminal emulator for Linux"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>" maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="MPL-2.0" license="MPL-2.0"
homepage="https://gnunn1.github.io/tilix-web/" homepage="https://gnunn1.github.io/tilix-web/"
distfiles="https://github.com/gnunn1/${pkgname}/archive/${version}.tar.gz" distfiles="https://github.com/gnunn1/${pkgname}/archive/${version}.tar.gz"
checksum=b4fd4624a39b19c612199ffb56b5d617afbbab8995a4c0da66ef80ed193c616f checksum=ad09434a7f2b62b0016e31f8a298c7a26ecda159835cf80d0d2af3173e098d0e
pre_configure() { pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*musl)
patch -Np0 -i ${FILESDIR}/musl-hacks.patch
export DCFLAGS="-linker=bfd"
;;
esac
autoreconf -fi autoreconf -fi
} }