Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550162 - app-office/scribus-1.5.0 - .../work/scribus-1.5.0/scribus/sclayer.cpp:16:17: error: 'QObject' has not been declared
Summary: app-office/scribus-1.5.0 - .../work/scribus-1.5.0/scribus/sclayer.cpp:16:17: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-22 11:26 UTC by Helmut Jarausch
Modified: 2015-06-11 00:20 UTC (History)
3 users (show)

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


Attachments
patch to include QtCore/qobject.h (scribus-1.5.0-QObject.patch,457 bytes, patch)
2015-05-22 11:26 UTC, Helmut Jarausch
Details | Diff
scribus-1.5.0.build.xz (scribus-1.5.0.build.xz,32.93 KB, application/x-xz)
2015-05-22 15:50 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2015-05-22 11:26:32 UTC
Created attachment 403762 [details, diff]
patch to include QtCore/qobject.h

app-office-1.5.0 fails to compile (with QT5 headers at least) with
/var/tmp/portage/app-office/scribus-1.5.0/work/scribus-1.5.0/scribus/sclayer.cpp:16:17: error: 'QObject' has not been declared

Inserting an additional include solves the problem.
Comment 1 Rafał Mużyło 2015-05-22 13:48:48 UTC
build log or it didn't happen

...especially that it's better to make sure the cause of that failure isn't a bit different.
Comment 2 Helmut Jarausch 2015-05-22 15:50:44 UTC
Created attachment 403766 [details]
scribus-1.5.0.build.xz
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2015-05-29 07:06:07 UTC
I cannot reproduce it here. What Qt version do you have installed on the system?
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2015-05-29 14:56:49 UTC
@qt, any comment here? I cannot reproduce it.
Comment 5 Michael Palimaka (kensington) gentoo-dev 2015-05-29 15:35:15 UTC
I also was not able to reproduce, but it does seem there's no direct QObject include (which should look like #include <QObject>).
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2015-05-30 06:11:25 UTC
(In reply to Michael Palimaka (kensington) from comment #5)
> I also was not able to reproduce, but it does seem there's no direct QObject
> include (which should look like #include <QObject>).

So what should we do?
Comment 7 Michael Palimaka (kensington) gentoo-dev 2015-05-30 15:43:49 UTC
It's safe to add the include, but of course would be better to go upstream.
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2015-06-01 08:37:29 UTC
(In reply to Michael Palimaka (kensington) from comment #7)
> It's safe to add the include, but of course would be better to go upstream.

Thanks, I will do.
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2015-06-01 08:59:23 UTC
+  01 Jun 2015; Justin Lecher <jlec@gentoo.org>
+  +files/scribus-1.5.0-QObject.patch, scribus-1.5.0-r1.ebuild:
+  Add patch for missing includes, bug #550162
+
Comment 10 Kunda 2015-06-11 00:20:13 UTC
Bug has been fixed upstream. See http://bugs.scribus.net/view.php?id=13102
Cheers!