Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428140 - x11-libs/qt-xmlpatterns-4.8.2 does not require qt-core built with exceptions
Summary: x11-libs/qt-xmlpatterns-4.8.2 does not require qt-core built with exceptions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-26 07:50 UTC by Homer
Modified: 2012-07-28 06:31 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 Homer 2012-07-26 07:50:46 UTC
Currently I have disabled the "exceptions" flag in all Qt components, using the standard USE flag method, e.g.:

cat /etc/portage/package.use/x11-libs
x11-libs/qt-gui -exceptions

However, qt-xmlpatterns seems to be the only Qt ebuild with "exceptions" hard coded:

DEPEND="~x11-libs/qt-core-${PV}[aqua=,debug=,exceptions]"

Which pulls in the exceptions flag for every other Qt package.

I've circumvented this by just removing ",exceptions" from the above ebuild, but ideally it should be added to IUSE instead, for those who do actually need it.

Please consider allowing this option, since despite Nokia's "recommendation", exceptions are useless to everyone except Qt developers, and it only serves to increase build time and bloat.

It should also be noted that, despite various warnings from others, qt-xmlpatterns does in fact build and run successfully without the exceptions flag.

Reproducible: Always

Steps to Reproduce:

1. emerge x11-libs/qt-xmlpatterns

Actual Results:  
"exceptions" flag forced on all Qt components.


Expected Results:  
I don't want "exceptions". Ever.


Thanks.
Comment 1 Homer 2012-07-26 07:56:12 UTC
Also see bug 240185.
Comment 2 Ben de Groot (RETIRED) gentoo-dev 2012-07-26 08:05:48 UTC
(In reply to comment #1)
> Also see bug 240185.

As you can see from that bug, this option was disabled in qt-xmlpatterns, because at the time it resulted in compile failure. If that has since been fixed, then we should revisit this decision.
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2012-07-26 08:17:45 UTC
No, the situation is unchanged since then, and won't change for qt5 either. In fact, there's nothing to fix here since upstream doesn't consider the usage of exceptions a "bug" (and qt-xmlpatterns does require them).
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2012-07-26 08:20:27 UTC
(In reply to comment #3)
> No, the situation is unchanged since then, and won't change for qt5 either.
> In fact, there's nothing to fix here since upstream doesn't consider the
> usage of exceptions a "bug" (and qt-xmlpatterns does require them).

It would be nice if we could add a brief comment ontop of IUSE on every ebuild that requires +exceptions to avoid duplicates in the future.
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2012-07-26 08:25:06 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > No, the situation is unchanged since then, and won't change for qt5 either.
> > In fact, there's nothing to fix here since upstream doesn't consider the
> > usage of exceptions a "bug" (and qt-xmlpatterns does require them).
> 
> It would be nice if we could add a brief comment ontop of IUSE on every
> ebuild that requires +exceptions to avoid duplicates in the future.

Only qt-xmlpatterns has a hard dependency on them being enabled IIRC.
Comment 6 Davide Pesavento (RETIRED) gentoo-dev 2012-07-26 08:31:45 UTC
Re-reading this sentence:

"It should also be noted that, despite various warnings from others, qt-xmlpatterns does in fact build and run successfully without the exceptions flag."

from the OP, I think what he actually wanted to say is that qt-xmlpatterns doesn't require exceptions enabled in *qt-core*, i.e. we can drop the USE dependency. But qt-xmlpatterns still has to be built with exceptions, so there's no point in adding USE=exceptions to qt-xmlpatterns.
Comment 7 Homer 2012-07-26 10:51:34 UTC
Re: comment 6

Yes, that's what I meant: qt-xmlpatterns builds and runs successfully without its dependancy, qt-core, being built with exceptions, so please can this be provided as a USE flag option (in the qt-core ebuild itself), rather than pushed onto qt-core by qt-xmlpatterns without option.
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2012-07-26 15:56:25 UTC
No, it doesn't need a USE flag, we will just drop the [exceptions] USE flag dep from qt-xmlpatterns :-)
Comment 9 Homer 2012-07-27 11:28:43 UTC
Even better. :)
Comment 10 Davide Pesavento (RETIRED) gentoo-dev 2012-07-28 06:31:44 UTC
(In reply to comment #8)
> No, it doesn't need a USE flag, we will just drop the [exceptions] USE flag
> dep from qt-xmlpatterns :-)

Done, thanks for reporting.