Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490254 - [qt overlay] dev-qt/qt*:5 modules use *FLAGS stored by qtcore:5 instead of the ones set by portage
Summary: [qt overlay] dev-qt/qt*:5 modules use *FLAGS stored by qtcore:5 instead of th...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Qt Bug Alias
URL: https://github.com/gentoo/qt/pull/27
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: qt5-porting
  Show dependency tree
 
Reported: 2013-11-03 11:40 UTC by Franz Trischberger
Modified: 2014-07-28 21:25 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,298.71 KB, text/x-log)
2013-11-03 13:09 UTC, Franz Trischberger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2013-11-03 11:40:05 UTC
I build my whole system with debug symbols (+splitdebug) as I usually need it. Now qtwebkit-5.2 fails completely as the laptop runs out of RAM. So I wanted to finally remove -ggdb from C[XX]FLAGS using package.env. Which did not work.

[12:40] # cat /etc/portage/package.env
dev-qt/qtwebkit webkit.conf
net-libs/webkit-gtk webkit.conf
[12:40] # cat /etc/portage/env/webkit.conf
CFLAGS="-march=corei7-avx -O2 -pipe"
CXXFLAGS="-march=corei7-avx -O2 -pipe"

Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.11.3-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.11.3-gentoo-x86_64-Intel-R-_Core-TM-_i3-2350M_CPU_@_2.30GHz-with-gentoo-2.2
KiB Mem:     3890836 total,   2046216 free
KiB Swap:    5242876 total,   4857828 free
Timestamp of tree: Sun, 03 Nov 2013 09:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.2.5-r3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28::<unknown repository>
sys-apps/baselayout:      2.2::<unknown repository>
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1::<unknown repository>
sys-devel/autoconf:       2.13::<unknown repository>, 2.69::<unknown repository>
sys-devel/automake:       1.11.6::<unknown repository>, 1.12.6::<unknown repository>, 1.13.4
sys-devel/binutils:       2.23.1::<unknown repository>
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3::<unknown repository>
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4::<unknown repository>
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo aidecoe ff2000 kde local qt
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7-avx -O2 -pipe -ggdb"
DISTDIR="/var/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j15"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/repositories/gentoo"
PORTDIR_OVERLAY="/var/repositories/aidecoe /var/repositories/ff2000 /var/repositories/kde /var/repositories/local /var/repositories/qt"
USE="X a52 aac acl acpi alsa amd64 apm berkdb branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus directfb dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm iconv infinality introspection ipv6 jpeg jpeg2k kipi lcdfilter lcms mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp openrc pam pango pcre pdf png ppds qt3support qt4 readline sdl session spell sse sse2 sse3 sse4 sse4_1 ssl ssse3 svg tcpd theora threads tiff truetype udev udisks unicode upower usb vaapi vorbis vpx x264 xcb xcomposite xml xscreensaver xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de de_DE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-qt/qtwebkit-5.1.1 was built with the following:
USE="c++11 gstreamer multimedia opengl qml udev webp widgets xslt -debug -libxml2 -test"
Comment 1 Agostino Sarubbo gentoo-dev 2013-11-03 12:03:15 UTC
works here, please post the log
Comment 2 Franz Trischberger 2013-11-03 13:09:15 UTC
Created attachment 362482 [details]
build.log

The g++ lines still contain "-ggdb"
Comment 3 Franz Trischberger 2013-11-04 11:57:12 UTC
This is simply a qt5-issue: qtcore stores the C[XX]FLAGS it was built with and uses that for every module.

/usr/lib64/qt5/mkspecs/qmodule.pri:QMAKE_CFLAGS = -march=corei7-avx -O2 -pipe -ggdb
/usr/lib64/qt5/mkspecs/qmodule.pri:QMAKE_CXXFLAGS = -march=corei7-avx -O2 -pipe -ggdb

Seems like we need a hack to patch qt5-build.eclass to be able to set per-package flags.

I am going to remove -ggdb manually from qmodule.pri, emerge qtwebkit:5 and restore qmodule.pri, again.
Comment 4 Uwe L. Korn 2014-03-06 13:30:28 UTC
To refine the problem a bit: This applies only to non-qtbase packages that have a load(qt_build_config) line in their .qmake.conf
Comment 5 Davide Pesavento gentoo-dev 2014-07-28 21:25:22 UTC
Fixed in git, thanks!