Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 702832 - [SwordArMor] Ebuild failures occuring in global scope
Summary: [SwordArMor] Ebuild failures occuring in global scope
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alarig Le Lay
URL: https://qa-reports.gentoo.org/output/...
Whiteboard:
Keywords:
Depends on:
Blocks: repository-qa-issues
  Show dependency tree
 
Reported: 2019-12-14 12:24 UTC by Michał Górny
Modified: 2019-12-15 04:11 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-12-14 12:24:03 UTC
Our automated repository checks [1] have detected that the 'SwordArMor'
repository contains ebuilds that trigger fatal errors during the cache
regeneration. This usually means that the ebuilds call 'die' in global
scope indicating serious issues or have other serious QA violations.

Global-scope failures prevent the ebuild not only from being installed
but also from being properly processed by the Package Manager. Since
metadata can not be obtained for those ebuilds, no cache entries are
created for them and the Package Manager needs to retry running them
every time it stumbles upon them. This involves both a serious slowdown
and repeating error output while performing dependency resolution.

The most common cause of global-scope failures is use of removed or
banned APIs in old ebuilds. In particular, this includes eclasses being
removed or removing support for old EAPIs. Nonetheless there are also
other issues such as performing illegal operations in global scope
(external program calls), malformed bash in ebuilds or malformed
metadata.xml.

The error log for the repository can be found at:

  https://qa-reports.gentoo.org/output/repos/SwordArMor.html

In particular, please look for highlighted error messages.

Please fix the issue ASAP, possibly via removing unmaintained, old
ebuilds. We reserve the right to remove the repository from our list if
we do not receive any reply within 4 weeks.

[1]:https://wiki.gentoo.org/wiki/Project:Repository_mirror_and_CI
Comment 1 Alarig Le Lay 2019-12-14 12:56:35 UTC
Hi,

Thanks for the report! I call sed in this ebuild because the version of the package isn’t "0.2.0" but "VERSION_0_2_0", so it’s a basic concatenation + sed.

What are the other options in a case like this?

Regards,
-- 
Alarig
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-12-14 13:20:25 UTC
"VERSION_${PV//./_}"

bash substitutions are much faster than calling external tools.
Comment 3 Alarig Le Lay 2019-12-14 15:39:31 UTC
I didn’t know that bash string manipulations work inside an ebuild. Thanks for the suggestion :)

I pushed it: https://git.grifon.fr/alarig/SwordArMor-gentoo-overlay/commit/7f0fae6ef81e64c68999a0eb3cdf8382a2fc7191
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-12-15 04:11:07 UTC
The bug seems to be fixed in the repository. Closing.