<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/ext/psych/extconf.rb, branch v4.0.4</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/psych] Remove warning by not calling find_library after pkg_config</title>
<updated>2025-09-24T05:55:26+00:00</updated>
<author>
<name>Étienne Barrié</name>
<email>etienne.barrie@gmail.com</email>
</author>
<published>2025-09-23T14:20:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6cd970b428314271e6b8efa746b8c4b6f5f6fcf7'/>
<id>6cd970b428314271e6b8efa746b8c4b6f5f6fcf7</id>
<content type='text'>
If pkg_config returns a truthy value, it found the library and added it
to the global values for the Makefile.

Calling `find_library` after a successful `pkg_config` causes -lyaml to
appear twice in the LIBS variable in the resulting Makefile, and causes
ld on macOS to emit a warning:

    $ bundle exec rake compile 2&gt;&amp;1 | grep warning
    ld: warning: ignoring duplicate libraries: '-lyaml'

https://github.com/ruby/psych/commit/cb5e3d465c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If pkg_config returns a truthy value, it found the library and added it
to the global values for the Makefile.

Calling `find_library` after a successful `pkg_config` causes -lyaml to
appear twice in the LIBS variable in the resulting Makefile, and causes
ld on macOS to emit a warning:

    $ bundle exec rake compile 2&gt;&amp;1 | grep warning
    ld: warning: ignoring duplicate libraries: '-lyaml'

https://github.com/ruby/psych/commit/cb5e3d465c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] configure of libyaml couldn't detect "arm64-apple-darwin22" for build host.</title>
<updated>2023-01-17T08:26:22+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2023-01-17T08:11:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=dd510da89a169baf8a104796925431a14b0920f1'/>
<id>dd510da89a169baf8a104796925431a14b0920f1</id>
<content type='text'>
  checking whether make sets $(MAKE)... (cached) yes
  checking build system type... arm-apple-darwin21.6.0
  checking host system type... Invalid configuration `arm64-apple-darwin21': machine `arm64-apple' not recognized
  configure: error: /bin/sh /Users/hsbt/Downloads/yaml-0.2.5/config/config.sub arm64-apple-darwin21 failed
  *** extconf.rb failed ***

https://github.com/ruby/psych/commit/ad1502202c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  checking whether make sets $(MAKE)... (cached) yes
  checking build system type... arm-apple-darwin21.6.0
  checking host system type... Invalid configuration `arm64-apple-darwin21': machine `arm64-apple' not recognized
  configure: error: /bin/sh /Users/hsbt/Downloads/yaml-0.2.5/config/config.sub arm64-apple-darwin21 failed
  *** extconf.rb failed ***

https://github.com/ruby/psych/commit/ad1502202c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Fix missing `abort` call</title>
<updated>2022-10-12T11:24:38+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-10-12T11:17:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=66a650ec41a583ec58003737b23b42ec8f069920'/>
<id>66a650ec41a583ec58003737b23b42ec8f069920</id>
<content type='text'>
https://github.com/ruby/psych/commit/de2b98c7b7

Co-authored-by: Olle Jonsson &lt;olle.jonsson@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/psych/commit/de2b98c7b7

Co-authored-by: Olle Jonsson &lt;olle.jonsson@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Abandon when libyaml is not found</title>
<updated>2022-10-12T11:24:37+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-10-12T10:53:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ed01bacf2778a5e3bd813ded5f01d7ccc85b289d'/>
<id>ed01bacf2778a5e3bd813ded5f01d7ccc85b289d</id>
<content type='text'>
https://github.com/ruby/psych/commit/0b89eda398
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/psych/commit/0b89eda398
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Removed the related condition of --enable-bundled-libyaml</title>
<updated>2022-10-07T03:55:31+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2022-10-07T03:46:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=fc218e597709e14634535c5836349f7f89a75dc2'/>
<id>fc218e597709e14634535c5836349f7f89a75dc2</id>
<content type='text'>
https://github.com/ruby/psych/commit/7c211a43c1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/psych/commit/7c211a43c1
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] --enable-bundled-libyaml config has been removed</title>
<updated>2022-10-07T03:55:30+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2022-10-07T03:45:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=94d4bea7c9952ac5abe0d8cd473a73e025b468ab'/>
<id>94d4bea7c9952ac5abe0d8cd473a73e025b468ab</id>
<content type='text'>
https://github.com/ruby/psych/commit/447d372dcd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/psych/commit/447d372dcd
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed the related files for downloading with extlibs</title>
<updated>2022-10-05T09:22:06+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2022-10-05T08:35:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0b4352b91d067f0c31f749cc77025a856fc6b835'/>
<id>0b4352b91d067f0c31f749cc77025a856fc6b835</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Fix libyaml download failure rescue under miniruby</title>
<updated>2022-06-14T16:05:51+00:00</updated>
<author>
<name>Alan Wu</name>
<email>XrXr@users.noreply.github.com</email>
</author>
<published>2022-06-14T16:05:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9357e310fb420bab7092a665be7875272820e2a3'/>
<id>9357e310fb420bab7092a665be7875272820e2a3</id>
<content type='text'>
I tried to build Ruby on a system without libyaml today and realized
that my attempt from &lt;https://github.com/ruby/psych/pull/557&gt; doesn't
fix the error in &lt;https://github.com/ruby/psych/issues/552&gt;. I still got
the same `LoadError` from `digest` which stopped the build.

