Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835156 - app-text/ronn-ng-0.9.1-r1 - fatal: the nokogiri library is required (gem install nokogiri)
Summary: app-text/ronn-ng-0.9.1-r1 - fatal: the nokogiri library is required (gem inst...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: PATCH
: 866320 903980 (view as bug list)
Depends on:
Blocks: 898414
  Show dependency tree
 
Reported: 2022-03-14 19:38 UTC by Toralf Förster
Modified: 2023-04-07 14:26 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.43 KB, text/plain)
2022-03-14 19:38 UTC, Toralf Förster
Details
app-text:ronn-ng-0.9.1-r1:20220314-192909.log (app-text:ronn-ng-0.9.1-r1:20220314-192909.log,2.43 KB, text/plain)
2022-03-14 19:38 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,150.30 KB, text/plain)
2022-03-14 19:38 UTC, Toralf Förster
Details
environment (environment,83.38 KB, text/plain)
2022-03-14 19:38 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,15.92 KB, application/x-bzip)
2022-03-14 19:38 UTC, Toralf Förster
Details
use-RUBY.patch (file_835156.txt,785 bytes, patch)
2023-04-07 14:05 UTC, Sam James
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-03-14 19:38:09 UTC
>>> Compiling source in /var/tmp/portage/app-text/ronn-ng-0.9.1-r1/work ...
 * Running compile phase for ruby26 ...
 * Running compile phase for ruby27 ...
 * Running compile phase for all ...
fatal: the 'nokogiri' library is required (gem install nokogiri)
 * ERROR: app-text/ronn-ng-0.9.1-r1::gentoo failed (compile phase):
 *   (no error message)

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j4-20220313-090006

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-11.2.1 *
clang/llvm (if any):
clang version 13.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.1
Python 3.9.10
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.59.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit a4ce86c4c99a27996cfd00a7d296f9ed35433ab6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Mar 14 19:04:53 2022 +0000

    2022-03-14 19:04:52 UTC

emerge -qpvO app-text/ronn-ng
[ebuild  N    ] app-text/ronn-ng-0.9.1-r1  USE="-doc -test" RUBY_TARGETS="ruby26 ruby27"
Comment 1 Toralf Förster gentoo-dev 2022-03-14 19:38:10 UTC
Created attachment 767068 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-03-14 19:38:11 UTC
Created attachment 767069 [details]
app-text:ronn-ng-0.9.1-r1:20220314-192909.log
Comment 3 Toralf Förster gentoo-dev 2022-03-14 19:38:12 UTC
Created attachment 767070 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-03-14 19:38:14 UTC
Created attachment 767071 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-03-14 19:38:14 UTC
Created attachment 767072 [details]
etc.portage.tar.bz2
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-07 14:03:58 UTC
*** Bug 903980 has been marked as a duplicate of this bug. ***
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-07 14:05:00 UTC
Created attachment 859680 [details, diff]
use-RUBY.patch

The attached patch works for me. I think the issue is that rake isn't necessarily using a Ruby with nokogiri installed for it and then it tries to use ronn with a similar issue.

The patch has an issue wrt repeatedly building the docs unnecessarily, but we could make it skip if it's done one successful build / check for something in man/*.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-07 14:05:33 UTC
*** Bug 866320 has been marked as a duplicate of this bug. ***
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-07 14:19:16 UTC
(In reply to Sam James from comment #7)
> Created attachment 859680 [details, diff] [details, diff]
> use-RUBY.patch
> 
> The attached patch works for me. I think the issue is that rake isn't
> necessarily using a Ruby with nokogiri installed for it and then it tries to
> use ronn with a similar issue.
> 
> The patch has an issue wrt repeatedly building the docs unnecessarily, but
> we could make it skip if it's done one successful build / check for
> something in man/*.

actually, I don't think we need to do the man page build at all. The man pages are built within the gem which we use right now (not gh).
Comment 10 Larry the Git Cow gentoo-dev 2023-04-07 14:26:13 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa780303ae90c6268e4b42026b2acb1ff7db9c99

commit aa780303ae90c6268e4b42026b2acb1ff7db9c99
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-07 14:19:57 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-07 14:25:25 +0000

    app-text/ronn-ng: enable ruby31, enable ruby32; drop unnecessary man page build
    
    - Enable ruby31, enable ruby32
    
      This only takes one patch and it's just for tests to work
      with newer psych. Fedora is just using that same patch too, no others.
    
    - Drop unnecessary man page build. They're included in the gem,
      so we don't need to build it again (which causes a problem
      when invoking rake directly/calling unwrapped ronn, as e.g.
      nokogiri isn't necessarily installed for it anymore.)
    
    Closes: https://bugs.gentoo.org/835156
    Closes: https://bugs.gentoo.org/898414
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/ronn-ng-0.9.1-psych-4-tests.patch        | 40 ++++++++++++++
 app-text/ronn-ng/ronn-ng-0.9.1-r3.ebuild           | 62 ++++++++++++++++++++++
 2 files changed, 102 insertions(+)