Skip to contentSkip to conversation

xapp_init: Point to target's "mcookie"

PATCH New Matt Weber 2 participants 2 messages Jul 14, 2016 – Jul 16, 2016

lore
Share & tools
lore

Matt Weber

author
#0 lore raw

PATCH 1/1 xapp_init: Point to target's "mcookie"

From: ynadupur <[email protected]>

Description:
The X11 package builds the "mcookie" executable, when selected, into the directory output/host/usr/bin/mcookie. The xapp_init's "configure" attempts to find the "mcookie" executable using the host's path. If the host has an installed "mcookie" application in their /bin folder, it can influence the build. The following patch forces the expected mcookie location.

Related:
http://thread.gmane.org/gmane.comp.lib.uclibc.buildroot/50310

---
 package/x11r7/xapp_xinit/xapp_xinit.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/x11r7/xapp_xinit/xapp_xinit.mk +4 -0
index a67ba14..bf5cbbb 100644
@@ -11,4 +11,8 @@ XAPP_XINIT_DEPENDENCIES = xapp_xauth xlib_libX11
 XAPP_XINIT_LICENSE = MIT
 XAPP_XINIT_LICENSE_FILES = COPYING
 
+ifeq ($(BR2_PACKAGE_MCOOKIE),y)
+XAPP_XINIT_CONF_OPTS += MCOOKIE=/usr/bin/mcookie
+endif
+
 $(eval $(autotools-package))
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 xapp_init: Point to target's "mcookie"

Hello,

The title was slightly incorrect: the package is named xapp_xinit, not xapp_init.

Quoted 1 line · Matt Weber

From: ynadupur <[email protected]>

This From: line didn't match the SoB line.

Quoted 1 line

Description:

Not needed.

Quoted 6 lines

The X11 package builds the "mcookie" executable, when selected, into the directory output/host/usr/bin/mcookie. The xapp_init's "configure" attempts to find the "mcookie" executable using the host's path. If the host has an installed "mcookie" application in their /bin folder, it can influence the build. The following patch forces the expected mcookie location.

Indentation not needed.

package/x11r7/xapp_xinit/xapp_xinit.mk XAPP_XINIT_DEPENDENCIES = xapp_xauth xlib_libX11 · line 14

Quoted 9 lines
package/x11r7/xapp_xinit/xapp_xinit.mk +1 -0
index a67ba14..bf5cbbb 100644
@@ -11,4 +11,8 @@ XAPP_XINIT_DEPENDENCIES = xapp_xauth xlib_libX11
 XAPP_XINIT_LICENSE = MIT
 XAPP_XINIT_LICENSE_FILES = COPYING
 
+ifeq ($(BR2_PACKAGE_MCOOKIE),y)

I've removed this conditional, because xapp_xinit depends on the X.org server, and the X.org server selects BR2_PACKAGE_MCOOKIE.

Applied with these issues fixed.

Thanks,

Thomas

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