<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/meson.build, branch 1.7.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.7.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.7.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2021-03-20T13:01:29Z</updated>
<entry>
<title>meson/pkgbuild: bump version to 1.7.0</title>
<updated>2021-03-20T13:01:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-20T13:01:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c1a64bfb1433e2c834343bde7f019a30430fcd87'/>
<id>urn:sha1:c1a64bfb1433e2c834343bde7f019a30430fcd87</id>
<content type='text'>
</content>
</entry>
<entry>
<title>meson: SOURCE_DIR is not a valid macro in custom_target()</title>
<updated>2021-03-11T16:30:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-11T16:30:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=928b819934f6085a0ee62b21d998474470c0cbdc'/>
<id>urn:sha1:928b819934f6085a0ee62b21d998474470c0cbdc</id>
<content type='text'>
But appears to have been allowed in older versions of meson.

Fixes an issue where foot’s version was always reported as the last
stable release, even though it was a git build.
</content>
</entry>
<entry>
<title>meson: bump minimum xkbcommon version to 1.0.0</title>
<updated>2021-03-07T19:28:17Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-03-07T19:28:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2e31a1ec7a426231dbd93adf6feb1936af0df7d0'/>
<id>urn:sha1:2e31a1ec7a426231dbd93adf6feb1936af0df7d0</id>
<content type='text'>
This requirement is due to the recently added maybe_repair_key_combo()
function, which is making use of xkb_keymap_key_get_mods_for_level().

See also: commit a5b554761a8b376657be2a7e613b37fd5803920c.
</content>
</entry>
<entry>
<title>user-notification: add new function ‘user_notification_add()’</title>
<updated>2021-02-12T20:42:53Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-12T08:25:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2a99c5a093737b7905d71ee2df24d3a17b1d83e2'/>
<id>urn:sha1:2a99c5a093737b7905d71ee2df24d3a17b1d83e2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'releases/1.6'</title>
<updated>2021-02-12T20:41:53Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-12T20:41:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=df1ed1c8cf39d28831090c3a209365c93001aa37'/>
<id>urn:sha1:df1ed1c8cf39d28831090c3a209365c93001aa37</id>
<content type='text'>
</content>
</entry>
<entry>
<title>meson/pkgbuild: bump version to 1.6.4</title>
<updated>2021-02-12T20:27:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-12T20:27:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dcd4f1ca798f3f86e211d91395874534d2acb0e1'/>
<id>urn:sha1:dcd4f1ca798f3f86e211d91395874534d2acb0e1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: client: factor out some common code for "--log-level" option</title>
<updated>2021-02-11T11:08:18Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-02-11T11:08:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5437321f97e21a3fc6fca79fbdf05ca8d6199b35'/>
<id>urn:sha1:5437321f97e21a3fc6fca79fbdf05ca8d6199b35</id>
<content type='text'>
</content>
</entry>
<entry>
<title>urls: initial support for detecting URLs and rendering jump-labels</title>
<updated>2021-02-07T15:33:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-31T10:12:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2cc84db97978388475504592c88911046bcd2eb6'/>
<id>urn:sha1:2cc84db97978388475504592c88911046bcd2eb6</id>
<content type='text'>
The jump labels work, but is currently hardcoded to use xdg-open
</content>
</entry>
<entry>
<title>Merge branch 'releases/1.6'</title>
<updated>2021-01-29T19:12:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-29T19:12:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c4363ef3363a35bcae383951f955401e18ed8908'/>
<id>urn:sha1:c4363ef3363a35bcae383951f955401e18ed8908</id>
<content type='text'>
</content>
</entry>
<entry>
<title>meson/pkgbuild: bump version to 1.6.3</title>
<updated>2021-01-29T18:53:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-29T18:53:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4c168b84cf2d0a8259c3297902597a0ecf433b10'/>
<id>urn:sha1:4c168b84cf2d0a8259c3297902597a0ecf433b10</id>
<content type='text'>
</content>
</entry>
<entry>
<title>meson: optionalize terminfo dependency</title>
<updated>2021-01-23T09:18:09Z</updated>
<author>
<name>Jan Beich</name>
<email>jbeich@FreeBSD.org</email>
</author>
<published>2021-01-19T14:22:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8b092256d1cec7f93ac7d0cfec073c31b455a42e'/>
<id>urn:sha1:8b092256d1cec7f93ac7d0cfec073c31b455a42e</id>
<content type='text'>
ncurses on FreeBSD still uses termcap(5) while foot works fine with
xterm-256color sans status line and visible bell. Having more than
one ncurses version installed may break other applications.

