Project

General

Profile

Actions

Bug #19189

closed

Ruby 3.1.3/3.2.x can no longer find pkg-config if not present at buildtime

Added by mistydemeo (Misty De Meo) over 1 year ago. Updated about 1 year ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux]
[ruby-core:111225]

Description

Starting with Ruby 3.1.3, mkmf.rb calls to pkg-config will fail if pkg-config wasn't present on the system at the time it was built. Prior to that version, even if Ruby itself wasn't configured with pkg-config, mkmf.rb would be able to correctly pick it up from the PATH. This was introduced by https://github.com/ruby/ruby/commit/7f1ca666424849134990d022266bcd4d6636465f and its Ruby 3.1.3 equivalent, https://github.com/ruby/ruby/commit/3914581213e3aea138b02941b41e62c15461af27. I've confirmed that reverting this specific change fixes the problem.

This broke a Ruby deployment which is built in a minimal Docker environment with no pkg-config, but which is later copied into a system with pkg-config present.


Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #19233: Failed to install sqlite3 gem since 7f1ca666424849134990d022266bcd4d6636465f using DockerClosedActions
Actions #2

Updated by hsbt (Hiroshi SHIBATA) over 1 year ago

  • Related to Bug #19233: Failed to install sqlite3 gem since 7f1ca666424849134990d022266bcd4d6636465f using Docker added
Actions #3

Updated by nobu (Nobuyoshi Nakada) over 1 year ago

  • Status changed from Open to Closed

Applied in changeset git|613fca01486e47dee9364a2fd86b5f5e77fe23c8.


[Bug #19189] Fallback to the default "pkg-config"

Updated by mistydemeo (Misty De Meo) over 1 year ago

Thank you! Can you also backport to the 3.1 branch, please?

Actions #5

Updated by nagachika (Tomoyuki Chikanaga) over 1 year ago

  • Backport changed from 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN to 2.7: DONTNEED, 3.0: DONTNEED, 3.1: REQUIRED
Actions #6

Updated by nobu (Nobuyoshi Nakada) over 1 year ago

  • Related to deleted (Bug #19233: Failed to install sqlite3 gem since 7f1ca666424849134990d022266bcd4d6636465f using Docker)
Actions #7

Updated by nobu (Nobuyoshi Nakada) over 1 year ago

  • Has duplicate Bug #19233: Failed to install sqlite3 gem since 7f1ca666424849134990d022266bcd4d6636465f using Docker added

Updated by nagachika (Tomoyuki Chikanaga) about 1 year ago

  • Backport changed from 2.7: DONTNEED, 3.0: DONTNEED, 3.1: REQUIRED to 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONE

ruby_3_1 0602df301cd76a3f1b444c4742b288bc6aed80ac merged revision(s) 613fca01486e47dee9364a2fd86b5f5e77fe23c8.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0