Mercurial > vanilla
annotate system/accountsservice/musl-wtmp.patch @ 1083:917674fbedb0
shells/tcsh: initial import, closes #1053
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 03 Sep 2019 13:53:14 +0200 |
parents | 9987c7d6e9cf |
children |
rev | line source |
---|---|
493
9987c7d6e9cf
system/accountsservice: initial import, closes #1581
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
1 Reason: fix build on musl |
9987c7d6e9cf
system/accountsservice: initial import, closes #1581
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
2 Tidy up and send upstream soon... |
9987c7d6e9cf
system/accountsservice: initial import, closes #1581
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
3 --- meson.build |
9987c7d6e9cf
system/accountsservice: initial import, closes #1581
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
4 +++ meson.build |
9987c7d6e9cf
system/accountsservice: initial import, closes #1581
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
5 @@ -82,8 +82,7 @@ if cc.has_header_symbol('utmpx.h', 'WTMPX_FILENAME', prefix: '#define _GNU_SOURC |
9987c7d6e9cf
system/accountsservice: initial import, closes #1581
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
6 elif cc.has_header_symbol('paths.h', '_PATH_WTMPX') |
9987c7d6e9cf
system/accountsservice: initial import, closes #1581
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
7 config_h.set('PATH_WTMP', '_PATH_WTMPX') |
9987c7d6e9cf
system/accountsservice: initial import, closes #1581
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
8 else |
9987c7d6e9cf
system/accountsservice: initial import, closes #1581
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
9 - assert(run_command('test', '-e', '/var/log/utx.log').returncode() == 0, 'Do not know which filename to watch for wtmp changes') |
9987c7d6e9cf
system/accountsservice: initial import, closes #1581
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
10 - config_h.set_quoted('PATH_WTMP', '/var/log/utx.log') |
9987c7d6e9cf
system/accountsservice: initial import, closes #1581
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
11 + config_h.set_quoted('PATH_WTMP', '/var/log/wtmp') |
9987c7d6e9cf
system/accountsservice: initial import, closes #1581
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
12 endif |
9987c7d6e9cf
system/accountsservice: initial import, closes #1581
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
13 |
9987c7d6e9cf
system/accountsservice: initial import, closes #1581
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
14 # compiler flags |
9987c7d6e9cf
system/accountsservice: initial import, closes #1581
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
15 |