[Buildroot] [git commit] package/x11r7/xapp_sessreg: fix musl build

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Dec 18 13:23:37 UTC 2016


commit: https://git.buildroot.net/buildroot/commit/?id=c9a112705fcd9ae915f6ea7fdf6d215950603f36
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Fixes
http://autobuild.buildroot.net/results/717/717bd4a2ee4ba62ed9245ec22166a3c63ce1a56d/

Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 .../xapp_sessreg/0002-missing_path_wtmpx.patch     | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/package/x11r7/xapp_sessreg/0002-missing_path_wtmpx.patch b/package/x11r7/xapp_sessreg/0002-missing_path_wtmpx.patch
new file mode 100644
index 0000000..0be242c
--- /dev/null
+++ b/package/x11r7/xapp_sessreg/0002-missing_path_wtmpx.patch
@@ -0,0 +1,24 @@
+Fix missing defines _PATH_WTMPX/_PATH_UTMPX in musl
+
+Downloaded from
+https://cgit.gentoo.org/proj/musl.git/tree/x11-apps/sessreg/files/sessreg-1.1.0-missing_path_wtmpx.patch
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
+
+diff -Naur sessreg-1.1.0.orig/sessreg.h sessreg-1.1.0/sessreg.h
+--- sessreg-1.1.0.orig/sessreg.h	2015-01-20 05:00:27.000000000 +0000
++++ sessreg-1.1.0/sessreg.h	2016-02-23 11:54:42.057000000 +0000
+@@ -103,6 +103,13 @@
+ # define TTYS_FILE	"/etc/ttys"
+ #endif
+ 
++#ifndef _PATH_WTMPX
++# define _PATH_WTMPX	"/var/log/wtmp"
++#endif
++#ifndef _PATH_UTMPX
++# define _PATH_UTMPX	"/var/log/utmp"
++#endif
++
+ #ifndef WTMPX_FILE
+ # define WTMPX_FILE	_PATH_WTMPX
+ #endif


More information about the buildroot mailing list