Document -Dterminfo=false uses --term=xterm-256color by default
</content>
</entry>
<entry>
<title>meson: depend on wayland-client when using wayland-protocols</title>
<updated>2021-01-23T09:16:52Z</updated>
<author>
<name>Jan Beich</name>
<email>jbeich@FreeBSD.org</email>
</author>
<published>2021-01-21T07:00:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0b07bf78f0556a0c4c7290ee8fc6b95a382cf2e9'/>
<id>urn:sha1:0b07bf78f0556a0c4c7290ee8fc6b95a382cf2e9</id>
<content type='text'>
Base compiler on BSDs doesn't look where packages are installed to
avoid tainting build environment. When system fcft is installed to
the same prefix as wayland-client it passes CFLAGS that satisfy both
but when using subprojects/fcft there's a build error.

xdg-shell.c:33:10: fatal error: 'wayland-util.h' file not found
xdg-decoration-unstable-v1.c:28:10: fatal error: 'wayland-util.h' file not found
xdg-output-unstable-v1.c:28:10: fatal error: 'wayland-util.h' file not found
presentation-time.c:28:10: fatal error: 'wayland-util.h' file not found
primary-selection-unstable-v1.c:28:10: fatal error: 'wayland-util.h' file not found
text-input-unstable-v3.c:33:10: fatal error: 'wayland-util.h' file not found
In file included from ../../foot/grid.c:1:
In file included from ../../foot/grid.h:5:
In file included from ../../foot/terminal.h:19:
../../foot/wayland.h:8:10: fatal error: 'wayland-client.h' file not found
In file included from ../../foot/selection.c:1:
../../foot/selection.h:4:10: fatal error: 'wayland-client.h' file not found
</content>
</entry>
<entry>
<title>meson: require epoll-shim on BSDs</title>
<updated>2021-01-23T09:16:48Z</updated>
<author>
<name>Jan Beich</name>
<email>jbeich@FreeBSD.org</email>
</author>
<published>2021-01-19T15:54:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3ac107ce821fb7c1638ebc0e7de2ac35fbceb043'/>
<id>urn:sha1:3ac107ce821fb7c1638ebc0e7de2ac35fbceb043</id>
<content type='text'>
epoll/timerfd are Linux-only but BSDs have a shim via kqueue.
libwayland on FreeBSD uses epoll-shim by default, so the build may
fail at linking instead of compilation stage.

csi.c:13:10: fatal error: 'sys/timerfd.h' file not found
 #include &lt;sys/timerfd.h&gt;
          ^~~~~~~~~~~~~~~
selection.c:10:10: fatal error: 'sys/epoll.h' file not found
 #include &lt;sys/epoll.h&gt;
          ^~~~~~~~~~~~~
terminal.c:15:10: fatal error: 'sys/epoll.h' file not found
 #include &lt;sys/epoll.h&gt;
          ^~~~~~~~~~~~~
ld: error: undefined symbol: timerfd_create
&gt;&gt;&gt; referenced by pgo.c:154 (pgo/pgo.c:154)
&gt;&gt;&gt;               pgo.p/pgo_pgo.c.o:(main)
&gt;&gt;&gt; referenced by pgo.c:158 (pgo/pgo.c:158)
&gt;&gt;&gt;               pgo.p/pgo_pgo.c.o:(main)
&gt;&gt;&gt; referenced by terminal.c:2022 (terminal.c:2022)
&gt;&gt;&gt;               terminal.c.o:(cursor_blink_rearm_timer) in archive libpgolib.a
&gt;&gt;&gt; referenced 7 more times

ld: error: undefined symbol: epoll_shim_close
&gt;&gt;&gt; referenced by pgo.c:160 (pgo/pgo.c:160)
&gt;&gt;&gt;               pgo.p/pgo_pgo.c.o:(main)
&gt;&gt;&gt; referenced by pgo.c:258 (pgo/pgo.c:258)
&gt;&gt;&gt;               pgo.p/pgo_pgo.c.o:(main)
&gt;&gt;&gt; referenced by pgo.c:277 (pgo/pgo.c:277)
&gt;&gt;&gt;               pgo.p/pgo_pgo.c.o:(main)
&gt;&gt;&gt; referenced 14 more times

