Skip to content

Commit 692662b

Browse files
committed
bump(main/entr): 5.8
1 parent 5e48339 commit 692662b

2 files changed

Lines changed: 19 additions & 10 deletions

File tree

packages/entr/build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://eradman.com/entrproject/
22
TERMUX_PKG_DESCRIPTION="Event Notify Test Runner - run arbitrary commands when files change"
33
TERMUX_PKG_LICENSE="ISC"
44
TERMUX_PKG_MAINTAINER="@termux"
5-
TERMUX_PKG_VERSION="5.7"
6-
TERMUX_PKG_REVISION=1
5+
TERMUX_PKG_VERSION="5.8"
76
TERMUX_PKG_SRCURL=https://eradman.com/entrproject/code/entr-${TERMUX_PKG_VERSION}.tar.gz
8-
TERMUX_PKG_SHA256=90c5d943820c70cef37eb41a382a6ea4f5dd7fd95efef13b2b5520d320f5d067
7+
TERMUX_PKG_SHA256=dc9a2bdc556b2be900c1d8cdf432de26492de5af3ffade000d4bfd97f3122bfb
98
TERMUX_PKG_AUTO_UPDATE=true
109
TERMUX_PKG_BUILD_IN_SRC=true
1110

packages/entr/entr.c.patch

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
1-
--- ./entr.c 2021-07-02 20:20:26.000000000 +0530
2-
+++ ./entr.c.mod 2021-07-26 20:02:28.474638318 +0530
3-
@@ -183,10 +183,10 @@
1+
--- a/entr.c
2+
+++ b/entr.c
3+
@@ -181,11 +181,11 @@
44
fprintf(stderr, "open_max: %d\n", open_max);
55

66
/* prevent interactive utilities from paging output */
77
- setenv("PAGER", "/bin/cat", 0);
88
+ setenv("PAGER", "@TERMUX_PREFIX@/bin/cat", 0);
99

1010
/* ensure a shell is available to use */
11-
- setenv("SHELL", "/bin/sh", 0);
12-
+ setenv("SHELL", "@TERMUX_PREFIX@/bin/sh", 0);
11+
if ((shell = getenv("SHELL")) == NULL)
12+
- shell = "/bin/sh";
13+
+ shell = "@TERMUX_PREFIX@/bin/sh";
14+
shell_base = strdup(shell);
15+
shell_base = basename(shell_base);
1316

14-
/* sequential scan may depend on a 0 at the end */
15-
files = calloc(open_max+1, sizeof(WatchFile *));
17+
@@ -571,7 +571,7 @@
18+
new_argv = calloc(argc + 1, sizeof(char *));
19+
if (new_argv == NULL)
20+
err(1, "calloc");
21+
- new_argv[0] = "/bin/false";
22+
+ new_argv[0] = "@TERMUX_PREFIX@/bin/false";
23+
for (m = 0, i = 0, p = arg_buf; i < argc; i++) {
24+
remaining = ARG_MAX - (p - arg_buf);
25+
new_argv[i] = p;

0 commit comments

Comments
 (0)