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

Bug 607424

Summary: dev-qt/qtwebengine fails to compile chromium against >=media-libs/jpeg-9b
Product: Gentoo Linux Reporter: Maurice van der Pot <griffon26>
Component: Current packagesAssignee: Qt Bug Alias <qt>
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 479818    
Attachments: Fix invalid conversion of booleans in jpeg codec of bundled chromium

Description Maurice van der Pot 2017-01-27 20:46:17 UTC
Compilation fails in chromium/ui/gfx/codec/ because of various invalid conversions from int to boolean or bool to boolean.

This is a problem in upstream chromium and was reported there (including patch) as:

I also reported this at Qt as

I have also attached a version of the patch created specifically for the qtwebengine-5.7.1 ebuild.
Comment 1 Maurice van der Pot 2017-01-27 20:47:36 UTC
Created attachment 461656 [details, diff]
Fix invalid conversion of booleans in jpeg codec of bundled chromium
Comment 2 Davide Pesavento gentoo-dev 2017-01-27 23:55:18 UTC
Thanks. And does the patch preserve source compatibility with libjpeg-turbo?
Comment 3 Maurice van der Pot 2017-01-29 18:51:03 UTC
Yes, this patch only removes the assumption that boolean is an int and uses the proper names TRUE and FALSE for the boolean type defined in the libjpeg headers.
Comment 4 Andreas Sturmlechner gentoo-dev 2018-02-06 22:13:22 UTC
This patch got into 5.10 branch:
Comment 5 Larry the Git Cow gentoo-dev 2018-02-07 02:04:52 UTC
The bug has been closed via the following commit(s):

commit f340edd950eb281bb73bf51ab95b5eb5012ab3b5
Author:     Andreas Sturmlechner <>
AuthorDate: 2018-02-06 21:30:21 +0000
Commit:     Andreas Sturmlechner <>
CommitDate: 2018-02-07 02:04:05 +0000

    dev-qt/qtwebengine: Fix build with jpeg-9
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 .../files/qtwebengine-5.9.4-jpeg-9-1.patch         | 70 ++++++++++++++++++++++
 .../files/qtwebengine-5.9.4-jpeg-9-2.patch         | 46 ++++++++++++++
 dev-qt/qtwebengine/qtwebengine-5.9.4.ebuild        |  7 ++-
 3 files changed, 122 insertions(+), 1 deletion(-)
Comment 6 Larry the Git Cow gentoo-dev 2018-02-07 10:30:58 UTC
The bug has been referenced in the following commit(s):

commit 6ae7dcf1de5b2cf896fa6ceefd7e4c42d2da8b54
Author:     Michael Palimaka <>
AuthorDate: 2018-02-07 10:29:50 +0000
Commit:     Michael Palimaka <>
CommitDate: 2018-02-07 10:30:43 +0000

    dev-qt/qtwebengine: port media-libs/jpeg-9b patches from ::gentoo
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../files/qtwebengine-5.9.4-jpeg-9-1.patch         | 70 ++++++++++++++++++++++
 .../files/qtwebengine-5.9.4-jpeg-9-2.patch         | 46 ++++++++++++++
 dev-qt/qtwebengine/qtwebengine-5.10.0.ebuild       |  2 +
 dev-qt/qtwebengine/qtwebengine-5.10.9999.ebuild    |  2 +
 dev-qt/qtwebengine/qtwebengine-5.11.9999.ebuild    |  2 +
 dev-qt/qtwebengine/qtwebengine-5.9.9999.ebuild     |  6 +-
 dev-qt/qtwebengine/qtwebengine-5.9999.ebuild       |  2 +
 7 files changed, 129 insertions(+), 1 deletion(-)}