Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775275 - dev-qt/qtwebengine-5.15.2_p20210224[-geolocation] fails to build when dev-qt/qtwebengine without geolocation flag is installed: undefined reference to `QtWebEngineCore::LocationProviderQt::LocationProviderQt()'
Summary: dev-qt/qtwebengine-5.15.2_p20210224[-geolocation] fails to build when dev-qt/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-03-10 17:09 UTC by Andrei Slavoiu
Modified: 2021-03-14 15:36 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge.info,8.81 KB, text/plain)
2021-03-10 17:12 UTC, Andrei Slavoiu
Details
build.log (build.log.xz,553.46 KB, application/x-xz)
2021-03-10 17:15 UTC, Andrei Slavoiu
Details
Patch (qtwebengine.patch,976 bytes, patch)
2021-03-10 18:10 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2021-03-10 17:09:54 UTC
This looks like Bug 717122, but that one was fixed and I checked that the fix was not lost when bumping versions. And still, it happens again.

I'm updating a system that was abandoned for some time, so this goes from qtwebengine-5.13.2 straight to 5.15.2_p20210224.

Reproducible: Always
Comment 1 Andrei Slavoiu 2021-03-10 17:12:38 UTC
Created attachment 690525 [details]
emerge --info
Comment 2 Andrei Slavoiu 2021-03-10 17:15:16 UTC
Created attachment 690528 [details]
build.log
Comment 3 Arfrever Frehtes Taifersar Arahesis 2021-03-10 17:52:54 UTC
Current code assumes that source directory is:
  $${QTWEBENGINE_ROOT}
  /var/tmp/portage/dev-qt/qtwebengine-5.15.2_p20210224/work/qtwebengine-5.15.2_p20210224

And assumes that build directory is:
  $${QTWEBENGINE_ROOT}_build
  /var/tmp/portage/dev-qt/qtwebengine-5.15.2_p20210224/work/qtwebengine-5.15.2_p20210224_build

But build directory actually is:
  /var/tmp/portage/dev-qt/qtwebengine-5.15.2_p20210224/work/qtwebengine-everywhere-src-5.15.2_p20210224_build


In build log, there are:
-I/var/tmp/portage/dev-qt/qtwebengine-5.15.2_p20210224/work/qtwebengine-5.15.2_p20210224_build/include -I/var/tmp/portage/dev-qt/qtwebengine-5.15.2_p20210224/work/qtwebengine-5.15.2_p20210224/include
Comment 4 Arfrever Frehtes Taifersar Arahesis 2021-03-10 18:05:38 UTC
qt5-build.eclass (https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/qt5-build.eclass?id=3b675038969bbf4a989ac8bfbae8b0c0d3d0acda#n98) sets default QT5_BUILD_DIR="${S}_build" in global scope.

But qtwebengine-5.15.2_p20210224.ebuild later (after running eclasses code) sets S="${WORKDIR}/${P}", overriding previous value, but does not update QT5_BUILD_DIR.
Comment 5 Arfrever Frehtes Taifersar Arahesis 2021-03-10 18:10:15 UTC
Created attachment 690537 [details, diff]
Patch
Comment 6 Larry the Git Cow gentoo-dev 2021-03-12 20:08:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c7f3e2ab46b00c1723148574e8182a1da0fe49a

commit 3c7f3e2ab46b00c1723148574e8182a1da0fe49a
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
AuthorDate: 2021-03-10 18:00:00 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-03-12 20:06:39 +0000

    dev-qt/qtwebengine: Set correct QT5_BUILD_DIR.
    
    Closes: https://bugs.gentoo.org/775275
    Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-qt/qtwebengine/qtwebengine-5.15.2_p20210224.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 7 Larry the Git Cow gentoo-dev 2021-03-14 15:36:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/qt.git/commit/?id=1d58a144815b1802de2b97a64e5c26761117c57f

commit 1d58a144815b1802de2b97a64e5c26761117c57f
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
AuthorDate: 2021-03-10 18:00:00 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-03-14 15:23:55 +0000

    dev-qt/qtwebengine: Set correct QT5_BUILD_DIR.
    
    Closes: https://bugs.gentoo.org/775275
    Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-qt/qtwebengine/qtwebengine-5.15.9999.ebuild | 1 +
 1 file changed, 1 insertion(+)