ld: error: undefined symbol: epoll_shim_read
&gt;&gt;&gt; referenced by pgo.c:251 (pgo/pgo.c:251)
&gt;&gt;&gt;               pgo.p/pgo_pgo.c.o:(main)
&gt;&gt;&gt; referenced by terminal.c:237 (terminal.c:237)
&gt;&gt;&gt;               terminal.c.o:(fdm_ptmx) in archive libpgolib.a
&gt;&gt;&gt; referenced by terminal.c:363 (terminal.c:363)
&gt;&gt;&gt;               terminal.c.o:(fdm_blink) in archive libpgolib.a
&gt;&gt;&gt; referenced 8 more times

ld: error: undefined symbol: timerfd_settime
&gt;&gt;&gt; referenced by terminal.c:301 (terminal.c:301)
&gt;&gt;&gt;               terminal.c.o:(fdm_ptmx) in archive libpgolib.a
&gt;&gt;&gt; referenced by terminal.c:309 (terminal.c:309)
&gt;&gt;&gt;               terminal.c.o:(fdm_ptmx) in archive libpgolib.a
&gt;&gt;&gt; referenced by terminal.c:2041 (terminal.c:2041)
&gt;&gt;&gt;               terminal.c.o:(cursor_blink_rearm_timer) in archive libpgolib.a
&gt;&gt;&gt; referenced 11 more times

ld: error: undefined symbol: timerfd_gettime
&gt;&gt;&gt; referenced by selection.c:1165 (selection.c:1165)
&gt;&gt;&gt;               selection.c.o:(selection_start_scroll_timer) in archive libpgolib.a
</content>
</entry>
<entry>
<title>meson: libpthread may lack C11 threads e.g., on FreeBSD</title>
<updated>2021-01-23T09:16:46Z</updated>
<author>
<name>Jan Beich</name>
<email>jbeich@FreeBSD.org</email>
</author>
<published>2021-01-19T15:48:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=796301f2281f3805567e75bfadb4f1f0ab7be1e3'/>
<id>urn:sha1:796301f2281f3805567e75bfadb4f1f0ab7be1e3</id>
<content type='text'>
ld: error: undefined symbol: mtx_init
&gt;&gt;&gt; referenced by terminal.c:579 (terminal.c:579)
&gt;&gt;&gt;               terminal.c.o:(initialize_render_workers) in archive libpgolib.a

ld: error: undefined symbol: thrd_create
&gt;&gt;&gt; referenced by terminal.c:595 (terminal.c:595)
&gt;&gt;&gt;               terminal.c.o:(initialize_render_workers) in archive libpgolib.a
&gt;&gt;&gt; referenced by terminal.c:935 (terminal.c:935)
&gt;&gt;&gt;               terminal.c.o:(reload_fonts) in archive libpgolib.a
&gt;&gt;&gt; did you mean: thr_create
&gt;&gt;&gt; defined in: /lib/libc.so.7

ld: error: undefined symbol: mtx_lock
&gt;&gt;&gt; referenced by terminal.c:1410 (terminal.c:1410)
&gt;&gt;&gt;               terminal.c.o:(term_destroy) in archive libpgolib.a

ld: error: undefined symbol: mtx_unlock
&gt;&gt;&gt; referenced by terminal.c:1427 (terminal.c:1427)
&gt;&gt;&gt;               terminal.c.o:(term_destroy) in archive libpgolib.a

ld: error: undefined symbol: thrd_join
&gt;&gt;&gt; referenced by terminal.c:1462 (terminal.c:1462)
&gt;&gt;&gt;               terminal.c.o:(term_destroy) in archive libpgolib.a
&gt;&gt;&gt; referenced by terminal.c:947 (terminal.c:947)
&gt;&gt;&gt;               terminal.c.o:(reload_fonts) in archive libpgolib.a

ld: error: undefined symbol: mtx_destroy
&gt;&gt;&gt; referenced by terminal.c:1466 (terminal.c:1466)
&gt;&gt;&gt;               terminal.c.o:(term_destroy) in archive libpgolib.a
</content>
</entry>
<entry>
<title>meson: don't force POSIX compliance</title>
<updated>2021-01-23T09:16:43Z</updated>
<author>
<name>Jan Beich</name>
<email>jbeich@FreeBSD.org</email>
</author>
<published>2021-01-19T15:40:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=909938b83c7f62302f94e8184e7717737265fe08'/>
<id>urn:sha1:909938b83c7f62302f94e8184e7717737265fe08</id>
<content type='text'>
foot uses a number of functions not in any POSIX version. On non-glibc
systems defining _POSIX_C_SOURCE usually hides non-compliant interfaces.

