Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239315 - x11-libs/qt-core: pkg-config reports moc path as "/usr/.var/tmp/portage/x11-libs/qt-core-4.4.2/work/qt-x11-opensource-src-4.4.2/bin/moc" (breaks x11-misc/google-gadgets compilation)
Summary: x11-libs/qt-core: pkg-config reports moc path as "/usr/.var/tmp/portage/x11-l...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-02 11:29 UTC by DarkNRG
Modified: 2009-01-28 18:14 UTC (History)
1 user (show)

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


Attachments
emerge --info --verbose (emerge.log,11.06 KB, text/plain)
2008-10-02 14:12 UTC, DarkNRG
Details
Log of "emerge -1 qt-core" (qt-core-log.txt,1.02 MB, text/plain)
2008-12-11 18:50 UTC, DarkNRG
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DarkNRG 2008-10-02 11:29:40 UTC
x11-misc/google-gadgets searches for moc in the portage temp dir instead /usr/bin:

/usr/.var/tmp/portage/x11-libs/qt-core-4.4.2/work/qt-x11-opensource-src-4.4.2/bin/moc: Command not found

After creating a symlink to the correct location google-gadgets could be compiled successfully.




Reproducible: Always

Steps to Reproduce:
1. emerge google-gadgets # fails
2. mkdir -p /usr/.var/tmp/portage/x11-libs/qt-core-4.4.2/work/qt-x11-opensource-src-4.4.2/bin
3. ln -s /usr/bin/moc  /usr/.var/tmp/portage/x11-libs/qt-core-4.4.2/work/qt-x11-opensource-src-4.4.2/bin/moc
4. emerge google-gadgets # works now

