Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 794235 - dev-util/ragel - up and downgrade each day
Summary: dev-util/ragel - up and downgrade each day
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
: 933240 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-06-05 07:46 UTC by Toralf Förster
Modified: 2024-06-10 15:44 UTC (History)
4 users (show)

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


Attachments
task.20210602-003925.dev_ruby_ruby_rc4.log (task.20210602-003925.dev_ruby_ruby_rc4.log,17.42 KB, text/plain)
2021-06-05 07:47 UTC, Toralf Förster
Details
task.20210603-184137.dev_ruby_ecma_re_validator.log (task.20210603-184137.dev_ruby_ecma_re_validator.log,3.08 KB, text/plain)
2021-06-05 07:47 UTC, Toralf Förster
Details
task.20210603-202737.dev_ruby_rspec_json_expectations.log (task.20210603-202737.dev_ruby_rspec_json_expectations.log,2.76 KB, text/plain)
2021-06-05 07:47 UTC, Toralf Förster
Details
task.20210603-220357._world.log (task.20210603-220357._world.log,10.42 KB, text/plain)
2021-06-05 07:47 UTC, Toralf Förster
Details
task.20210603-220853.dev_ruby_blinkstick.log (task.20210603-220853.dev_ruby_blinkstick.log,4.50 KB, text/plain)
2021-06-05 07:47 UTC, Toralf Förster
Details
task.20210604-173317._world.log (task.20210604-173317._world.log,11.47 KB, text/plain)
2021-06-05 07:47 UTC, Toralf Förster
Details
task.20210604-202803.dev_ruby_ruby_gtksourceview3.log (task.20210604-202803.dev_ruby_ruby_gtksourceview3.log,4.55 KB, text/plain)
2021-06-05 07:48 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 2021-06-05 07:46:38 UTC
At all 12 tinderbox images I experienced here sth like: 

/home/tinderbox/run/17.1_systemd-j3-20210601-172026/var/log/emerge.log
2021-06-02T00:24:04 >>> dev-util/ragel-7.0.4: 2 minutes, 12 seconds
2021-06-03T18:40:00 >>> dev-util/ragel-6.10: 55 seconds
2021-06-03T20:24:54 >>> dev-util/ragel-7.0.4: 2 minutes, 15 seconds
2021-06-03T21:52:21 >>> dev-util/ragel-6.10: 57 seconds
2021-06-03T22:06:18 >>> dev-util/ragel-7.0.4: 2 minutes, 10 seconds
2021-06-04T17:26:50 >>> dev-util/ragel-6.10: 1 minute, 15 seconds
2021-06-04T20:22:22 >>> dev-util/ragel-7.0.4: 2 minutes, 31 seconds

I'll attach all log files of emerge of that image here too.