In file included from grid.c:1:
In file included from grid.h:4:
terminal.h:45:15: error: expected parameter declarator
static_assert(sizeof(struct attributes) == 8, "bad size");
              ^
terminal.h:45:15: error: expected ')'
terminal.h:45:14: note: to match this '('
static_assert(sizeof(struct attributes) == 8, "bad size");
             ^
terminal.h:45:1: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int]
static_assert(sizeof(struct attributes) == 8, "bad size");
^
terminal.h:55:15: error: expected parameter declarator
static_assert(sizeof(struct cell) == 12, "bad size");
              ^
terminal.h:55:15: error: expected ')'
terminal.h:55:14: note: to match this '('
static_assert(sizeof(struct cell) == 12, "bad size");
             ^
terminal.h:55:1: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int]
static_assert(sizeof(struct cell) == 12, "bad size");
^
grid.c:317:32: error: implicit declaration of function 'wcwidth' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
            int width = max(1, wcwidth(wc));
                               ^
grid.c:317:32: note: did you mean '__wcwidth'?
/usr/include/_ctype.h:161:1: note: '__wcwidth' declared here
__wcwidth(__ct_rune_t _c)
^
selection.c:1695:9: error: implicit declaration of function 'pipe2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if (pipe2(fds, O_CLOEXEC) == -1) {
        ^
selection.c:1695:9: note: did you mean 'pipe'?
/usr/include/unistd.h:358:6: note: 'pipe' declared here
int      pipe(int *);
         ^
selection.c:1842:9: error: implicit declaration of function 'pipe2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if (pipe2(fds, O_CLOEXEC) == -1) {
        ^
selection.c:2129:9: error: implicit declaration of function 'pipe2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if (pipe2(fds, O_CLOEXEC) == -1) {
        ^
vt.c:241:12: error: implicit declaration of function 'wcwidth' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    assert(wcwidth(c) == 1);
           ^
vt.c:241:12: note: did you mean '__wcwidth'?
/usr/include/_ctype.h:161:1: note: '__wcwidth' declared here
__wcwidth(__ct_rune_t _c)
^
vt.c:544:17: error: implicit declaration of function 'wcwidth' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    int width = wcwidth(wc);
                ^
csi.c:713:35: error: implicit declaration of function 'wcwidth' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                const int width = wcwidth(term-&gt;vt.last_printed);
                                  ^
csi.c:713:35: note: did you mean '__wcwidth'?
/usr/include/_ctype.h:161:1: note: '__wcwidth' declared here
__wcwidth(__ct_rune_t _c)
^
ime.c:169:25: error: implicit declaration of function 'wcwidth' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        int width = max(wcwidth(term-&gt;ime.preedit.text[i]), 1);
                        ^
ime.c:169:25: note: did you mean '__wcwidth'?
/usr/include/_ctype.h:161:1: note: '__wcwidth' declared here
__wcwidth(__ct_rune_t _c)
^
quirks.c:81:22: error: implicit declaration of function 'strcasestr' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
            is_kde = strcasestr(cur_desktop, "kde") != NULL;
                     ^
