Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908598 - dev-ruby/racc-1.7.0 - ERROR: dev-ruby/racc-1.7.0::gentoo failed (prepare phase):
Summary: dev-ruby/racc-1.7.0 - ERROR: dev-ruby/racc-1.7.0::gentoo failed (prepare phase):
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal critical
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
: 908605 908607 908756 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-06-16 08:55 UTC by Toralf Förster
Modified: 2023-06-19 04:18 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.77 KB, text/plain)
2023-06-16 08:55 UTC, Toralf Förster
Details
dev-ruby:racc-1.7.0:20230616-030745.log (dev-ruby:racc-1.7.0:20230616-030745.log,1.79 KB, text/plain)
2023-06-16 08:55 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,25.19 KB, text/plain)
2023-06-16 08:55 UTC, Toralf Förster
Details
environment (environment,90.33 KB, text/plain)
2023-06-16 08:55 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,784 bytes, application/x-xz)
2023-06-16 08:55 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,10.00 KB, application/x-xz)
2023-06-16 08:55 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-06-16 08:55:19 UTC
>>> Unpacking racc-1.7.0.tar.gz to /var/tmp/portage/dev-ruby/racc-1.7.0/work/all
>>> Source unpacked in /var/tmp/portage/dev-ruby/racc-1.7.0/work
>>> Preparing source in /var/tmp/portage/dev-ruby/racc-1.7.0/work ...
 * Running prepare phase for all
 * Running prepare phase for all
ruby31: no Ruby script found in input (LoadError)
 * ERROR: dev-ruby/racc-1.7.0::gentoo failed (prepare phase):
 *   (no error message)
 * 

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma_systemd-20230615-140402

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.6
Python 3.11.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.69.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 

php cli (if any):

  HEAD of ::gentoo
commit 48c90533a2cea5bc90d6bca7e8d700413ca11c91
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Jun 16 01:46:58 2023 +0000

    2023-06-16 01:46:57 UTC

emerge -qpvO dev-ruby/racc
[ebuild  N    ] dev-ruby/racc-1.7.0  USE="-doc -test" RUBY_TARGETS="ruby31 -ruby30 -ruby32"
Comment 1 Toralf Förster gentoo-dev 2023-06-16 08:55:20 UTC
Created attachment 863955 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-06-16 08:55:21 UTC
Created attachment 863956 [details]
dev-ruby:racc-1.7.0:20230616-030745.log
Comment 3 Toralf Förster gentoo-dev 2023-06-16 08:55:22 UTC
Created attachment 863957 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-06-16 08:55:23 UTC
Created attachment 863958 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-06-16 08:55:24 UTC
Created attachment 863959 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-06-16 08:55:25 UTC
Created attachment 863960 [details]
etc.portage.tar.xz
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-16 14:02:16 UTC
I'm going to check if this is a side-effect of changes from yesterday. Not tried to repro yet.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-16 16:46:17 UTC
I can't reproduce this yet..
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-16 17:02:26 UTC
(In reply to Sam James from comment #8)
> I can't reproduce this yet..

Got it, had to purge all ruby binpkgs (clean racc build was not enough)
Comment 10 Andrey Bugaevskiy 2023-06-16 17:38:10 UTC
On my machine the cause was an empty shebang in /usr/bin/rake (fakegems-generated).
Comment 11 Larry the Git Cow gentoo-dev 2023-06-16 17:42:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a32b5379f8d17f985765fa70fe012abdff07c4c1

commit a32b5379f8d17f985765fa70fe012abdff07c4c1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-16 17:39:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-16 17:42:12 +0000

    ruby-fakegem.eclass: adapt to ruby-ng.eclass changes
    
    ruby-fakegem uses an internal function (which is technically allowed, I guess,
    maybe, but all of this should really be shifted into ruby-utils ultimately -
    funnily enough negil pointed out that general class of problem yesterday.
    
    diff of bad/good::
    ```
    --- good/rake-13.0.6-r1/image/usr/bin/rake
    +++ bad/rake-13.0.6-r1-1/image/usr/bin/rake
     @@ -1,4 +1,4 @@
     -#!/usr/bin/env ruby
     +#!
    ```
    
    Closes: https://bugs.gentoo.org/908598
    Fixes: 390ad2effe1c83a7cb25a892ad988937b53c07fe
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/ruby-fakegem.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=594d94f491be2eb7cd37295a93522cf18559337f

commit 594d94f491be2eb7cd37295a93522cf18559337f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-16 17:42:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-16 17:42:13 +0000

    dev-ruby/rake: revbump to propagate ruby-fakegem fix
    
    Bug: https://bugs.gentoo.org/908598
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-ruby/rake/{rake-13.0.6-r1.ebuild => rake-13.0.6-r2.ebuild} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-16 17:46:18 UTC
(In reply to Andrey Bugaevskiy from comment #10)
> On my machine the cause was an empty shebang in /usr/bin/rake
> (fakegems-generated).

Thanks! I'd figured it out by diffing a good/bad version with an old eclass checkout, but if I hadn't, this would've been quite helpful - much appreciated in any case.
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-16 18:29:53 UTC
*** Bug 908607 has been marked as a duplicate of this bug. ***
Comment 14 Larry the Git Cow gentoo-dev 2023-06-16 20:53:59 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3413c5f9babccf6e769b9ed6a80c5c4f152477b

commit a3413c5f9babccf6e769b9ed6a80c5c4f152477b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-16 20:39:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-16 20:40:30 +0000

    dev-lang/ruby: depend on fixed dev-ruby/rake
    
    Bug: https://bugs.gentoo.org/908598
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/ruby/{ruby-3.0.6-r2.ebuild => ruby-3.0.6-r3.ebuild} | 2 +-
 dev-lang/ruby/{ruby-3.1.4-r2.ebuild => ruby-3.1.4-r3.ebuild} | 2 +-
 dev-lang/ruby/{ruby-3.2.2-r2.ebuild => ruby-3.2.2-r3.ebuild} | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-17 03:08:03 UTC
*** Bug 908605 has been marked as a duplicate of this bug. ***
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-19 04:18:21 UTC
*** Bug 908756 has been marked as a duplicate of this bug. ***