diff mbox

[6/6] xlib_libX11: ensure target and host variant have the same patch hooks

Message ID 1369695664-5670-7-git-send-email-thomas.petazzoni@free-electrons.com
State Accepted
Commit f0e3147ee52b274ad887e59450d8a20427ea75f6
Headers show

Commit Message

Thomas Petazzoni May 27, 2013, 11:01 p.m. UTC
In preparation for the out-of-tree support, it is important that all
packages have the same patch hooks for the host variant and the target
variant (because the source tree will be shared between host and
target variants when doing out-of-tree build).

In the case of the xlib_libX11 package, the post-patch hook removes
some flags from the build of the makekeys utility, so that when
xlib_libX11 is built for the target, the build of makekeys for the
host works properly. This modification can be applied to the host
variant of xlib_libX11 without any problem.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/x11r7/xlib_libX11/xlib_libX11.mk |    1 +
 1 file changed, 1 insertion(+)

Comments

Peter Korsgaard May 30, 2013, 7:53 p.m. UTC | #1
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> In preparation for the out-of-tree support, it is important that all
 Thomas> packages have the same patch hooks for the host variant and the target
 Thomas> variant (because the source tree will be shared between host and
 Thomas> target variants when doing out-of-tree build).

 Thomas> In the case of the xlib_libX11 package, the post-patch hook removes
 Thomas> some flags from the build of the makekeys utility, so that when
 Thomas> xlib_libX11 is built for the target, the build of makekeys for the
 Thomas> host works properly. This modification can be applied to the host
 Thomas> variant of xlib_libX11 without any problem.

Committed to next, thanks.
diff mbox

Patch

diff --git a/package/x11r7/xlib_libX11/xlib_libX11.mk b/package/x11r7/xlib_libX11/xlib_libX11.mk
index 2d68f9e..5d0607b 100644
--- a/package/x11r7/xlib_libX11/xlib_libX11.mk
+++ b/package/x11r7/xlib_libX11/xlib_libX11.mk
@@ -43,6 +43,7 @@  define XLIB_LIBX11_DISABLE_MAKEKEYS_X11_CFLAGS
 endef
 
 XLIB_LIBX11_POST_PATCH_HOOKS += XLIB_LIBX11_DISABLE_MAKEKEYS_X11_CFLAGS
+HOST_XLIB_LIBX11_POST_PATCH_HOOKS += XLIB_LIBX11_DISABLE_MAKEKEYS_X11_CFLAGS
 
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))