quirks.c:81:53: error: comparison between pointer and integer ('int' and 'void *') [-Werror,-Wpointer-integer-compare]
            is_kde = strcasestr(cur_desktop, "kde") != NULL;
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~
config.c:89:15: error: expected ')'
static_assert(ALEN(binding_action_map) == BIND_ACTION_COUNT,
              ^
util.h:5:18: note: expanded from macro 'ALEN'
 #define ALEN(v) (sizeof(v) / sizeof((v)[0]))
                  ^
config.c:358:12: error: implicit declaration of function 'strcasecmp' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    return strcasecmp(s, "on") == 0 ||
           ^
config.c:358:12: note: did you mean 'wcscasecmp'?
/usr/include/wchar.h:223:5: note: 'wcscasecmp' declared here
int     wcscasecmp(const wchar_t *, const wchar_t *);
        ^
config.c:510:23: error: implicit declaration of function 'strcasecmp' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        bool center = strcasecmp(mode, "center") == 0;
                      ^
config.c:1243:13: error: implicit declaration of function 'strcasecmp' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        if (strcasecmp(value, "none") == 0) {
            ^
config.c:1330:13: error: implicit declaration of function 'strcasecmp' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        if (strcasecmp(value, "none") == 0) {
            ^
config.c:1534:13: error: implicit declaration of function 'strcasecmp' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        if (strcasecmp(value, "none") == 0) {
            ^
spawn.c:20:9: error: implicit declaration of function 'pipe2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if (pipe2(pipe_fds, O_CLOEXEC) &lt; 0) {
        ^
spawn.c:20:9: note: did you mean 'pipe'?
/usr/include/unistd.h:358:6: note: 'pipe' declared here
int      pipe(int *);
         ^
spawn.c:52:5: error: implicit declaration of function 'static_assert' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    static_assert(sizeof(_errno) == sizeof(errno), "errno size mismatch");
    ^
server.c:309:21: error: implicit declaration of function 'accept4' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    int client_fd = accept4(
                    ^
server.c:309:21: note: did you mean 'accept'?
/usr/include/sys/socket.h:679:5: note: 'accept' declared here
int     accept(int, struct sockaddr * __restrict, socklen_t * __restrict);
        ^
server.c:310:59: error: use of undeclared identifier 'SOCK_CLOEXEC'
        server-&gt;fd, (struct sockaddr *)&amp;addr, &amp;addr_size, SOCK_CLOEXEC | SOCK_NONBLOCK);
                                                          ^
server.c:310:74: error: use of undeclared identifier 'SOCK_NONBLOCK'
        server-&gt;fd, (struct sockaddr *)&amp;addr, &amp;addr_size, SOCK_CLOEXEC | SOCK_NONBLOCK);
                                                                         ^
server.c:341:44: error: use of undeclared identifier 'SOCK_CLOEXEC'
    int fd = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0);
                                           ^
server.c:341:59: error: use of undeclared identifier 'SOCK_NONBLOCK'
    int fd = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0);
                                                          ^
server.c:371:44: error: use of undeclared identifier 'SOCK_CLOEXEC'
    int fd = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0);
                                           ^
server.c:371:59: error: use of undeclared identifier 'SOCK_NONBLOCK'
    int fd = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0);
                                                          ^
shm.c:138:26: error: use of undeclared identifier '_SC_PAGE_SIZE'
        long n = sysconf(_SC_PAGE_SIZE);
                         ^
shm.c:279:15: error: implicit declaration of function 'memfd_create' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    pool_fd = memfd_create("foot-wayland-shm-buffer-pool", MFD_CLOEXEC | MFD_ALLOW_SEALING);
              ^
shm.c:279:15: note: did you mean 'timer_create'?
/usr/include/time.h:170:5: note: 'timer_create' declared here
int timer_create(clockid_t, struct sigevent *__restrict, timer_t *__restrict);
    ^
shm.c:279:60: error: use of undeclared identifier 'MFD_CLOEXEC'
    pool_fd = memfd_create("foot-wayland-shm-buffer-pool", MFD_CLOEXEC | MFD_ALLOW_SEALING);
                                                           ^
shm.c:279:74: error: use of undeclared identifier 'MFD_ALLOW_SEALING'
    pool_fd = memfd_create("foot-wayland-shm-buffer-pool", MFD_CLOEXEC | MFD_ALLOW_SEALING);
                                                                         ^
shm.c:350:15: error: use of undeclared identifier 'F_SEAL_GROW'
              F_SEAL_GROW | F_SEAL_SHRINK | /*F_SEAL_FUTURE_WRITE |*/ F_SEAL_SEAL) &lt; 0)
              ^
shm.c:350:29: error: use of undeclared identifier 'F_SEAL_SHRINK'
              F_SEAL_GROW | F_SEAL_SHRINK | /*F_SEAL_FUTURE_WRITE |*/ F_SEAL_SEAL) &lt; 0)
                            ^
shm.c:350:71: error: use of undeclared identifier 'F_SEAL_SEAL'
              F_SEAL_GROW | F_SEAL_SHRINK | /*F_SEAL_FUTURE_WRITE |*/ F_SEAL_SEAL) &lt; 0)
                                                                      ^
