Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | From ff0718174faf1167fb4765ebe4bd280bbe8d2ac6 Mon Sep 17 00:00:00 2001 |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 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 |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 5 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 6 | Upstream-Status: Inappropriate [Musl Specific] |
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 8 | --- |
Patrick Williams | de0582f | 2022-04-08 10:23:27 -0500 | [diff] [blame] | 9 | meson.build | 11 ++++++++--- |
| 10 | 1 file changed, 8 insertions(+), 3 deletions(-) |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 11 | |
| 12 | diff --git a/meson.build b/meson.build |
Patrick Williams | de0582f | 2022-04-08 10:23:27 -0500 | [diff] [blame] | 13 | index 075776f..dfd7421 100644 |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 14 | --- a/meson.build |
| 15 | +++ b/meson.build |
Patrick Williams | de0582f | 2022-04-08 10:23:27 -0500 | [diff] [blame] | 16 | @@ -101,9 +101,14 @@ elif cc.has_header_symbol('paths.h', '_PATH_WTMPX') |
| 17 | |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 18 | config_h.set('PATH_WTMP', '_PATH_WTMPX') |
| 19 | else |
Patrick Williams | de0582f | 2022-04-08 10:23:27 -0500 | [diff] [blame] | 20 | - path_wtmp = '/var/log/utx.log' |
| 21 | - assert(run_command('test', '-e', path_wtmp).returncode() == 0, 'Do not know which filename to watch for wtmp changes') |
| 22 | - config_h.set_quoted('PATH_WTMP', path_wtmp) |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 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 |
Patrick Williams | de0582f | 2022-04-08 10:23:27 -0500 | [diff] [blame] | 34 | -- |
| 35 | 2.34.1 |
| 36 | |