Actual Results:  
...
make[5]: Leaving directory `/usr/.var/tmp/portage/x11-misc/google-gadgets-0.10.2-r2/work/google-gadgets-for-linux-0.10.2/ggadget/gtk/tests'                  
make[4]: Leaving directory `/usr/.var/tmp/portage/x11-misc/google-gadgets-0.10.2-r2/work/google-gadgets-for-linux-0.10.2/ggadget/gtk'                        
Making all in qt                                                                                                                                             
make[4]: Entering directory `/usr/.var/tmp/portage/x11-misc/google-gadgets-0.10.2-r2/work/google-gadgets-for-linux-0.10.2/ggadget/qt'                        
/usr/.var/tmp/portage/x11-libs/qt-core-4.4.2/work/qt-x11-opensource-src-4.4.2/bin/moc qt_main_loop.h -o qt_main_loop.moc                                     
make[4]: /usr/.var/tmp/portage/x11-libs/qt-core-4.4.2/work/qt-x11-opensource-src-4.4.2/bin/moc: Command not found                                            
make[4]: *** [qt_main_loop.moc] Error 127                                                                                                                    
make[4]: Leaving directory `/usr/.var/tmp/portage/x11-misc/google-gadgets-0.10.2-r2/work/google-gadgets-for-linux-0.10.2/ggadget/qt'                         
make[3]: *** [all-recursive] Error 1                                                                                                                         
make[3]: Leaving directory `/usr/.var/tmp/portage/x11-misc/google-gadgets-0.10.2-r2/work/google-gadgets-for-linux-0.10.2/ggadget'                            
make[2]: *** [all] Error 2                                                                                                                                   
make[2]: Leaving directory `/usr/.var/tmp/portage/x11-misc/google-gadgets-0.10.2-r2/work/google-gadgets-for-linux-0.10.2/ggadget'                            
make[1]: *** [all-recursive] Error 1                                                                                                                         
make[1]: Leaving directory `/usr/.var/tmp/portage/x11-misc/google-gadgets-0.10.2-r2/work/google-gadgets-for-linux-0.10.2'                                    
make: *** [all] Error 2                                                                                                                                      
 *                                                                                                                                                           
 * ERROR: x11-misc/google-gadgets-0.10.2-r2 failed.                                                                                                          
 * Call stack:                                                                                                                                               
 * ebuild.sh, line   49:  Called src_compile                                                                                                                 
 * environment, line 2724:  Called default_src_compile                                                                                                       
 * ebuild.sh, line 1479:  Called _eapi2_src_compile                                                                                                          
 * ebuild.sh, line  641:  Called die                                                                                                                         
 * The specific snippet of code:                                                                                                                             
 * emake || die "emake failed"                                                                                                                               
 * The die message:                                                                                                                                          
 * emake failed                                                                                                                                              
 *                                                                                                                                                           
 * If you need support, post the topmost build error, and the call stack if relevant.                                                                        
 * A complete build log is located at '/usr/.var/tmp/portage/x11-misc/google-gadgets-0.10.2-r2/temp/build.log'.                                              
 * The ebuild environment file is located at '/usr/.var/tmp/portage/x11-misc/google-gadgets-0.10.2-r2/temp/environment'.                                     
 *                                                                                                                                                           

>>> Failed to emerge x11-misc/google-gadgets-0.10.2-r2, Log file:


Expected Results:  
x11-misc/google-gadgets-0.10.2-r2 merged
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-10-02 12:32:14 UTC
Could you post the output of emerge --info --verbose please?
Comment 2 DarkNRG 2008-10-02 14:12:06 UTC
Created attachment 167003 [details]
emerge --info --verbose
Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2008-12-10 14:10:57 UTC
New maintainer, reassigning.
Comment 4 Bernard Cafarelli gentoo-dev 2008-12-10 16:54:52 UTC
What's the output of `pkg-config --variable=moc_location QtCore` ? This will be the path used to find moc, and should return /usr/bin

Also, I've just added google-gadgets-0.10.3 to portage, it has many bug fixes from upstream changelog. Can be worth a shot
Comment 5 DarkNRG 2008-12-10 20:27:11 UTC
The problem stays the same with the new version 0.10.3, but the output of pkg-config is
"/usr/.var/tmp/portage/x11-libs/qt-core-4.4.2/work/qt-x11-opensource-src-4.4.2/bin/moc"
so I think there may be a problem with qt-core (however this is the only application which could not find moc).
Comment 6 Bernard Cafarelli gentoo-dev 2008-12-10 20:42:16 UTC
CC'in qt as this looks like a problem in qt-core, have you already tried to remerge that package by the way?
Comment 7 DarkNRG 2008-12-11 18:50:07 UTC
Created attachment 174985 [details]
Log of "emerge -1 qt-core"

Yes, I've remerged it already, but the problem stays the same, I've appended a log of the emerge process.
Comment 8 Bernard Cafarelli gentoo-dev 2009-01-28 14:48:37 UTC
Reassigning
Comment 9 Markos Chandras (RETIRED) gentoo-dev 2009-01-28 15:13:15 UTC
I dont see how this is related to qt-core package.I cant reproduce this issue with the latest google-gadgets in portage ( I am using qt-core-4.4.2 ). 

Maybe there is something wrong with your path?
Comment 10 Markos Chandras (RETIRED) gentoo-dev 2009-01-28 15:18:01 UTC
---------------
google-gadgets-for-linux-0.10.5 # pkg-config --variable=moc_location QtCore
/usr/bin/moc
-------------

This is what I get from my system. So I dont think it is  a common issue but a user specific :)
Comment 11 DarkNRG 2009-01-28 18:04:40 UTC
(In reply to comment #10)
> ---------------
> google-gadgets-for-linux-0.10.5 # pkg-config --variable=moc_location QtCore
> /usr/bin/moc
> -------------
> 
> This is what I get from my system. So I dont think it is  a common issue but a
> user specific :)
> 

It's the same path for me now: /usr/bin/moc

I still don't know what went wrong, but I guess it was a user-specific configuration issue.

Thanks for your help, I think this can be closed now :)
Comment 12 Markos Chandras (RETIRED) gentoo-dev 2009-01-28 18:14:01 UTC
Yep :). Lets close it as invalid :)