shm.c:349:24: error: use of undeclared identifier 'F_ADD_SEALS'
    if (fcntl(pool_fd, F_ADD_SEALS,
                       ^
slave.c:151:28: error: implicit declaration of function 'ptsname' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    const char *pts_name = ptsname(ptmx);
                           ^
slave.c:151:28: note: did you mean 'ttyname'?
/usr/include/unistd.h:371:7: note: 'ttyname' declared here
char    *ttyname(int);
         ^
slave.c:151:17: error: incompatible integer to pointer conversion initializing 'const char *' with an expression of type 'int' [-Werror,-Wint-conversion]
    const char *pts_name = ptsname(ptmx);
                ^          ~~~~~~~~~~~~~
slave.c:153:9: error: implicit declaration of function 'grantpt' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if (grantpt(ptmx) == -1) {
        ^
slave.c:157:9: error: implicit declaration of function 'unlockpt' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if (unlockpt(ptmx) == -1) {
        ^
slave.c:252:9: error: implicit declaration of function 'pipe2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if (pipe2(fork_pipe, O_CLOEXEC) &lt; 0) {
        ^
slave.c:252:9: note: did you mean 'pipe'?
/usr/include/unistd.h:358:6: note: 'pipe' declared here
int      pipe(int *);
         ^
render.c:1166:28: error: implicit declaration of function 'wcwidth' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        int width = max(1, wcwidth(cell-&gt;wc));
                           ^
render.c:1166:28: note: did you mean '__wcwidth'?
/usr/include/_ctype.h:161:1: note: '__wcwidth' declared here
__wcwidth(__ct_rune_t _c)
^
render.c:1932:9: error: implicit declaration of function 'gettimeofday' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        gettimeofday(&amp;start_time, NULL);
        ^
render.c:2240:28: error: implicit declaration of function 'wcwidth' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        widths[i] = max(1, wcwidth(text[i]));
                           ^
render.c:2243:32: error: implicit declaration of function 'wcswidth' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    const size_t total_cells = wcswidth(text, text_len);
                               ^
render.c:2243:32: note: did you mean 'wcwidth'?
render.c:1166:28: note: 'wcwidth' declared here
        int width = max(1, wcwidth(cell-&gt;wc));
                           ^
util.h:7:27: note: expanded from macro 'max'
 #define max(x, y) ((x) &gt; (y) ? (x) : (y))
                           ^
input.c:1540:9: error: implicit declaration of function 'gettimeofday' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        gettimeofday(&amp;now, NULL);
        ^
</content>
</entry>
<entry>
<title>shm: unbreak build without memfd_create</title>
<updated>2021-01-23T09:16:37Z</updated>
<author>
<name>Jan Beich</name>
<email>jbeich@FreeBSD.org</email>
</author>
<published>2021-01-19T14:20:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fcf3f124d626afbc2438756efb7605a4324eb94d'/>
<id>urn:sha1:fcf3f124d626afbc2438756efb7605a4324eb94d</id>
<content type='text'>
New FreeBSD versions have memfd_create but other BSDs don't.

pgo/pgo.c:260:22: error: implicit declaration of function 'memfd_create' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        int mem_fd = memfd_create("foot-pgo-ptmx", MFD_CLOEXEC);
                     ^
pgo/pgo.c:260:52: error: use of undeclared identifier 'MFD_CLOEXEC'
        int mem_fd = memfd_create("foot-pgo-ptmx", MFD_CLOEXEC);
                                                   ^
shm.c:13:10: fatal error: 'linux/mman.h' file not found
 #include &lt;linux/mman.h&gt;
          ^~~~~~~~~~~~~~
shm.c:277:15: error: implicit declaration of function 'memfd_create' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    pool_fd = memfd_create("foot-wayland-shm-buffer-pool", MFD_CLOEXEC | MFD_ALLOW_SEALING);
              ^
shm.c:277:60: error: use of undeclared identifier 'MFD_CLOEXEC'
    pool_fd = memfd_create("foot-wayland-shm-buffer-pool", MFD_CLOEXEC | MFD_ALLOW_SEALING);
                                                           ^
shm.c:277:74: error: use of undeclared identifier 'MFD_ALLOW_SEALING'
    pool_fd = memfd_create("foot-wayland-shm-buffer-pool", MFD_CLOEXEC | MFD_ALLOW_SEALING);
                                                                         ^
shm.c:339:15: error: use of undeclared identifier 'F_SEAL_GROW'
              F_SEAL_GROW | F_SEAL_SHRINK | /*F_SEAL_FUTURE_WRITE |*/ F_SEAL_SEAL) &lt; 0)
              ^
shm.c:339:29: error: use of undeclared identifier 'F_SEAL_SHRINK'
              F_SEAL_GROW | F_SEAL_SHRINK | /*F_SEAL_FUTURE_WRITE |*/ F_SEAL_SEAL) &lt; 0)
                            ^
shm.c:339:71: error: use of undeclared identifier 'F_SEAL_SEAL'
              F_SEAL_GROW | F_SEAL_SHRINK | /*F_SEAL_FUTURE_WRITE |*/ F_SEAL_SEAL) &lt; 0)
                                                                      ^
