ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:111225] [Ruby master Bug#19189] Ruby 3.1.3/3.2.x can no longer find pkg-config if not present at buildtime
@ 2022-12-06 23:56 mistydemeo (Misty De Meo)
  2022-12-13 12:13 ` [ruby-core:111271] " yahonda (Yasuo Honda)
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mistydemeo (Misty De Meo) @ 2022-12-06 23:56 UTC (permalink / raw)
  To: ruby-core

Issue #19189 has been reported by mistydemeo (Misty De Meo).

----------------------------------------
Bug #19189: Ruby 3.1.3/3.2.x can no longer find pkg-config if not present at buildtime
https://bugs.ruby-lang.org/issues/19189

* Author: mistydemeo (Misty De Meo)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
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.



-- 
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/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:111271] [Ruby master Bug#19189] Ruby 3.1.3/3.2.x can no longer find pkg-config if not present at buildtime
  2022-12-06 23:56 [ruby-core:111225] [Ruby master Bug#19189] Ruby 3.1.3/3.2.x can no longer find pkg-config if not present at buildtime mistydemeo (Misty De Meo)
@ 2022-12-13 12:13 ` yahonda (Yasuo Honda)
  2022-12-15  3:50 ` [ruby-core:111292] " mistydemeo (Misty De Meo)
  2023-02-23  6:39 ` [ruby-core:112551] " nagachika (Tomoyuki Chikanaga) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: yahonda (Yasuo Honda) @ 2022-12-13 12:13 UTC (permalink / raw)
  To: ruby-core

Issue #19189 has been updated by yahonda (Yasuo Honda).


I think Rails CI is also affected by https://github.com/ruby/ruby/commit/7f1ca666424849134990d022266bcd4d6636465f

Details are https://github.com/rails/rails/pull/46711#issuecomment-1348396867

----------------------------------------
Bug #19189: Ruby 3.1.3/3.2.x can no longer find pkg-config if not present at buildtime
https://bugs.ruby-lang.org/issues/19189#change-100622

* Author: mistydemeo (Misty De Meo)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
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.



-- 
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/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:111292] [Ruby master Bug#19189] Ruby 3.1.3/3.2.x can no longer find pkg-config if not present at buildtime
  2022-12-06 23:56 [ruby-core:111225] [Ruby master Bug#19189] Ruby 3.1.3/3.2.x can no longer find pkg-config if not present at buildtime mistydemeo (Misty De Meo)
  2022-12-13 12:13 ` [ruby-core:111271] " yahonda (Yasuo Honda)
@ 2022-12-15  3:50 ` mistydemeo (Misty De Meo)
  2023-02-23  6:39 ` [ruby-core:112551] " nagachika (Tomoyuki Chikanaga) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: mistydemeo (Misty De Meo) @ 2022-12-15  3:50 UTC (permalink / raw)
  To: ruby-core

Issue #19189 has been updated by mistydemeo (Misty De Meo).


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

----------------------------------------
Bug #19189: Ruby 3.1.3/3.2.x can no longer find pkg-config if not present at buildtime
https://bugs.ruby-lang.org/issues/19189#change-100649

* Author: mistydemeo (Misty De Meo)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
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.



-- 
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/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:112551] [Ruby master Bug#19189] Ruby 3.1.3/3.2.x can no longer find pkg-config if not present at buildtime
  2022-12-06 23:56 [ruby-core:111225] [Ruby master Bug#19189] Ruby 3.1.3/3.2.x can no longer find pkg-config if not present at buildtime mistydemeo (Misty De Meo)
  2022-12-13 12:13 ` [ruby-core:111271] " yahonda (Yasuo Honda)
  2022-12-15  3:50 ` [ruby-core:111292] " mistydemeo (Misty De Meo)
@ 2023-02-23  6:39 ` nagachika (Tomoyuki Chikanaga) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: nagachika (Tomoyuki Chikanaga) via ruby-core @ 2023-02-23  6:39 UTC (permalink / raw)
  To: ruby-core; +Cc: nagachika (Tomoyuki Chikanaga)

Issue #19189 has been updated by nagachika (Tomoyuki Chikanaga).

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.

----------------------------------------
Bug #19189: Ruby 3.1.3/3.2.x can no longer find pkg-config if not present at buildtime
https://bugs.ruby-lang.org/issues/19189#change-101998

* Author: mistydemeo (Misty De Meo)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux]
* Backport: 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONE
----------------------------------------
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.



-- 
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/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-02-23  6:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-06 23:56 [ruby-core:111225] [Ruby master Bug#19189] Ruby 3.1.3/3.2.x can no longer find pkg-config if not present at buildtime mistydemeo (Misty De Meo)
2022-12-13 12:13 ` [ruby-core:111271] " yahonda (Yasuo Honda)
2022-12-15  3:50 ` [ruby-core:111292] " mistydemeo (Misty De Meo)
2023-02-23  6:39 ` [ruby-core:112551] " nagachika (Tomoyuki Chikanaga) via ruby-core

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).