jer         15/07/24 05:44:36

  Added:                wireshark-1.12.6-rcc.patch
  Log:
  With USE=qt5, make sure we discover the correct RCC (bug #555638).
  
  (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 
A792A613)

Revision  Changes    Path
1.1                  net-analyzer/wireshark/files/wireshark-1.12.6-rcc.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/files/wireshark-1.12.6-rcc.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/files/wireshark-1.12.6-rcc.patch?rev=1.1&content-type=text/plain

Index: wireshark-1.12.6-rcc.patch
===================================================================
--- a/configure.ac
+++ b/configure.ac
@@ -1609,11 +1609,37 @@
                        # we don't know whether they'll be doing that,
                        # so this is the best we can do.
                        #
-                       MIC=moc
+                       MOC=moc
                fi
        fi
 fi
 AC_SUBST(MOC)
+AC_PATH_PROG(RCC, rcc)
+if test "x$RCC" = x
+then
+       AC_PATH_PROG(RCC, rcc-qt4)
+       if test "x$RCC" = x
+       then
+               if test "x$have_qt" = "xyes"; then
+                       #
+                       # If you want to build with Qt, you'd better
+                       # have rcc.
+                       #
+                       AC_MSG_ERROR(I couldn't find moc or rcc-qt4; make sure 
it's installed and in your path)
+               else
+                       #
+                       # We shouldn't fail here, as the user's not
+                       # building with Qt, and we shouldn't force them
+                       # to have Qt installed if they're not doing so.
+                       # "make dist" will fail if they do that, but
+                       # we don't know whether they'll be doing that,
+                       # so this is the best we can do.
+                       #
+                       RCC=rcc
+               fi
+       fi
+fi
+AC_SUBST(RCC)
 
 # Error out if a glib header other than a "top level" header
 #  (glib.h, glib-object.h, gio.h) or certain other headers( e.g.,gmodule.h)
--- a/ui/qt/Makefile.am
+++ b/ui/qt/Makefile.am
@@ -116,7 +116,7 @@
 
 .qrc.rcc.cpp:
        $(MKDIR_P) $(@D)
-       $(AM_V_RCC)rcc -name `basename $< .qrc` -o $@ $<
+       $(AM_V_RCC)$(RCC) -name `basename $< .qrc` -o $@ $<
 
 ui_%.h: %.ui
        $(AM_V_UIC)$(UIC) $< -o $@




Reply via email to