Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 478506 - dev-qt/pixeltool-4.8.5 fails configuring source on grep: /tmp/portage/dev-qt/pixeltool-4.8.5/work/qt-everywhere-opensource-src-4.8.5/src/corelib/global/qglobal.h: No such file or directory
Summary: dev-qt/pixeltool-4.8.5 fails configuring source on grep: /tmp/portage/dev-qt/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-28 21:12 UTC by Jason Lamb
Modified: 2013-07-30 06:02 UTC (History)
5 users (show)

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


Attachments
dev-qt/pixeltool-4.8.5 build log (pixeltool-4.8.5-build.log,2.80 KB, text/plain)
2013-07-28 21:12 UTC, Jason Lamb
Details
emerge --info (emerge-info.log,6.16 KB, text/plain)
2013-07-28 21:12 UTC, Jason Lamb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Lamb 2013-07-28 21:12:13 UTC
dev-qt/pixeltool-4.8.5 fails configuring source on;
grep: /tmp/portage/dev-qt/pixeltool-4.8.5/work/qt-everywhere-opensource-src-4.8.5/src/corelib/global/qglobal.h: No such file or directory
Cannot process version from qglobal.h: 
Cannot proceed.

Reproducible: Always
Comment 1 Jason Lamb 2013-07-28 21:12:39 UTC
Created attachment 354450 [details]
dev-qt/pixeltool-4.8.5 build log
Comment 2 Jason Lamb 2013-07-28 21:12:52 UTC
Created attachment 354452 [details]
emerge --info
Comment 3 Captain Crutches 2013-07-29 16:51:30 UTC
Same problem here, build log identical to Jason's.

emerge --info: http://bpaste.net/show/118414/
Comment 4 Martin von Gagern 2013-07-29 18:44:06 UTC
The file wasn't extracted from the archive. One solution would be adding src/corelib/global to the QT4_EXTRACT_DIRECTORIES variable. Another would be tweaking the build system to use the file from dev-qt/qtcore (installed in /usr/include/qt4/Qt/qglobal.h and /usr/include/qt4/QtCore/qglobal.h), or copy that file.

Since the former is easier, and closer to what upstream does, that's the route I took locally. As a consequence, configure worked all right, but compile failed:

In file included from qpixeltool.h:45:0,
                 from qpixeltool.cpp:42:
../../include/QtGui/qwidget.h:1:42: fatal error: ../../src/gui/kernel/qwidget.h: No such file or directoryIn file included from qpixeltool.h:45:0,
                 from main.cpp:42:
../../include/QtGui/qwidget.h:1:42: fatal error: ../../src/gui/kernel/qwidget.h: No such file or directory

Not good. So it seems my approach might have been the wrong one. On the other hand, I can't see a part of qt4-build.eclass which would take care of linking to already installed headers instead of those expected in the source tree. After adding src/gui/kernel just to end up with the next missing file, I decided to add all of src to that variable, as I saw it in qtgui-4.8.5.ebuild. With that, pixeltool finally emerges.
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2013-07-29 18:48:02 UTC
(In reply to Martin von Gagern from comment #4)
> After adding src/gui/kernel just to end up with the next missing file,
> I decided to add all of src to that variable, as I saw it in
> qtgui-4.8.5.ebuild. With that, pixeltool finally emerges.

src/corelib and src/gui should be enough... can you confirm that?
Comment 6 Martin von Gagern 2013-07-29 19:02:20 UTC
(In reply to Davide Pesavento from comment #5)
> src/corelib and src/gui should be enough... can you confirm that?

Confirmed to compile here.
Comment 7 Captain Crutches 2013-07-29 19:22:51 UTC
(In reply to Martin von Gagern from comment #6)
> (In reply to Davide Pesavento from comment #5)
> > src/corelib and src/gui should be enough... can you confirm that?
> 
> Confirmed to compile here.

Confirmed here as well... adding src/corelib and src/gui to QT4_EXTRACT_DIRECTORIES in pixeltool-4.8.5.ebuild makes pixeltool compile properly.
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2013-07-30 06:02:13 UTC
Thanks. Fixed in cvs.