Skip to contentSkip to conversation

package/x11r7/xapp_sessreg: fix musl build

PATCH New Bernd Kuhls 2 participants 2 messages Dec 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/x11r7/xapp_sessreg: fix musl build

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

---
v2: upstream patch was updated for musl-1.1.14

    https://github.com/gentoo/musl/commit/bcccf08b2d3d202e4b957d05aab847f1c725de68
 .../xapp_sessreg/0002-missing_path_wtmpx.patch     | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 package/x11r7/xapp_sessreg/0002-missing_path_wtmpx.patch
package/x11r7/xapp_sessreg/0002-missing_path_wtmpx.patch new file +24 -0
new file mode 100644
index 000000000..0be242c0b
@@ -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 <[email protected]>
+
+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
Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 1/1 package/x11r7/xapp_sessreg: fix musl build

Hello,

Quoted 7 lines · Bernd Kuhls

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

---
v2: upstream patch was updated for musl-1.1.14

    https://github.com/gentoo/musl/commit/bcccf08b2d3d202e4b957d05aab847f1c725de68

Applied to master, thanks. Please submit the patch upstream.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com