Update to lemonbar 1.4

Add pledge support (sync with x11/lemonbar-xft).
This commit is contained in:
feinerer 2020-12-15 14:16:08 +00:00
parent 38c7f380f5
commit 8c71318ebb
3 changed files with 27 additions and 4 deletions

View File

@ -1,8 +1,8 @@
# $OpenBSD: Makefile,v 1.6 2019/07/12 20:51:15 sthen Exp $
# $OpenBSD: Makefile,v 1.7 2020/12/15 14:16:08 feinerer Exp $
COMMENT = featherweight lemon-scented bar
VERSION = 1.3
VERSION = 1.4
PKGNAME = lemonbar-${VERSION}

View File

@ -1,2 +1,2 @@
SHA256 (bar-1.3.tar.gz) = 6ueExeN1stCxITi+GpkCvrS17rgH81EvMPFLoj3ao30=
SIZE (bar-1.3.tar.gz) = 14930
SHA256 (bar-1.4.tar.gz) = e/0216SpUPYe0NMsfSGWeOd4elRtnvS8M/Ajk9YOSTk=
SIZE (bar-1.4.tar.gz) = 16810

View File

@ -0,0 +1,23 @@
$OpenBSD: patch-lemonbar_c,v 1.1 2020/12/15 14:16:08 feinerer Exp $
Index: lemonbar.c
--- lemonbar.c.orig
+++ lemonbar.c
@@ -1,5 +1,4 @@
// vim:sw=4:ts=4:et:
-#define _POSIX_C_SOURCE 200809L
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
@@ -1503,6 +1502,11 @@ main (int argc, char **argv)
free(wm_name);
// Get the fd to Xserver
pollin[1].fd = xcb_get_file_descriptor(c);
+
+ if (pledge("stdio", NULL) == -1) {
+ fprintf(stderr, "pledge: %s\n", strerror(errno));
+ return EXIT_FAILURE;
+ }
for (;;) {
bool redraw = false;