Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 745405 - Qt5 static will not build
Summary: Qt5 static will not build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-29 12:26 UTC by fabrice nicol
Modified: 2020-09-29 14:59 UTC (History)
1 user (show)

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


Attachments
emerge info and configure-step build (emergeinfo,254.52 KB, text/plain)
2020-09-29 12:26 UTC, fabrice nicol
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fabrice nicol 2020-09-29 12:26:12 UTC
Created attachment 663115 [details]
emerge info and configure-step build

USE=static is supported by Qt5 ebuilds yet does not build into lib*Qt5*.a libraries
Comment 1 fabrice nicol 2020-09-29 12:29:05 UTC
Bug also shows up if using package.use instead of an inlined USE variable:

      echo "dev-qt/qtcore static" >> /etc/portage/package.use/qtcore
Comment 2 Andreas Sturmlechner gentoo-dev 2020-09-29 14:04:55 UTC
Nope.

$ emerge -vp qtcore

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-qt/qtcore-5.15.1:5/5.15.1::gentoo  USE="icu -debug -old-kernel -systemd -test" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Comment 3 fabrice nicol 2020-09-29 14:36:55 UTC
@Andreas Sturmlechner
OK, my mistake, I see static building is not supported for Qt5. This should be transformed into a request as it is quite useful for software deployment.
Comment 4 Andreas Sturmlechner gentoo-dev 2020-09-29 14:40:03 UTC
In general we don't support that option.

https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0302
Comment 5 fabrice nicol 2020-09-29 14:59:04 UTC
OK, but "systemic" libraries like Qt5 are a special case. 
The security point of 0302 does not hold here: Qt group devs are numerous enough to handle that fine. 
And deploying 12 shared Qt5 libs has its own security implications for software deployment (e.g. version conflicts, hardening issues etc.).
Static building is one domain in which Gentoo shines way brighter than other distros (except for Arch). There is case here.