Bug 269197 - lang/ruby31: Add upstream patch to fix bug of mkmf library
Summary: lang/ruby31: Add upstream patch to fix bug of mkmf library
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yasuhiro Kimura
URL: https://bugs.ruby-lang.org/issues/19189
Keywords:
Depends on:
Blocks: 268586 269177 269178 269179
  Show dependency treegraph
 
Reported: 2023-01-28 05:48 UTC by Yasuhiro Kimura
Modified: 2023-02-11 06:03 UTC (History)
1 user (show)

See Also:
yasu: maintainer-feedback-
yasu: merge-quarterly+


Attachments
Patch file (2.24 KB, patch)
2023-01-28 05:48 UTC, Yasuhiro Kimura
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yasuhiro Kimura freebsd_committer freebsd_triage 2023-01-28 05:48:39 UTC
Created attachment 239757 [details]
Patch file

Add upstream patch to fix bug of mkmf library.

There is bug in mkmf library of Ruby 3.1 that it fails to detect pkg-config command if it isn't installed in environment that Ruby is built, and it causes build error of some ports when default version of Ruby is 3.1. So add upstream patch to fix it.

Reference:      https://bugs.ruby-lang.org/issues/19189
Comment 1 Yasuhiro Kimura freebsd_committer freebsd_triage 2023-02-11 05:54:39 UTC
Maintainer timeout. Take.
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-02-11 05:59:43 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fc1c752e8b1cfb6162b9243f275efbe33ec04757

commit fc1c752e8b1cfb6162b9243f275efbe33ec04757
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2023-01-28 05:35:34 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2023-02-11 05:59:02 +0000

    lang/ruby31: Add upstream patch to fix bug of mkmf library

    There is bug in mkmf library of Ruby 3.1 that it fails to detect
    pkg-config command if it isn't installed in environment that Ruby is
    built, and it causes build error of some ports when default version of
    Ruby is 3.1. So add upstream patch to fix it.

    Reference:      https://bugs.ruby-lang.org/issues/19189
    PR:             269197
    Approved by:    maintainer timeout
    MFH:            2023Q1

 Mk/Uses/ruby.mk                               |  2 +-
 lang/ruby31/files/patch-mkmf-pkg-config (new) | 25 +++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-02-11 06:01:44 UTC
A commit in branch 2023Q1 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fb4a68c58b46091c845663699b59734fba937e92

commit fb4a68c58b46091c845663699b59734fba937e92
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2023-01-28 05:35:34 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2023-02-11 06:00:36 +0000

    lang/ruby31: Add upstream patch to fix bug of mkmf library

    There is bug in mkmf library of Ruby 3.1 that it fails to detect
    pkg-config command if it isn't installed in environment that Ruby is
    built, and it causes build error of some ports when default version of
    Ruby is 3.1. So add upstream patch to fix it.

    Reference:      https://bugs.ruby-lang.org/issues/19189
    PR:             269197
    Approved by:    maintainer timeout
    MFH:            2023Q1

    (cherry picked from commit fc1c752e8b1cfb6162b9243f275efbe33ec04757)

 Mk/bsd.ruby.mk                                |  2 +-
 lang/ruby31/files/patch-mkmf-pkg-config (new) | 25 +++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)