Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame^] | 1 | From 2a1c7103839c20df5ca9ce2fa863535d802f8f3a Mon Sep 17 00:00:00 2001 |
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> |
| 3 | Date: Sun, 8 Dec 2019 23:42:00 +0100 |
| 4 | Subject: [PATCH] musl: Hack to fix configure |
| 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit |
| 8 | |
| 9 | --- |
| 10 | meson.build | 10 ++++++++-- |
| 11 | 1 file changed, 8 insertions(+), 2 deletions(-) |
| 12 | |
| 13 | diff --git a/meson.build b/meson.build |
| 14 | index 4465a26..726c9fe 100644 |
| 15 | --- a/meson.build |
| 16 | +++ b/meson.build |
| 17 | @@ -82,8 +82,14 @@ if cc.has_header_symbol('utmpx.h', 'WTMPX_FILENAME', prefix: '#define _GNU_SOURC |
| 18 | elif cc.has_header_symbol('paths.h', '_PATH_WTMPX') |
| 19 | config_h.set('PATH_WTMP', '_PATH_WTMPX') |
| 20 | else |
| 21 | - assert(run_command('test', '-e', '/var/log/utx.log').returncode() == 0, 'Do not know which filename to watch for wtmp changes') |
| 22 | - config_h.set_quoted('PATH_WTMP', '/var/log/utx.log') |
| 23 | + # musl: This is just a build fix hack. |
| 24 | + # As usual they know better, consider all other projects crap and offer zero |
| 25 | + # alternatives: So wtmp is a dead stub only [1] (= /dev/null/wtmp - taken |
| 26 | + # from musl sources). |
| 27 | + # Maybe a hero comes along and adds utmps [2] to make accountsservice useful for musl |
| 28 | + # [1] https://wiki.musl-libc.org/faq.html#Q:-Why-is-the-utmp/wtmp-functionality-only-implemented-as-stubs? |
| 29 | + # [2] https://github.com/skarnet/utmps |
| 30 | + config_h.set_quoted('PATH_WTMP', '/dev/null/wtmp') |
| 31 | endif |
| 32 | |
| 33 | # compiler flags |
| 34 | -- |
| 35 | 2.21.0 |
| 36 | |