diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-08-30 20:23:06 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-09-01 11:18:36 +0300 |
commit | e9a8c4094584ae23fd5921098105a94a1a81d60e (patch) | |
tree | 75b95ea1aa631c0c5069601013ff4035aeaec5a7 /testdata/repos | |
parent | GlobDistdir: check for glob usage with DISTDIR (diff) | |
download | pkgcheck-e9a8c4094584ae23fd5921098105a94a1a81d60e.tar.gz pkgcheck-e9a8c4094584ae23fd5921098105a94a1a81d60e.tar.bz2 pkgcheck-e9a8c4094584ae23fd5921098105a94a1a81d60e.zip |
EclassManualDepsCheck: add check for missing manual deps
When in special modes of eclasses (for example CARGO_OPTIONAL=1), verify
specific dependencies are listed somehow in one of the dependencies var.
Resolves: https://github.com/pkgcore/pkgcheck/issues/615
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'testdata/repos')
10 files changed, 63 insertions, 0 deletions
diff --git a/testdata/repos/standalone/EclassManualDepsCheck/RubyMissingDeps/RubyMissingDeps-0.ebuild b/testdata/repos/standalone/EclassManualDepsCheck/RubyMissingDeps/RubyMissingDeps-0.ebuild new file mode 100644 index 00000000..aaf1acd0 --- /dev/null +++ b/testdata/repos/standalone/EclassManualDepsCheck/RubyMissingDeps/RubyMissingDeps-0.ebuild @@ -0,0 +1,12 @@ +EAPI=8 + +RUBY_OPTIONAL=1 + +inherit ruby-ng + +DESCRIPTION="Optional inherit with one dep" +HOMEPAGE="https://github.com/pkgcore/pkgcheck" +SLOT="0" +LICENSE="BSD" + +IDEPEND="dev-lang/ruby" diff --git a/testdata/repos/standalone/EclassManualDepsCheck/RubyMissingDeps/RubyMissingDeps-1.ebuild b/testdata/repos/standalone/EclassManualDepsCheck/RubyMissingDeps/RubyMissingDeps-1.ebuild new file mode 100644 index 00000000..aba69b0b --- /dev/null +++ b/testdata/repos/standalone/EclassManualDepsCheck/RubyMissingDeps/RubyMissingDeps-1.ebuild @@ -0,0 +1,8 @@ +RUBY_OPTIONAL=1 + +inherit ruby-ng + +DESCRIPTION="Optional inherit without dep" +HOMEPAGE="https://github.com/pkgcore/pkgcheck" +SLOT="0" +LICENSE="BSD" diff --git a/testdata/repos/standalone/EclassManualDepsCheck/RubyMissingDeps/RubyMissingDeps-2.ebuild b/testdata/repos/standalone/EclassManualDepsCheck/RubyMissingDeps/RubyMissingDeps-2.ebuild new file mode 100644 index 00000000..04bab5d8 --- /dev/null +++ b/testdata/repos/standalone/EclassManualDepsCheck/RubyMissingDeps/RubyMissingDeps-2.ebuild @@ -0,0 +1,14 @@ +EAPI=8 + +RUBY_OPTIONAL=1 + +inherit ruby-ng + +DESCRIPTION="Optional inherit with category whitelist" +HOMEPAGE="https://github.com/pkgcore/pkgcheck" +SLOT="0" +LICENSE="BSD" + +IUSE="test" +RESTRICT="!test? ( test )" +BDEPEND="test? ( dev-ruby/stub )" diff --git a/testdata/repos/standalone/EclassManualDepsCheck/RustMissingDeps/RustMissingDeps-0.ebuild b/testdata/repos/standalone/EclassManualDepsCheck/RustMissingDeps/RustMissingDeps-0.ebuild new file mode 100644 index 00000000..2b453030 --- /dev/null +++ b/testdata/repos/standalone/EclassManualDepsCheck/RustMissingDeps/RustMissingDeps-0.ebuild @@ -0,0 +1,6 @@ +inherit cargo + +DESCRIPTION="Normal non-optional inherit" +HOMEPAGE="https://github.com/pkgcore/pkgcheck" +SLOT="0" +LICENSE="BSD" diff --git a/testdata/repos/standalone/EclassManualDepsCheck/RustMissingDeps/RustMissingDeps-1.ebuild b/testdata/repos/standalone/EclassManualDepsCheck/RustMissingDeps/RustMissingDeps-1.ebuild new file mode 100644 index 00000000..b43ff1b4 --- /dev/null +++ b/testdata/repos/standalone/EclassManualDepsCheck/RustMissingDeps/RustMissingDeps-1.ebuild @@ -0,0 +1,10 @@ +EAPI=7 + +CARGO_OPTIONAL=1 + +inherit cargo + +DESCRIPTION="Optional inherit without deps" +HOMEPAGE="https://github.com/pkgcore/pkgcheck" +SLOT="0" +LICENSE="BSD" diff --git a/testdata/repos/standalone/dev-lang/ruby/ruby-0.ebuild b/testdata/repos/standalone/dev-lang/ruby/ruby-0.ebuild new file mode 100644 index 00000000..ba6aebb4 --- /dev/null +++ b/testdata/repos/standalone/dev-lang/ruby/ruby-0.ebuild @@ -0,0 +1,4 @@ +DESCRIPTION="Stub ebuild" +HOMEPAGE="https://github.com/pkgcore/pkgcheck" +SLOT="0" +LICENSE="BSD" diff --git a/testdata/repos/standalone/dev-ruby/stub/stub-0.ebuild b/testdata/repos/standalone/dev-ruby/stub/stub-0.ebuild new file mode 100644 index 00000000..ba6aebb4 --- /dev/null +++ b/testdata/repos/standalone/dev-ruby/stub/stub-0.ebuild @@ -0,0 +1,4 @@ +DESCRIPTION="Stub ebuild" +HOMEPAGE="https://github.com/pkgcore/pkgcheck" +SLOT="0" +LICENSE="BSD" diff --git a/testdata/repos/standalone/eclass/ruby-ng.eclass b/testdata/repos/standalone/eclass/ruby-ng.eclass new file mode 100644 index 00000000..5b2b9973 --- /dev/null +++ b/testdata/repos/standalone/eclass/ruby-ng.eclass @@ -0,0 +1 @@ +# ruby-ng eclass diff --git a/testdata/repos/standalone/virtual/rubygems/rubygems-0.ebuild b/testdata/repos/standalone/virtual/rubygems/rubygems-0.ebuild new file mode 100644 index 00000000..9c2ce2e9 --- /dev/null +++ b/testdata/repos/standalone/virtual/rubygems/rubygems-0.ebuild @@ -0,0 +1,2 @@ +DESCRIPTION="Stub ebuild" +SLOT="0" diff --git a/testdata/repos/standalone/virtual/rust/rust-0.ebuild b/testdata/repos/standalone/virtual/rust/rust-0.ebuild new file mode 100644 index 00000000..9c2ce2e9 --- /dev/null +++ b/testdata/repos/standalone/virtual/rust/rust-0.ebuild @@ -0,0 +1,2 @@ +DESCRIPTION="Stub ebuild" +SLOT="0" |