All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xconfig: use pkgconfig to find moc
@ 2012-06-11 22:56 Yaakov (Cygwin/X)
  2012-07-04 16:33 ` Michal Marek
  0 siblings, 1 reply; 4+ messages in thread
From: Yaakov (Cygwin/X) @ 2012-06-11 22:56 UTC (permalink / raw)
  To: Michal Marek; +Cc: linux-kbuild

From: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>

Various schemes exist to allow parallel installations of multiple major
versions of Qt (4.x with the previous 3.x and/or the upcoming 5.x).
QtCore.pc includes a moc_location variable which should be a more reliable
way to find moc.

Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
---
Also applies to all 3.x stable branches

 scripts/kconfig/Makefile |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 7966265..059b5ca 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -260,8 +260,7 @@ $(obj)/.tmp_qtcheck:
 	else \
 	  cflags="\$$(shell pkg-config QtCore QtGui Qt3Support --cflags)"; \
 	  libs="\$$(shell pkg-config QtCore QtGui Qt3Support --libs)"; \
-	  binpath="\$$(shell pkg-config QtCore --variable=prefix)"; \
-	  moc="$$binpath/bin/moc"; \
+	  moc="\$$(shell pkg-config QtCore --variable=moc_location)"; \
 	fi; \
 	echo "KC_QT_CFLAGS=$$cflags" > $@; \
 	echo "KC_QT_LIBS=$$libs" >> $@; \
-- 
1.7.9


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] xconfig: use pkgconfig to find moc
  2012-06-11 22:56 [PATCH] xconfig: use pkgconfig to find moc Yaakov (Cygwin/X)
@ 2012-07-04 16:33 ` Michal Marek
  2012-07-04 20:23   ` Yaakov (Cygwin/X)
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Marek @ 2012-07-04 16:33 UTC (permalink / raw)
  To: Yaakov (Cygwin/X); +Cc: linux-kbuild

On Mon, Jun 11, 2012 at 05:56:08PM -0500, Yaakov (Cygwin/X) wrote:
> -	  binpath="\$$(shell pkg-config QtCore --variable=prefix)"; \
> -	  moc="$$binpath/bin/moc"; \
> +	  moc="\$$(shell pkg-config QtCore --variable=moc_location)"; \
>  	fi; \

Could you keep the $$binpath/bin/moc as a fallback, so that make xconfig
works even with old Qt4 releases. We support even Qt3, so let's continue
to be nice to users.

Michal

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] xconfig: use pkgconfig to find moc
  2012-07-04 16:33 ` Michal Marek
@ 2012-07-04 20:23   ` Yaakov (Cygwin/X)
  2012-07-13 12:37     ` Michal Marek
  0 siblings, 1 reply; 4+ messages in thread
From: Yaakov (Cygwin/X) @ 2012-07-04 20:23 UTC (permalink / raw)
  To: mmarek; +Cc: linux-kbuild

From: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>

Various schemes exist to allow parallel installations of multiple major
versions of Qt (4.x with the previous 3.x and/or the upcoming 5.x).
QtCore.pc includes a moc_location variable which should be a more reliable
way to find moc.

Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
---
 scripts/kconfig/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 7966265..5e2176c 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -260,8 +260,8 @@ $(obj)/.tmp_qtcheck:
 	else \
 	  cflags="\$$(shell pkg-config QtCore QtGui Qt3Support --cflags)"; \
 	  libs="\$$(shell pkg-config QtCore QtGui Qt3Support --libs)"; \
-	  binpath="\$$(shell pkg-config QtCore --variable=prefix)"; \
-	  moc="$$binpath/bin/moc"; \
+	  moc="\$$(shell pkg-config QtCore --variable=moc_location)"; \
+	  [ -n "$$moc" ] || moc="\$$(shell pkg-config QtCore --variable=prefix)/bin/moc"; \
 	fi; \
 	echo "KC_QT_CFLAGS=$$cflags" > $@; \
 	echo "KC_QT_LIBS=$$libs" >> $@; \
-- 
1.7.9


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] xconfig: use pkgconfig to find moc
  2012-07-04 20:23   ` Yaakov (Cygwin/X)
@ 2012-07-13 12:37     ` Michal Marek
  0 siblings, 0 replies; 4+ messages in thread
From: Michal Marek @ 2012-07-13 12:37 UTC (permalink / raw)
  To: Yaakov (Cygwin/X); +Cc: linux-kbuild

On Wed, Jul 04, 2012 at 03:23:29PM -0500, Yaakov (Cygwin/X) wrote:
> From: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
> 
> Various schemes exist to allow parallel installations of multiple major
> versions of Qt (4.x with the previous 3.x and/or the upcoming 5.x).
> QtCore.pc includes a moc_location variable which should be a more reliable
> way to find moc.
> 
> Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>

Thanks, applied to kbuild.git#kconfig.

Michal

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-13 12:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-11 22:56 [PATCH] xconfig: use pkgconfig to find moc Yaakov (Cygwin/X)
2012-07-04 16:33 ` Michal Marek
2012-07-04 20:23   ` Yaakov (Cygwin/X)
2012-07-13 12:37     ` Michal Marek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.