Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234725 - x11-themes/gtk-engines-qt-0.8-r3 fails to compile
Summary: x11-themes/gtk-engines-qt-0.8-r3 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 2 votes (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
: 234904 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-14 12:08 UTC by Thomas Pegeot
Modified: 2008-08-26 17:57 UTC (History)
23 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log of gtk-engines-qt-0.8-r3 (build.log,61.27 KB, text/plain)
2008-08-14 12:10 UTC, Thomas Pegeot
Details
build.log with patch (build.log,3.96 KB, text/plain)
2008-08-15 12:39 UTC, Yar Odin
Details
added CMAKE_IN_SOURCE_BUILD=1 and updated install (gtk-engines-qt-0.8-r3.ebuild,1.55 KB, text/plain)
2008-08-23 19:16 UTC, Wormo (RETIRED)
Details
Bruce's build.log (build.log,41.56 KB, text/plain)
2008-08-26 00:56 UTC, Wormo (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Pegeot 2008-08-14 12:08:41 UTC
Hello guys,

Compiling x11-themes/gtk-engines-qt-0.8-r3 fails whereas installing x11-themes/gtk-engines-qt-0.8-r2 works well. It seems that a few kde related files are missing.

I modified the ebuild like this and now it compiles correctly : 
--- /usr/portage/x11-themes/gtk-engines-qt/gtk-engines-qt-0.8-r3.ebuild 2008-08-14 08:53:44.000000000 +0200
+++ /usr/local/portage/x11-themes/gtk-engines-qt/gtk-engines-qt-0.8-r3.ebuild   2008-08-14 14:04:11.000000000 +0200
@@ -41,7 +41,7 @@
        # enable or disable bonobo support based on gnome useflag (bug #206568)
        mycmakeargs="${mycmakeargs}
                $(cmake-utils_use_enable gnome BONOBO)"
-       cmake-utils_src_compile
+       kde_src_compile
 }


Reproducible: Always

Steps to Reproduce:
1. emerge -av =x11-themes/gtk-engines-qt-0.8-r3
2.
3.
Comment 1 Thomas Pegeot 2008-08-14 12:10:23 UTC
Created attachment 162882 [details]
Build log of gtk-engines-qt-0.8-r3
Comment 2 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-14 12:19:24 UTC
Stephanie, I CCd you, cause it seems from the Changelog, that you, made the last changes.
Comment 3 Nikos Chantziaras 2008-08-15 01:34:04 UTC
I confirm.  Same problem here.
Comment 4 Yar Odin 2008-08-15 12:37:48 UTC
(In reply to comment #0)
> Hello guys,
> 
> Compiling x11-themes/gtk-engines-qt-0.8-r3 fails whereas installing
> x11-themes/gtk-engines-qt-0.8-r2 works well. It seems that a few kde related
> files are missing.
> 
> I modified the ebuild like this and now it compiles correctly : 
> --- /usr/portage/x11-themes/gtk-engines-qt/gtk-engines-qt-0.8-r3.ebuild
> 2008-08-14 08:53:44.000000000 +0200
> +++ /usr/local/portage/x11-themes/gtk-engines-qt/gtk-engines-qt-0.8-r3.ebuild  
> 2008-08-14 14:04:11.000000000 +0200
> @@ -41,7 +41,7 @@
>         # enable or disable bonobo support based on gnome useflag (bug #206568)
>         mycmakeargs="${mycmakeargs}
>                 $(cmake-utils_use_enable gnome BONOBO)"
> -       cmake-utils_src_compile
> +       kde_src_compile
>  }
> 
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. emerge -av =x11-themes/gtk-engines-qt-0.8-r3
> 2.
> 3.
> 
same problem. But this patch doesn't helps to me.


Comment 5 Yar Odin 2008-08-15 12:39:42 UTC
Created attachment 162954 [details]
build.log with patch
Comment 6 Vasilis Lourdas 2008-08-15 17:58:47 UTC
I confirm this.

Could be the case that when a system lacks the libbonoboui library, the compilation of gtk-engines-qt fails because of this? I'm asking because the other day, I did a cleanup and removed a few packages, and one of them was libbonoboui. revdep-rebuild does not complain though.
Comment 7 Chad A. Simmons 2008-08-15 18:05:41 UTC
(In reply to comment #6)
> I confirm this.
> 
> Could be the case that when a system lacks the libbonoboui library, the
> compilation of gtk-engines-qt fails because of this? I'm asking because the
> other day, I did a cleanup and removed a few packages, and one of them was
> libbonoboui. revdep-rebuild does not complain though.
> 

I don't think so I have libbonoboui installed and I am seeing this issue.
Comment 8 Andreas Proteus 2008-08-16 01:29:43 UTC
(In reply to comment #1)
I had the same problem.

The patch worked here.(~x86)
(I can supply more info if required)

Thank you very much.
Comment 9 Thomas Pegeot 2008-08-16 03:44:14 UTC
> same problem. But this patch doesn't helps to me.
Actually it seems that my patch only works if you have libbonoboui installed. :s That's bad. :( 

I worked for me because libbonoboui was installed. I removed it and now i can't compile x11-themes/gtk-engines-qt any more. 
Comment 10 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-16 10:54:52 UTC
*** Bug 234904 has been marked as a duplicate of this bug. ***
Comment 11 Dmitry Karasik 2008-08-18 18:18:26 UTC
Setting CMAKE_IN_SOURCE_BUILD=1 allows compile to succeed, but fails during install with:

mv: cannot stat `/var/tmp/portage/x11-themes/gtk-engines-qt-0.8-r3/image//usr/local/share/applications': No such file or directory
 *
 * ERROR: x11-themes/gtk-engines-qt-0.8-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 4185:  Called die
 * The specific snippet of code:
 *       mv "${D}"/usr/local/share/applications "${D}"/usr/share/ || die;
 *  The die message:
 *   (no error message)
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/x11-themes/gtk-engines-qt-0.8-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-themes/gtk-engines-qt-0.8-r3/temp/environment'.
 *
Comment 12 michel 2008-08-21 11:41:35 UTC
the same build error here
Comment 13 Wormo (RETIRED) gentoo-dev 2008-08-23 19:16:34 UTC
Created attachment 163666 [details]
added CMAKE_IN_SOURCE_BUILD=1 and updated install

Sorry that it took a while to notice this report despite the cc (I get a LOT of bug emails from arch keywording requests).

Looks like the useflag control of bonobo support does not work when using kde_src_compile instead of cmake-utils_src_compile

In the first logfile that uses cmake-utils_src_compile, bonobo is properly disabled on a system with USE -gnome:
-- Found GTK library dir: /usr/lib64
-- bonobo support disabled.  Some features of the theme engine will not work as intended.
-- Found xgettext: /usr/bin/xgettext

In the second logfile that uses kde_src_compile to fix other issues, bonobo is NOT disabled despite USE -gnome:
-- Found GTK library dir: /usr/lib
CMake Error: bonoboui was not found.  Ensure you have the libbonoboui development libraries installed, and libonoboui's pkgconfig files are in your pkgconfig search path.

So, please try the following ebuild that has Dmitry's suggestion plus the fix for where he got stuck in that approach.
Comment 14 Alex Barker 2008-08-23 19:34:14 UTC
new ebuild works for me.
Comment 15 Wormo (RETIRED) gentoo-dev 2008-08-23 19:54:08 UTC
Thanks. New version committed to CVS. 

I'm leaving this bug open for a little while longer in case any of the others still have a problem.
Comment 16 Bruce Wolk 2008-08-23 20:42:32 UTC
(In reply to comment #15)
> Thanks. New version committed to CVS. 
> 
> I'm leaving this bug open for a little while longer in case any of the others
> still have a problem.
> 
This ebuild continues to fail:

Linking CXX shared library libqtengine.so
[ 51%] Built target qtengine
make: *** [all] Error 2
 *
 * ERROR: x11-themes/gtk-engines-qt-0.8-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4218:  Called cmake-utils_src_compile
 *             environment, line  988:  Called cmake-utils_src_make
 *             environment, line 1028:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 *  The die message:
 *   Make failed!
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/x11-themes/gtk-engines-qt-0.8-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-themes/gtk-engines-qt-0.8-r3/temp/environment'.

Comment 17 Wormo (RETIRED) gentoo-dev 2008-08-23 21:25:14 UTC
Bruce, please attach your full build.log since your emerge is failing at a different point
Comment 18 Wormo (RETIRED) gentoo-dev 2008-08-26 00:56:25 UTC
Created attachment 163787 [details]
Bruce's build.log

Posting build.log emailed to me
Comment 19 Wormo (RETIRED) gentoo-dev 2008-08-26 05:16:58 UTC
From the build log, it looks like this is a different issue than the libonobo problems that were just fixed. To prove this theory, can you try emerging gtk-engines-qt-0.8-r2 and see if that revision works for you? 

Also, show me what version of qt you have installed, since it looks like the header files auto-generated by qt are broken in your build:

/var/tmp/portage/x11-themes/gtk-engines-qt-0.8-r3/work/gtk-qt-engine/kcm_gtk/kcmgtk.h:92: error: ISO C++ forbids declaration of ‘KcmGtkWidget’ with no type

Looking in my own build dir, KcmGtkWidget was defined in kcmgtkwidget.h, which was generated by moc.
Comment 20 Bruce Wolk 2008-08-26 12:53:27 UTC
(In reply to comment #19)
I synced again this morning and when I emerged -uD world only one package was listed, gtk-engines-qt-0.8-r3, and it compiled without error.  So the problem seems to have disappeared.
Comment 21 Nikos Chantziaras 2008-08-26 14:57:43 UTC
No problems here either.
Comment 22 Wormo (RETIRED) gentoo-dev 2008-08-26 17:57:59 UTC
Ok great, closing this bug then.