shm.c:338:24: error: use of undeclared identifier 'F_ADD_SEALS'
    if (fcntl(pool_fd, F_ADD_SEALS,
                       ^
</content>
</entry>
<entry>
<title>meson: optionalize terminfo dependency</title>
<updated>2021-01-23T08:52:42Z</updated>
<author>
<name>Jan Beich</name>
<email>jbeich@FreeBSD.org</email>
</author>
<published>2021-01-19T14:22:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=15f2bebdcb972c26fed6070ef03cefebadaa593b'/>
<id>urn:sha1:15f2bebdcb972c26fed6070ef03cefebadaa593b</id>
<content type='text'>
ncurses on FreeBSD still uses termcap(5) while foot works fine with
xterm-256color sans status line and visible bell. Having more than
one ncurses version installed may break other applications.

Document -Dterminfo=false uses --term=xterm-256color by default
</content>
</entry>
<entry>
<title>meson: depend on wayland-client when using wayland-protocols</title>
<updated>2021-01-23T08:52:41Z</updated>
<author>
<name>Jan Beich</name>
<email>jbeich@FreeBSD.org</email>
</author>
<published>2021-01-21T07:00:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e3a1dfcf5a0d5dab904827c5b6668933354502c5'/>
<id>urn:sha1:e3a1dfcf5a0d5dab904827c5b6668933354502c5</id>
<content type='text'>
Base compiler on BSDs doesn't look where packages are installed to
avoid tainting build environment. When system fcft is installed to
the same prefix as wayland-client it passes CFLAGS that satisfy both
but when using subprojects/fcft there's a build error.

xdg-shell.c:33:10: fatal error: 'wayland-util.h' file not found
xdg-decoration-unstable-v1.c:28:10: fatal error: 'wayland-util.h' file not found
xdg-output-unstable-v1.c:28:10: fatal error: 'wayland-util.h' file not found
presentation-time.c:28:10: fatal error: 'wayland-util.h' file not found
primary-selection-unstable-v1.c:28:10: fatal error: 'wayland-util.h' file not found
text-input-unstable-v3.c:33:10: fatal error: 'wayland-util.h' file not found
In file included from ../../foot/grid.c:1:
In file included from ../../foot/grid.h:5:
In file included from ../../foot/terminal.h:19:
../../foot/wayland.h:8:10: fatal error: 'wayland-client.h' file not found
In file included from ../../foot/selection.c:1:
../../foot/selection.h:4:10: fatal error: 'wayland-client.h' file not found
</content>
</entry>
<entry>
<title>meson: require epoll-shim on BSDs</title>
<updated>2021-01-23T08:52:41Z</updated>
<author>
<name>Jan Beich</name>
<email>jbeich@FreeBSD.org</email>
</author>
<published>2021-01-19T15:54:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=603bbcbcff3514e29ea54dc316010027a6d740a9'/>
<id>urn:sha1:603bbcbcff3514e29ea54dc316010027a6d740a9</id>
<content type='text'>
epoll/timerfd are Linux-only but BSDs have a shim via kqueue.
libwayland on FreeBSD uses epoll-shim by default, so the build may
fail at linking instead of compilation stage.

csi.c:13:10: fatal error: 'sys/timerfd.h' file not found
 #include &lt;sys/timerfd.h&gt;
          ^~~~~~~~~~~~~~~
selection.c:10:10: fatal error: 'sys/epoll.h' file not found
 #include &lt;sys/epoll.h&gt;
          ^~~~~~~~~~~~~
terminal.c:15:10: fatal error: 'sys/epoll.h' file not found
 #include &lt;sys/epoll.h&gt;
          ^~~~~~~~~~~~~
ld: error: undefined symbol: timerfd_create
&gt;&gt;&gt; referenced by pgo.c:154 (pgo/pgo.c:154)
&gt;&gt;&gt;               pgo.p/pgo_pgo.c.o:(main)
&gt;&gt;&gt; referenced by pgo.c:158 (pgo/pgo.c:158)
&gt;&gt;&gt;               pgo.p/pgo_pgo.c.o:(main)
&gt;&gt;&gt; referenced by terminal.c:2022 (terminal.c:2022)
&gt;&gt;&gt;               terminal.c.o:(cursor_blink_rearm_timer) in archive libpgolib.a
&gt;&gt;&gt; referenced 7 more times

ld: error: undefined symbol: epoll_shim_close
&gt;&gt;&gt; referenced by pgo.c:160 (pgo/pgo.c:160)
&gt;&gt;&gt;               pgo.p/pgo_pgo.c.o:(main)
&gt;&gt;&gt; referenced by pgo.c:258 (pgo/pgo.c:258)
&gt;&gt;&gt;               pgo.p/pgo_pgo.c.o:(main)
&gt;&gt;&gt; referenced by pgo.c:277 (pgo/pgo.c:277)
&gt;&gt;&gt;               pgo.p/pgo_pgo.c.o:(main)
&gt;&gt;&gt; referenced 14 more times

ld: error: undefined symbol: epoll_shim_read
&gt;&gt;&gt; referenced by pgo.c:251 (pgo/pgo.c:251)
&gt;&gt;&gt;               pgo.p/pgo_pgo.c.o:(main)
&gt;&gt;&gt; referenced by terminal.c:237 (terminal.c:237)
&gt;&gt;&gt;               terminal.c.o:(fdm_ptmx) in archive libpgolib.a
&gt;&gt;&gt; referenced by terminal.c:363 (terminal.c:363)
&gt;&gt;&gt;               terminal.c.o:(fdm_blink) in archive libpgolib.a
&gt;&gt;&gt; referenced 8 more times

ld: error: undefined symbol: timerfd_settime
&gt;&gt;&gt; referenced by terminal.c:301 (terminal.c:301)
&gt;&gt;&gt;               terminal.c.o:(fdm_ptmx) in archive libpgolib.a
&gt;&gt;&gt; referenced by terminal.c:309 (terminal.c:309)
&gt;&gt;&gt;               terminal.c.o:(fdm_ptmx) in archive libpgolib.a
&gt;&gt;&gt; referenced by terminal.c:2041 (terminal.c:2041)
&gt;&gt;&gt;               terminal.c.o:(cursor_blink_rearm_timer) in archive libpgolib.a
&gt;&gt;&gt; referenced 11 more times

ld: error: undefined symbol: timerfd_gettime
&gt;&gt;&gt; referenced by selection.c:1165 (selection.c:1165)
&gt;&gt;&gt;               selection.c.o:(selection_start_scroll_timer) in archive libpgolib.a
</content>
</entry>
<entry>
<title>meson: libpthread may lack C11 threads e.g., on FreeBSD</title>
<updated>2021-01-23T08:52:41Z</updated>
<author>
<name>Jan Beich</name>
<email>jbeich@FreeBSD.org</email>
</author>
<published>2021-01-19T15:48:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d97b5389173f6fb5924c3546cdd5b8a03fcb90cc'/>
<id>urn:sha1:d97b5389173f6fb5924c3546cdd5b8a03fcb90cc</id>
<content type='text'>
ld: error: undefined symbol: mtx_init
&gt;&gt;&gt; referenced by terminal.c:579 (terminal.c:579)
&gt;&gt;&gt;               terminal.c.o:(initialize_render_workers) in archive libpgolib.a

ld: error: undefined symbol: thrd_create
&gt;&gt;&gt; referenced by terminal.c:595 (terminal.c:595)
&gt;&gt;&gt;               terminal.c.o:(initialize_render_workers) in archive libpgolib.a
&gt;&gt;&gt; referenced by terminal.c:935 (terminal.c:935)
&gt;&gt;&gt;               terminal.c.o:(reload_fonts) in archive libpgolib.a
&gt;&gt;&gt; did you mean: thr_create
&gt;&gt;&gt; defined in: /lib/libc.so.7

ld: error: undefined symbol: mtx_lock
&gt;&gt;&gt; referenced by terminal.c:1410 (terminal.c:1410)
&gt;&gt;&gt;               terminal.c.o:(term_destroy) in archive libpgolib.a

ld: error: undefined symbol: mtx_unlock
&gt;&gt;&gt; referenced by terminal.c:1427 (terminal.c:1427)
&gt;&gt;&gt;               terminal.c.o:(term_destroy) in archive libpgolib.a

ld: error: undefined symbol: thrd_join
&gt;&gt;&gt; referenced by terminal.c:1462 (terminal.c:1462)
&gt;&gt;&gt;               terminal.c.o:(term_destroy) in archive libpgolib.a
&gt;&gt;&gt; referenced by terminal.c:947 (terminal.c:947)
&gt;&gt;&gt;               terminal.c.o:(reload_fonts) in archive libpgolib.a

ld: error: undefined symbol: mtx_destroy
&gt;&gt;&gt; referenced by terminal.c:1466 (terminal.c:1466)
&gt;&gt;&gt;               terminal.c.o:(term_destroy) in archive libpgolib.a
</content>
</entry>
</feed>
