blob: c2310fe46c571973c74fbf9dbff7c160cc2cf5d4 [file] [log] [blame]
Brad Bishope42b3e32020-01-15 22:08:42 -05001From 2a1c7103839c20df5ca9ce2fa863535d802f8f3a Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Sun, 8 Dec 2019 23:42:00 +0100
4Subject: [PATCH] musl: Hack to fix configure
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9---
10 meson.build | 10 ++++++++--
11 1 file changed, 8 insertions(+), 2 deletions(-)
12
13diff --git a/meson.build b/meson.build
14index 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--
352.21.0
36