-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UnusedInherits: add whitelist for weak usage by another eclass
Came up as example from elisp eclass, which has automagic calling of functions from readme.gentoo-r1 eclass if they are found in env. While weird, this is legal so let's add a simple whitelist support for this, so it would be simple to extend in future. Reported-by: Ulrich Müller <ulm@gentoo.org> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
- Loading branch information
Showing
4 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
testdata/repos/eclass/InheritsCheck/UnusedInherits/UnusedInherits-2.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
EAPI=8 | ||
|
||
inherit elisp readme.gentoo-r1 | ||
|
||
DESCRIPTION="Ebuild with weak usage inheritance" | ||
HOMEPAGE="https://github.com/pkgcore/pkgcheck" | ||
SLOT="0" | ||
LICENSE="BSD" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# @ECLASS: elisp.eclass | ||
# @MAINTAINER: | ||
# Random Person <maintainer@random.email> | ||
# @SUPPORTED_EAPIS: 8 | ||
# @BLURB: Stub eclass for testing the UnusedInherit result. | ||
|
||
EXPORT_FUNCTIONS src_prepare | ||
|
||
# @FUNCTION: elisp_src_prepare | ||
# @USAGE: | ||
# @DESCRIPTION: | ||
# Public src_prepare stub function. | ||
elisp_src_prepare() { :; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# @ECLASS: readme.gentoo-r1.eclass | ||
# @MAINTAINER: | ||
# Random Person <maintainer@random.email> | ||
# @SUPPORTED_EAPIS: 8 | ||
# @BLURB: Stub eclass for testing the UnusedInherit result. | ||
|
||
# @FUNCTION: readme.gentoo_create_doc | ||
# @USAGE: | ||
# @DESCRIPTION: | ||
# stub function | ||
readme.gentoo_create_doc() { :; } |
Please add a comment above this describing what it's for / typical use case (e.g. conditional automagic inherit).