The issue is generic and seems not to be related to special USE flag combos. All images are ~amd64.
Comment 1 Toralf Förster gentoo-dev 2021-06-05 07:47:54 UTC
Created attachment 713754 [details]
task.20210602-003925.dev_ruby_ruby_rc4.log
Comment 2 Toralf Förster gentoo-dev 2021-06-05 07:47:55 UTC
Created attachment 713757 [details]
task.20210603-184137.dev_ruby_ecma_re_validator.log
Comment 3 Toralf Förster gentoo-dev 2021-06-05 07:47:56 UTC
Created attachment 713760 [details]
task.20210603-202737.dev_ruby_rspec_json_expectations.log
Comment 4 Toralf Förster gentoo-dev 2021-06-05 07:47:57 UTC
Created attachment 713763 [details]
task.20210603-220357._world.log
Comment 5 Toralf Förster gentoo-dev 2021-06-05 07:47:58 UTC
Created attachment 713766 [details]
task.20210603-220853.dev_ruby_blinkstick.log
Comment 6 Toralf Förster gentoo-dev 2021-06-05 07:47:59 UTC
Created attachment 713769 [details]
task.20210604-173317._world.log
Comment 7 Toralf Förster gentoo-dev 2021-06-05 07:48:00 UTC
Created attachment 713772 [details]
task.20210604-202803.dev_ruby_ruby_gtksourceview3.log
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-06-05 15:45:57 UTC
The problem is that some packages still declare dependencies on the older version, so we probably need to file bugs for them instead.
Comment 9 Hans de Graaff gentoo-dev Security 2021-06-06 07:12:17 UTC
(In reply to Sam James from comment #8)
> The problem is that some packages still declare dependencies on the older
> version, so we probably need to file bugs for them instead.

My understanding is (at least for the ruby packages depending on ragel) that ragel 7 is not compatible with ragel 6 and required functionality is no longer present, so these dependencies won't be able to upgrade to ragel 7.

One thing to consider is to put ragel 6 and 7 in separate slots (with e.g. the ragel 6 slot providing a ragel-6 binary to run). I haven't looked at the feasibility of this. We would also need to consider desirability, especially if upstream no longer maintains ragel 6.
Comment 10 Toralf Förster gentoo-dev 2021-06-20 17:42:34 UTC
at least booth versions should block each other IMO if they can't coexists at the same system
Comment 11 Toralf Förster gentoo-dev 2023-06-16 12:23:51 UTC
FWIW dev-ruby/capybara still wants ragel-6
Comment 12 Toralf Förster gentoo-dev 2023-06-21 17:37:25 UTC
dev-ruby/parser wants ragel-6
Comment 13 Toralf Förster gentoo-dev 2023-06-22 13:03:07 UTC
and:
   =dev-util/ragel-6* required by (dev-ruby/regexp_parser-2.7.0:2/2::gentoo, installed) USE="-doc -test" RUBY_TARGETS="ruby31 -ruby30 -ruby32"
Comment 14 Toralf Förster gentoo-dev 2023-06-24 08:25:46 UTC
dev-ruby/redcloth-4.3.2-r4:0/0 depends on old ragel too
Comment 15 Toralf Förster gentoo-dev 2023-07-13 13:36:59 UTC
and dev-ruby/parser-3.2.2.3:0/0 too
Comment 16 Hans de Graaff gentoo-dev Security 2024-06-04 04:00:48 UTC
*** Bug 933240 has been marked as a duplicate of this bug. ***
Comment 17 Hans de Graaff gentoo-dev Security 2024-06-04 04:23:18 UTC
Bug 933240 makes the comment that ragel 7.0.4 does have a ragel-ruby command. This wasn't there in earlier 7.0 versions. It also isn't backward compatible with how ragel 6 handles ruby, but it does seem to work to generate ruby code. We could patch all the existing ruby gems to use it to generate ruby code.

The current list of packages to update is:

dev-ruby/json
dev-ruby/parser
dev-ruby/regexp_parser
dev-ruby/redcloth
Comment 18 Hans de Graaff gentoo-dev Security 2024-06-04 04:39:37 UTC
(In reply to Hans de Graaff from comment #17)

> dev-ruby/json

Doesn't use ragel for ruby code so there is no need to restrict this.

> dev-ruby/parser

Crashes the ragel 7.0.4 ragel-ruby command (segmentation fault).

> dev-ruby/regexp_parser

Generates ruby code but fails all its tests with it.

> dev-ruby/redcloth

Haven't investigated anymore.

So it looks like the ruby support in ragel 7.0.4 doesn't work and we can't use it. :-(
Comment 19 Larry the Git Cow gentoo-dev 2024-06-04 04:39:49 UTC
The bug has been referenced in the following commit(s):

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

commit 1b25a69077f514882b5039e763c5bcbc5841b757
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2024-06-04 04:26:28 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2024-06-04 04:26:28 +0000

    dev-ruby/json: allow all ragel versions
    
    It turns out dev-ruby/json does not use ragel to generate ruby code and
    using ragel 7 works fine for this case.
    
    Bug: https://bugs.gentoo.org/794235
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/json/json-2.7.2-r1.ebuild | 51 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)