Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646756 - dev-qt/qtmultimedia-5.7.1: Ignoring CFLAGS
Summary: dev-qt/qtmultimedia-5.7.1: Ignoring CFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: cflags
  Show dependency tree
 
Reported: 2018-02-06 12:22 UTC by Thomas Deutschmann
Modified: 2018-02-06 13:56 UTC (History)
0 users

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


Attachments
build.log (build.log,410.74 KB, text/plain)
2018-02-06 12:22 UTC, Thomas Deutschmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann gentoo-dev Security 2018-02-06 12:22:16 UTC
Created attachment 518070 [details]
build.log

> i686-pc-linux-gnu-g++ -c -O2 -pipe -march=pentium4m -mtune=pentium4m -mfpmath=sse -O3 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_MULTIMEDIA_QAUDIO -DQT_BUILD_MULTIMEDIA_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -Iaudio -Icamera -Icontrols -Iplayback -Iradio -Irecording -Ivideo -I../../include -I../../include/QtMultimedia -I../../include/QtMultimedia/5.7.1 -I../../include/QtMultimedia/5.7.1/QtMultimedia -isystem /usr/include/qt5/QtGui/5.7.1 -isystem /usr/include/qt5/QtGui/5.7.1/QtGui -isystem /usr/include/qt5/QtCore/5.7.1 -isystem /usr/include/qt5/QtCore/5.7.1/QtCore -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -I.moc -I/usr/lib/qt5/mkspecs/linux-g++ -o .obj/qcamerafeedbackcontrol.o controls/qcamerafeedbackcontrol.cpp

I set -O2 but build system will use -O3.
Comment 1 Michael Palimaka (kensington) gentoo-dev 2018-02-06 13:37:39 UTC
This appears to be caused by optimize_full:
src/multimedia/multimedia.pro:CONFIG += simd optimize_full
Comment 2 Michael Palimaka (kensington) gentoo-dev 2018-02-06 13:38:40 UTC
From /usr/lib64/qt5/mkspecs/features/default_post.prf:
> optimize_size {
>     !isEmpty(QMAKE_CFLAGS_OPTIMIZE):!isEmpty(QMAKE_CFLAGS_OPTIMIZE_SIZE)  {
>         QMAKE_CFLAGS_RELEASE -= $$QMAKE_CFLAGS_OPTIMIZE
>         QMAKE_CXXFLAGS_RELEASE -= $$QMAKE_CFLAGS_OPTIMIZE
>         QMAKE_CFLAGS_RELEASE += $$QMAKE_CFLAGS_OPTIMIZE_SIZE
>         QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_OPTIMIZE_SIZE
>     }
> } else: optimize_full {
>     !isEmpty(QMAKE_CFLAGS_OPTIMIZE):!isEmpty(QMAKE_CFLAGS_OPTIMIZE_FULL)  {
>         QMAKE_CFLAGS_RELEASE -= $$QMAKE_CFLAGS_OPTIMIZE
>         QMAKE_CXXFLAGS_RELEASE -= $$QMAKE_CFLAGS_OPTIMIZE
>         QMAKE_CFLAGS_RELEASE += $$QMAKE_CFLAGS_OPTIMIZE_FULL
>         QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_OPTIMIZE_FULL
>     }
> }
Comment 3 Larry the Git Cow gentoo-dev 2018-02-06 13:54:31 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/qt.git/commit/?id=6fb2e5c74e72cc5399db9af4399fea79694cdb6f

commit 6fb2e5c74e72cc5399db9af4399fea79694cdb6f
Author:     Michael Palimaka <kensington@gentoo.org>
AuthorDate: 2018-02-06 13:54:09 +0000
Commit:     Michael Palimaka <kensington@gentoo.org>
CommitDate: 2018-02-06 13:54:21 +0000

    dev-qt/qtmultimedia: avoid adding unrequested CFLAGS
    
    Bug: https://bugs.gentoo.org/646756
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-qt/qtmultimedia/qtmultimedia-5.10.0.ebuild    | 5 ++++-
 dev-qt/qtmultimedia/qtmultimedia-5.10.9999.ebuild | 5 ++++-
 dev-qt/qtmultimedia/qtmultimedia-5.11.9999.ebuild | 3 +++
 dev-qt/qtmultimedia/qtmultimedia-5.9.9999.ebuild  | 5 ++++-
 dev-qt/qtmultimedia/qtmultimedia-5.9999.ebuild    | 5 ++++-
 5 files changed, 19 insertions(+), 4 deletions(-)}
Comment 4 Larry the Git Cow gentoo-dev 2018-02-06 13:56:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55f59ac5cc002e55c5471fd69f031261f9481d99

commit 55f59ac5cc002e55c5471fd69f031261f9481d99
Author:     Michael Palimaka <kensington@gentoo.org>
AuthorDate: 2018-02-06 13:55:34 +0000
Commit:     Michael Palimaka <kensington@gentoo.org>
CommitDate: 2018-02-06 13:55:52 +0000

    dev-qt/qtmultimedia: revision bump avoids adding unrequested CFLAGS
    
    Closes: https://bugs.gentoo.org/646756
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-qt/qtmultimedia/qtmultimedia-5.9.4-r1.ebuild | 69 ++++++++++++++++++++++++
 1 file changed, 69 insertions(+)