Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557764 - [ros-gentoo] Ebuild failures occuring in global scope
Summary: [ros-gentoo] Ebuild failures occuring in global scope
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Gentoo Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: wyc
URL: https://qa-reports.gentoo.org/output/...
Whiteboard:
Keywords:
Depends on:
Blocks: repository-qa-issues
  Show dependency tree
 
Reported: 2015-08-15 08:09 UTC by Michał Górny
Modified: 2015-09-21 18:08 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 2015-08-15 08:09:58 UTC
Our automated repository checks [1] have detected that the 'ros'
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.

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:

  http://gentoo.github.io/repo-qa-check-results/ros.html

In particular, please look for highlighted '!!! ERROR' and '!!! caught
exception' lines. The former usually mean failures coming from eclasses
and the ebuild itself, while exceptions usually mean malformed ebuilds
or metadata.xml.

While at it, please consider fixing global-scope 'use' call warnings (if
any). They are not fatal but are considered a serious QA violation.
'use' functions must not ever be called outside of phase functions.

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 wyc 2015-08-18 00:23:21 UTC
When testing the ebuild, I found that the original download URL was broken. I replaced it with the closest package version hosted on the official website.

Unfortunately I could not find the cause of:
'junk after document element: line 4, column 0' while processing 'ebuild src: sci-electronics/sdformat-1.4.11'

offending ebuild revision here:
https://raw.githubusercontent.com/ros/ros-overlay/master/sci-electronics/sdformat/sdformat-1.4.9.ebuild
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-08-18 06:42:54 UTC
(In reply to wayne from comment #1)
> When testing the ebuild, I found that the original download URL was broken.
> I replaced it with the closest package version hosted on the official
> website.
> 
> Unfortunately I could not find the cause of:
> 'junk after document element: line 4, column 0' while processing 'ebuild
> src: sci-electronics/sdformat-1.4.11'

This is about metadata.xml actually. (yes, pkgcore needs less confusing errors :))
Comment 3 Hunter L. Allen 2015-09-20 14:10:56 UTC
Hello, everyone! I believe I have fixed the big on GitHub. Does anyone have a way of verifying this?

Regards,

-Hunter A.
Comment 4 Hunter L. Allen 2015-09-20 14:11:19 UTC
Hello, everyone! I believe I have fixed the big on GitHub. Does anyone have a way of verifying this?

Regards,

-Hunter A.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-09-20 14:52:18 UTC
The linked results are updated every 20 minutes, so yes, I think it is fixed now. I'll run the bug update script when I get to my PC.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-09-21 18:08:17 UTC
The bug seems to be fixed in the repository. Closing.