[#122973] [PATCH] Add Gem.default_install — Felipe Contreras via ruby-core <ruby-core@...>
We need a way to enable user installs by default so that tools like
3 messages
2025/08/17
[ruby-core:122972] [Ruby Bug#21546] `prefix` in ruby.pc is wrong when `--enable-load-relative`
From:
"nobu (Nobuyoshi Nakada) via ruby-core" <ruby-core@...>
Date:
2025-08-17 08:11:10 UTC
List:
ruby-core #122972
Issue #21546 has been reported by nobu (Nobuyoshi Nakada).
----------------------------------------
Bug #21546: `prefix` in ruby.pc is wrong when `--enable-load-relative`
https://bugs.ruby-lang.org/issues/21546
* Author: nobu (Nobuyoshi Nakada)
* Status: Open
* Backport: 3.2: REQUIRED, 3.3: REQUIRED, 3.4: REQUIRED
----------------------------------------
It is relocatable and should reflect the installed location.
```console
$ export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}
$ pkg-config --variable=prefix ruby-3.5
/.
```
Currently `pkg-config --define-prefix` works because it overrides the `prefix` value.
```console
$ pkg-config --variable=prefix --define-prefix ruby-3.5
/opt/local
```
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/