diff system/accountsservice/musl-wtmp.patch @ 493:9987c7d6e9cf

system/accountsservice: initial import, closes #1581
author David Demelier <markand@malikania.fr>
date Mon, 08 Apr 2019 12:53:31 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/system/accountsservice/musl-wtmp.patch	Mon Apr 08 12:53:31 2019 +0200
@@ -0,0 +1,15 @@
+Reason: fix build on musl
+Tidy up and send upstream soon...
+--- meson.build
++++ meson.build
+@@ -82,8 +82,7 @@ if cc.has_header_symbol('utmpx.h', 'WTMPX_FILENAME', prefix: '#define _GNU_SOURC
+ elif cc.has_header_symbol('paths.h', '_PATH_WTMPX')
+   config_h.set('PATH_WTMP', '_PATH_WTMPX')
+ else
+-  assert(run_command('test', '-e', '/var/log/utx.log').returncode() == 0, 'Do not know which filename to watch for wtmp changes')
+-  config_h.set_quoted('PATH_WTMP', '/var/log/utx.log')
++  config_h.set_quoted('PATH_WTMP', '/var/log/wtmp')
+ endif
+ 
+ # compiler flags
+