[ruby-core:95909] [Ruby master Bug#16359] Psych cannot build against system libyaml.

[email protected]
Newsgroups gmane.comp.lang.ruby.core
Message-ID <redmine.journal-82751.20191122085942.47db1a7a0ff613fa@ruby-lang.org>
Issue #16359 has been updated by vo.x (Vit Ondruch).

File ruby-2.7.0-Revert-Update-dependencies-for-Psych.patch added

The attached patch which reverts the Psych part of [1] appears to fix the issue for me.


[1]: https://github.com/ruby/ruby/commit/e1b234148829f65bea9f5ecc7018beb782ea6023

----------------------------------------
Bug #16359: Psych cannot build against system libyaml.
https://bugs.ruby-lang.org/issues/16359#change-82751

* Author: vo.x (Vit Ondruch)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0dev (2019-11-22 master f9d20a1bf1) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
Just to be sure that we are building Ruby in Fedora against system libyaml library, the first step is to remove bundled libyaml contained in Psych [1]. Now the build started to fail:

~~~
make[2]: Entering directory '/builddir/build/BUILD/ruby-2.7.0-f9d20a1bf1/ext/psych'
make[2]: *** No rule to make target 'yaml/yaml.h', needed by 'psych.o'.  Stop.
make[2]: Leaving directory '/builddir/build/BUILD/ruby-2.7.0-f9d20a1bf1/ext/psych'
make[1]: *** [exts.mk:255: ext/psych/all] Error 2
~~~

I suspect this is due to [2] (I have not tried to revert it yet). I would appreciate if Ruby/Psych is buildable against system libyaml again, as it was always the case.



[1]: https://src.fedoraproject.org/rpms/ruby/blame/ruby.spec?identifier=private-ruby-2.7#_540
[2]: https://github.com/ruby/ruby/commit/e1b234148829f65bea9f5ecc7018beb782ea6023

---Files--------------------------------
ruby-2.7.0-Revert-Update-dependencies-for-Psych.patch (3.11 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.