FS#63108 - [lolcat] Remove unnecessary ruby-manpages dependency

Attached to Project: Community Packages
Opened by Peter Wu (Lekensteyn) - Saturday, 06 July 2019, 10:52 GMT
Last edited by Jelle van der Waa (jelly) - Saturday, 03 June 2023, 16:51 GMT
Task Type General Gripe
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
lolcat added[1] a dependency on the manpages gem which seems more appropriate for local package installations where manpages would not be installed in standard manpage search paths. It is not a runtime dependency, so at minimum 'ruby-manpages' should be changed from 'depends' to 'makedepends'.

Taking it a step further, the dependency could be removed as you could manually install the package from the source dir:
- install -Dm 644 "${pkgdir}/${_gemdir}/gems/lolcat-${pkgver}/man/lolcat.6" -t "${pkgdir}/usr/share/man/man6"
+ install -Dm 644 man/lolcat.6 -t "${pkgdir}/usr/share/man/man6"

[1]: https://github.com/busyloop/lolcat/commit/34297a2071ade1e0057af8f2a6f8faecd3e60032
[2]: https://github.com/bitboxer/manpages

Additional info:
* package version: 99.9.21-1
This task depends upon

Closed by  Jelle van der Waa (jelly)
Saturday, 03 June 2023, 16:51 GMT
Reason for closing:  Upstream
Comment by Jelle van der Waa (jelly) - Saturday, 03 June 2023, 16:51 GMT
This is not an optional dependency, we can't just drop it as it breaks lolcat. So this needs to be resolved upstream first.

[jelle@t14s][/tmp/lolcat]%lolcat
/usr/lib/ruby/3.0.0/rubygems/specification.rb:1453:in `rescue in block in activate_dependencies': Could not find 'manpages' (>= 0.6.1) among 105 total gem(s) (Gem::MissingSpecError)

Loading...