On 02. 06. 26 15:02, Marián Konček wrote:
Hi, as the author of the `unbreq` Mock plugin, I found some time to run a mass
build on over 2200 packages that are part of the ELN package set. 40 build
failed or timed out, but I successfully built exactly 2200 packages.
The report is here: https://mkoncek.fedorapeople.org/unbreq.html
...
Thanks. This is awesome.
Several notes about common Python cases:
(python3dist(tomli) if python3-devel < 3.11) is omnipresent -- if not dealing
with conditional buildrequires generally, consider filtering this from the
report. (Generally speaking, if the X package from (X if Y) is not present at
all, the BR should probably not be reported.)
BuildRequires for Python extras, such as python3dist(build[virtualenv]). Those
are empty metapackages and files from them are "not used". All such generated
buildrequires are accompanied with other BRs such as:
$ repoquery -q --repo=rawhide-source --requires python-setuptools | grep build
python3dist(build) >= 1.0.3
python3dist(build[virtualenv]) >= 1.0.3
and hence reported as useless. They are not.
I guess that if the plugin works by checking if files are accessed, any Python
package that asks Python "what Python packages are installed?" (== each Python
package using %pyproject macros) will access all the metadata files for all
installed Python packages. Ergo, if I understand this correctly, no Python
package (except for the 2 cases mentioned above) will ever be reported as
unused. Is that so?
--
Miro Hrončok
--
Phone: +420777974800
--
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it:
https://forge.fedoraproject.org/infra/tickets/issues/new