Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 563228 - app-office/scribus-9999: -fPIC needed
Summary: app-office/scribus-9999: -fPIC needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-16 11:02 UTC by Miroslav Šulc
Modified: 2015-10-16 13:05 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2015-10-16 11:02:25 UTC
i am compiling scribus on hardened amd64 system and i get this error:

/usr/include/qt5/QtCore/qglobal.h:1052:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."
 #  error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\

i tried to add "append-flags -fPIC" to the ebuild and then it compiles fine so it needs just this statement probably along with some condition that turns it on only when needed.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2015-10-16 11:15:56 UTC
It's not the first time scribus has such problems. I will come up with a patch and contribute it back upstream.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2015-10-16 11:23:45 UTC
share/scribus/qml/\" -DDESKTOPDIR=\"/usr/share/applications/\" -DLIBDIR=\"/usr/lib64/scribus/\" -DPLUGINDIR=\"/usr/lib64/scribus/plugins/\" -MMD -MT scribus/third_party/rtf-qt/CMakeFiles/scribus_rtf_lib.dir/AbstractRtfOutput.cpp.o -MF scribus/third_party/rtf-qt/CMakeFiles/scribus_rtf_lib.dir/AbstractRtfOutput.cpp.o.d -o scribus/third_party/rtf-qt/CMakeFiles/scribus_rtf_lib.dir/AbstractRtfOutput.cpp.o -c /var/tmp/portage/app-office/scribus-9999/work/scribus-9999/scribus/third_party/rtf-qt/AbstractRtfOutput.cpp
In file included from /usr/include/qt5/QtCore/qchar.h:37:0,
                 from /usr/include/qt5/QtCore/qstring.h:37,
                 from /usr/include/qt5/QtCore/qdatetime.h:37,
                 from /usr/include/qt5/QtCore/QDateTime:1,
                 from /var/tmp/portage/app-office/scribus-9999/work/scribus-9999/scribus/third_party/rtf-qt/AbstractRtfOutput.h:21,
                 from /var/tmp/portage/app-office/scribus-9999/work/scribus-9999/scribus/third_party/rtf-qt/AbstractRtfOutput.cpp:18:
/usr/include/qt5/QtCore/qglobal.h:1052:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."
 #  error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\
    ^
ninja: build stopped: subcommand failed.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2015-10-16 13:05:12 UTC
commit 4a0809523c24b7d4baa4a9a7a1d565cf7c65b2af
Author: Justin Lecher <jlec@gentoo.org>
Date:   Fri Oct 16 15:04:36 2015 +0200
    
    app-office/scribus: Extend fPIC patch
    
    Scribus-Bug: http://bugs.scribus.net/view.php?id=13427
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=563228
    
    Package-Manager: portage-2.2.23
    Signed-off-by: Justin Lecher <jlec@gentoo.org>
    
    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a0809523c24b7d4baa4a9a7a1d565cf7c65b2af