summaryrefslogtreecommitdiff
path: root/defs
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-17 16:05:16 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-17 19:57:48 +0900
commit64cff780051adf95a0f1799baddec98ae23e8add (patch)
treea0f339b0e2307092bcd701a615d3caede1e5abcd /defs
parentfab8f3bde6e4d1ac78aa63e4768452b3da0f955e (diff)
downloadruby-64cff780051adf95a0f1799baddec98ae23e8add.tar.gz
`Gem.unpack` extracts gems so able to execute
Creates simple bin stubs to load the extracted executable files. After only extracted under `gems` directory, the gems are considered installed but the executable scripts are not found. Also the second argument is now the parent of the previous second and third arguments.
Diffstat (limited to 'defs')
-rw-r--r--defs/gmake.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/defs/gmake.mk b/defs/gmake.mk
index fbeb47fd9d..4019eb3854 100644
--- a/defs/gmake.mk
+++ b/defs/gmake.mk
@@ -298,8 +298,7 @@ extract-gems: | $(patsubst %,.bundle/gems/%,$(bundled-gems))
$(ECHO) Extracting bundle gem $*...
$(Q) $(BASERUBY) -C "$(srcdir)" \
-Itool -rgem-unpack \
- -e 'Gem.unpack("gems/$(@F).gem", ".bundle/gems", ".bundle/specifications")'
- $(RMALL) "$(srcdir)/$(@:.gem=)/".git*
+ -e 'Gem.unpack("gems/$(@F).gem", ".bundle")'
$(srcdir)/.bundle/gems:
$(MAKEDIRS) $@