Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836210 - sys-apps/pkgcore-0.12.10 (with dev-util/pkgcheck-0.10.9-r1): Exported bash functions leak into check environment
Summary: sys-apps/pkgcore-0.12.10 (with dev-util/pkgcheck-0.10.9-r1): Exported bash fu...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-26 18:24 UTC by Ulrich Müller
Modified: 2022-03-29 16:35 UTC (History)
3 users (show)

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 Ulrich Müller gentoo-dev 2022-03-26 18:24:32 UTC
$ foo() { :; }
$ export -f foo
$ pkgcheck scan eapi8-dosym.eclass
eclass
  EclassDocMissingFunc: eapi8-dosym: undocumented function: foo

Expected result: Functions from the environment should not affect the output.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-03-26 19:21:05 UTC
I suppose the primary question is: should this be supported for regular ebuild ops, i.e. should user be allowed to inject functions into ebuild env?  In other words, should we just strip it at pkgcheck level to fix the check, or should we change pkgcore behavior here?