repo/gentoo:master commit in: eclass/
"Sam James" <[email protected]>
| Newsgroups | gmane.linux.gentoo.cvs |
|---|---|
| Message-ID | <1785974557.aeeb586b1472cc11112a5e909a05c03d0c55f171.sam@gentoo> |
commit: aeeb586b1472cc11112a5e909a05c03d0c55f171
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 6 00:02:31 2026 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Aug 6 00:02:37 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aeeb586b
ruby-fakegem.eclass: avoid calling find(1) with trailing slash
In all_fakegem_install, if RUBY_FAKEGEM_BINDIR is empty but RUBY_FAKEGEM_BINWRAP
isn't, we'll call find(1) with a trailing slash:
```
* Running install phase for all
find: warning: -path */gems/minitest-retry-0.3.1/ will not match anything because it ends with /.
```
Avoid that by adding another check as we do for *_BINWRAP. We already
check if the find result is empty anyway before doing something with it.
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/ruby-fakegem.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass
index df548aca35d4..ee4167c32dfc 100644
--- a/eclass/ruby-fakegem.eclass
+++ b/eclass/ruby-fakegem.eclass
@@ -661,7 +661,7 @@ all_fakegem_install() {
# binary wrappers; we assume that all the implementations get the
# same binaries, or something is wrong anyway, so...
- if [[ -n ${RUBY_FAKEGEM_BINWRAP} ]]; then
+ if [[ -n ${RUBY_FAKEGEM_BINDIR} && -n ${RUBY_FAKEGEM_BINWRAP} ]]; then
local bindir=$(find "${D}" -type d -path "*/gems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}/${RUBY_FAKEGEM_BINDIR}" -print -quit)
if [[ -d "${bindir}" ]]; then