Since `LoadError` is not a `StandardError`, a plain `rescue` doesn't catch
it. Catch `LoadError` explicitly instead and reduce the scope of the
`begin` block.

I tested this change in a Ruby build on macOS without libyaml installed
and confirmed that `make` continues with a warning instead of aborting:

    *** Following extensions are not compiled:
    psych:
            Could not be configured. It will not be installed.
            ...

This should address &lt;https://bugs.ruby-lang.org/issues/18790&gt;.

https://github.com/ruby/psych/commit/251289ba83
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I tried to build Ruby on a system without libyaml today and realized
that my attempt from &lt;https://github.com/ruby/psych/pull/557&gt; doesn't
fix the error in &lt;https://github.com/ruby/psych/issues/552&gt;. I still got
the same `LoadError` from `digest` which stopped the build.

Since `LoadError` is not a `StandardError`, a plain `rescue` doesn't catch
it. Catch `LoadError` explicitly instead and reduce the scope of the
`begin` block.

I tested this change in a Ruby build on macOS without libyaml installed
and confirmed that `make` continues with a warning instead of aborting:

    *** Following extensions are not compiled:
    psych:
            Could not be configured. It will not be installed.
            ...

This should address &lt;https://bugs.ruby-lang.org/issues/18790&gt;.

https://github.com/ruby/psych/commit/251289ba83
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Improve libyaml source downloading error messages</title>
<updated>2022-04-04T23:56:21+00:00</updated>
<author>
<name>Alan Wu</name>
<email>XrXr@users.noreply.github.com</email>
</author>
<published>2022-04-04T18:10:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=18044f4fbbfdef27b1e41c109d63c276026008c5'/>
<id>18044f4fbbfdef27b1e41c109d63c276026008c5</id>
<content type='text'>
People trying to build CRuby by following the instructions in its
[README] have been running into [errors] due to missing `libyaml`
on their system. Let's try to present a better error message when
it happens.

[README]: https://github.com/ruby/ruby/tree/fb5aa31e2d20ea8e1425432672f4de4c8ca2c26b#how-to-compile-and-install
[errors]: https://github.com/ruby/psych/issues/552

https://github.com/ruby/psych/commit/20a633028e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
People trying to build CRuby by following the instructions in its
[README] have been running into [errors] due to missing `libyaml`
on their system. Let's try to present a better error message when
it happens.

[README]: https://github.com/ruby/ruby/tree/fb5aa31e2d20ea8e1425432672f4de4c8ca2c26b#how-to-compile-and-install
[errors]: https://github.com/ruby/psych/issues/552

https://github.com/ruby/psych/commit/20a633028e
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Propagate `CC` to libyaml</title>
<updated>2022-04-04T07:06:16+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-04-01T03:38:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=57377e5d537c78bab4201a730cf3ab04a3085f6a'/>
<id>57377e5d537c78bab4201a730cf3ab04a3085f6a</id>
<content type='text'>
It is needed for cross-compiling to set properly.  Just
`--target`/`--host`/`--build` seems insufficient on some
platforms.

https://github.com/ruby/psych/commit/2d00c0c203
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is needed for cross-compiling to set properly.  Just
`--target`/`--host`/`--build` seems insufficient on some
platforms.

https://github.com/ruby/psych/commit/2d00c0c203
</pre>
</div>
</content>
</entry>
</feed>
