Project

General

Profile

Actions

Bug #19683

open

ruby-3.3.0-preview1 does not build with BSD make without --with-baseruby

Added by jeremyevans0 (Jeremy Evans) 7 months ago. Updated 3 months ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 3.3.0preview1 (2023-05-12 master a1b01e7701) [x86_64-openbsd7.3]
[ruby-core:113572]

Description

ruby-3.3.0-preview1 does not build with BSD make without --with-baseruby. However, it builds fine with GNU make and when using BSD make with --with-baseruby. Previous Ruby tarball releases have built fine with BSD make without --with-baseruby, so this issue has been introduced recently.

When building with BSD make without --with-baseruby, building fails after generating RI format with:

/bin/sh:  false: not found
*** Error 127 in . (exts.mk:94 'ruby': @make   UPDATE_LIBRARIES=no EXTENCS=dmyenc.o BASERUBY=echo\ executable\ host\ ruby\ is\ required.\ \ ...)
*** Error 2 in /home/jeremy/local/ruby-3.3.0-preview1 (Makefile:948 'build-ext': @make -f exts.mk    libdir="/usr/local/lib" LIBRUBY_EXTS=./...)

Updated by jeremyevans0 (Jeremy Evans) 3 months ago

This is still a problem in 3.3.0-preview2. I've been using the following bad hack to work around it:

Index: common.mk
--- common.mk.orig
+++ common.mk
@@ -378,10 +378,10 @@ ext/configure-ext.mk: $(PREP) all-incs $(MKFILES) $(RB
 configure-ext: $(EXTS_MK)

 build-ext: $(EXTS_MK)
-       $(Q)$(MAKE) -f $(EXTS_MK) $(mflags) libdir="$(libdir)" LIBRUBY_EXTS=$(LIBRUBY_EXTS) \
+       -$(Q)$(MAKE) -f $(EXTS_MK) $(mflags) libdir="$(libdir)" LIBRUBY_EXTS=$(LIBRUBY_EXTS) \
            EXTENCS="$(ENCOBJS)" BASERUBY="$(BASERUBY)" MINIRUBY="$(MINIRUBY)" \
            UPDATE_LIBRARIES=no $(EXTSTATIC)
-       $(Q)$(MAKE) $(EXTS_NOTE)
+       -$(Q)$(MAKE) $(EXTS_NOTE)

 exts-note: $(EXTS_MK)
        $(Q)$(MAKE) $(EXTS_NOTE)
Actions

Also available in: Atom PDF

Like0
Like0