Skip to content

Add ext/etc/depend - #101

Merged
hsbt merged 1 commit into
masterfrom
claude/jolly-bell-d4e0fa
Sep 17, 2026
Merged

hsbt merged 1 commit into
masterfrom
claude/jolly-bell-d4e0fa

Conversation

@hsbt

@hsbt hsbt commented Sep 17, 2026

Copy link
Copy Markdown
Member

ext/etc has no depend, so ruby tool/sync_default_gems.rb etc deletes the one ruby/ruby carries. Misc #22206 has each default gem keep its own dependency file, and the whole-tree sync removes each mapped directory before copying the upstream files in. What goes with it is the handwritten rule that builds constdefs.h.

This adds the file as ruby ext/etc/extconf.rb --update-depend generates it. Root detection stops at this repository's .git, so the rules name only etc.c and constdefs.h and no installed Ruby header. minimize_dependencies on the ruby/ruby side reduces the autogenerated block to etc.o: etc.c, which matches the file there today byte for byte.

The constdefs.h rule is redundant for this repository, since the Rakefile already generates that header, but it has to travel with the file for ruby/ruby's sake.

Generated with Claude Code

`tool/sync_default_gems.rb` copies this directory wholesale, so the rule that builds `constdefs.h` has to live here or ruby/ruby loses it. Generated with `ruby ext/etc/extconf.rb --update-depend`.

https://bugs.ruby-lang.org/issues/22206

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@hsbt
hsbt merged commit 47065e4 into master Sep 17, 2026
38 checks passed
@hsbt
hsbt deleted the claude/jolly-bell-d4e0fa branch September 17, 2026 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant