Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 573188

Summary: dev-qt/qtsvg-5.4.2 fails to compile (PREMUL was not declared in this scope)
Product: Gentoo Linux Reporter: Johann Schmitz (ercpe) (RETIRED) <ercpe>
Component: [OLD] LibraryAssignee: Qt Bug Alias <qt>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log

Description Johann Schmitz (ercpe) (RETIRED) gentoo-dev 2016-01-28 11:11:15 UTC
Compilation failes with:


qsvggenerator.cpp:258:66: error: ‘PREMUL’ was not declared in this scope
                 QRgb fromColor = PREMUL(stops.at(0).second.rgba());
                                                                  ^
qsvggenerator.cpp:268:134: error: ‘INV_PREMUL’ was not declared in this scope
                             QRgb color = INV_PREMUL(INTERPOLATE_PIXEL_256(fromColor, 256 - 256 * j / parts, toColor, 256 * j / parts));


Reproducible: Always
Comment 1 Johann Schmitz (ercpe) (RETIRED) gentoo-dev 2016-01-28 11:11:54 UTC
Created attachment 424052 [details]
emerge --info
Comment 2 Johann Schmitz (ercpe) (RETIRED) gentoo-dev 2016-01-28 11:12:08 UTC
Created attachment 424054 [details]
build.log
Comment 3 Johann Schmitz (ercpe) (RETIRED) gentoo-dev 2016-01-28 11:12:24 UTC
https://github.com/msorvig/qt5-qtbase-nacl/issues/8
Comment 4 Johann Schmitz (ercpe) (RETIRED) gentoo-dev 2016-01-28 11:23:06 UTC
The commit which changes the PREMUL macro to qPremultiply:

https://github.com/qtproject/qtsvg/commit/b725b5fd9158d95f3693a06425924271ee4b4239
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2016-01-28 12:48:49 UTC

*** This bug has been marked as a duplicate of bug 564920 ***