maintainer-feedback requested: [Bug 277290] textproc/rubygem-nokogiri: broken patch

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 25 Feb 2024 09:34:34 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-ruby (Nobody)
<ruby@FreeBSD.org> for maintainer-feedback:
Bug 277290: textproc/rubygem-nokogiri: broken patch
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277290



--- Description ---
mini_portile2 is not required as run time dependency see note in Makefile ->

# Do not add mini_portile2 to RUN_DEPENDS. Read ext/nokogiri/extconf.rb
# and https://lists.freebsd.org/pipermail/svn-ports-all/2019-March/209423.html

But that means we need to patch it away in nokogiri-1.16.2.gemspec

otherwise importing nokogiri fails ->
```
gollum --host 0.0.0.0 --port 80 /usr/local/www/system-wiki
/usr/local/lib/ruby/site_ruby/3.3/rubygems/specification.rb:1477:in `rescue in
block in activate_dependencies': Could not find 'mini_portile2' (~> 2.8.2)
among 50 total gem(s) (Gem::MissingSpecError)
Checked in
'GEM_PATH=/root/.local/share/gem/ruby/3.3:/usr/local/lib/ruby/gems/3.3' at:
/usr/local/lib/ruby/gems/3.3/specifications/nokogiri-1.16.2.gemspec, execute
`gem env` for more information
	from
/usr/local/lib/ruby/site_ruby/3.3/rubygems/specification.rb:1474:in `block in
activate_dependencies'
	from
/usr/local/lib/ruby/site_ruby/3.3/rubygems/specification.rb:1463:in `each'
	from
/usr/local/lib/ruby/site_ruby/3.3/rubygems/specification.rb:1463:in
`activate_dependencies'
	from
/usr/local/lib/ruby/site_ruby/3.3/rubygems/specification.rb:1445:in `activate'
	from
/usr/local/lib/ruby/site_ruby/3.3/rubygems/specification.rb:1481:in `block in
activate_dependencies'
	from
/usr/local/lib/ruby/site_ruby/3.3/rubygems/specification.rb:1463:in `each'
	from
/usr/local/lib/ruby/site_ruby/3.3/rubygems/specification.rb:1463:in
`activate_dependencies'
```

Broken since this commit: 6a6152fcf8c80fa414fa3b992547ba133edc5049


I tested this fix on my lokal system.