diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2023-02-06 12:39:00 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2023-02-06 19:25:58 +0000 |
commit | e239314a86fd69d64c856fed632e155f6ca4549b (patch) | |
tree | 12de350e07d34befedd8d5a5b2f20fa244ca40b2 /astro | |
parent | graphics/mesa-devel: drop duplicate Meson argument after d8990eff958b (diff) |
astro/mepo: unbreak zoom in/out on SIGUSR1/SIGUSR2
https://git.sr.ht/~mil/mepo/commit/2e50c6f02618
Diffstat (limited to 'astro')
-rw-r--r-- | astro/mepo/Makefile | 1 | ||||
-rw-r--r-- | astro/mepo/files/patch-src_api_bind__signal.zig | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/astro/mepo/Makefile b/astro/mepo/Makefile index 20c36e8a0501..6d0f071752de 100644 --- a/astro/mepo/Makefile +++ b/astro/mepo/Makefile @@ -1,5 +1,6 @@ PORTNAME= mepo DISTVERSION= 1.1.2 +PORTREVISION= 1 CATEGORIES= astro geography wayland MASTER_SITES= https://git.sr.ht/~mil/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/ diff --git a/astro/mepo/files/patch-src_api_bind__signal.zig b/astro/mepo/files/patch-src_api_bind__signal.zig new file mode 100644 index 000000000000..378d281adc74 --- /dev/null +++ b/astro/mepo/files/patch-src_api_bind__signal.zig @@ -0,0 +1,25 @@ +https://lists.sr.ht/~mil/mepo-devel/patches/38775 + +--- src/api/bind_signal.zig.orig 2023-02-01 03:43:08 UTC ++++ src/api/bind_signal.zig +@@ -39,13 +39,14 @@ fn bind_signal(mepo: *Mepo, signo_str: [:0]const u8, expression: []const u8) !vo + } + + // Register generic signal handler +- if (0 != std.os.linux.sigaction(signal_name, &.{ ++ const signal_action = std.os.Sigaction{ + .handler = .{ .handler = utilsdl.sdl_push_event_signal }, +- .mask = [_]u32{0} ** 32, +- .flags = @as(c_uint, 0), +- }, null)) { +- return error.FailedToSetupSighandler; +- } ++ .mask = std.os.empty_sigset, ++ .flags = 0, ++ }; ++ ++ std.os.sigaction(signal_name, &signal_action, null) ++ catch return error.FailedToSetupSighandler; + + if (mepo.table_signals.get(signal_name)) |heap_str| { + mepo.allocator.free(heap_str); |