]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
fix: export ABS_TOP_BUILDDIR to env for ruby extconf.rb
authorThomas Vincent <thomasvincent@gmail.com>
Sat, 21 Mar 2026 16:06:31 +0000 (09:06 -0700)
committerThomas Vincent <thomasvincent@gmail.com>
Sat, 21 Mar 2026 16:06:31 +0000 (09:06 -0700)
extconf.rb checks ENV['ABS_TOP_BUILDDIR'] to decide between
in-tree and system-installed librrd paths. The ruby target
passed these as make variables to the subsequent $(MAKE) call
but not as environment variables to $(RUBY) extconf.rb, so
the in-tree build path was never taken.

Add env before the $(RUBY) call, matching the pattern used by
the python, perl-piped, and perl-shared targets.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
bindings/Makefile.am

index d32a0305e3a88b1f07e57a88b4cb61600c3a4829..5834411b8e431545ecab3289e3e5a6438f7e0d6b 100644 (file)
@@ -52,7 +52,10 @@ install-data-local:
 ruby:
        -mkdir -p ${builddir}/ruby
        ( cd ${builddir}/ruby \
-          && $(RUBY) ${abs_srcdir}/ruby/extconf.rb \
+          && env \
+             ABS_TOP_SRCDIR=${abs_top_srcdir} \
+             ABS_TOP_BUILDDIR=${abs_top_builddir} \
+             $(RUBY) ${abs_srcdir}/ruby/extconf.rb \
           && $(MAKE) \
              EPREFIX=$(exec_prefix) \
              ABS_TOP_SRCDIR=${abs_top_srcdir} \