FS#68682 - [cowsay] Missing Acme::Cow module
Attached to Project:
Arch Linux
Opened by Martin Rys (C0rn3j) - Friday, 20 November 2020, 09:30 GMT
Last edited by T.J. Townsend (blakkheim) - Wednesday, 20 September 2023, 03:03 GMT
Opened by Martin Rys (C0rn3j) - Friday, 20 November 2020, 09:30 GMT
Last edited by T.J. Townsend (blakkheim) - Wednesday, 20 September 2023, 03:03 GMT
|
Details
Description:
Many of the cowfiles include Acme::Cow, but that does not seem to be required/installed, so cowsay will fail with: cowsay: Can't locate Acme/Cow.pm in @INC (you may need to install the Acme::Cow module) (@INC contains: /usr/lib/perl5/5.32/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.32/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.32/core_perl /usr/share/perl5/core_perl) at /usr/share/cows/Example.pm line 5. BEGIN failed--compilation aborted at /usr/share/cows/Example.pm line 5. Additional info: cowsay 3.04-2 Steps to reproduce: cowsay -f /usr/share/cows/Frogs.pm bork |
This task depends upon
Closed by T.J. Townsend (blakkheim)
Wednesday, 20 September 2023, 03:03 GMT
Reason for closing: Fixed
Wednesday, 20 September 2023, 03:03 GMT
Reason for closing: Fixed
The missing perl package is not on CPAN. Google reveals several several modules named Acme::cows, from different developers. So installing this dependency CORRECTLY will require a bit of digging. It's easier to ban the .pm files or use a `fortune | cowsay -f $(find /usr/share/cows -type f -name "*.cow")`
package not install the cows that depend on it for the time being so
that cowfortune can actually be used.
Something like this should do:
grep -Zlr 'Acme::Cow' -- "$pkgdir"/usr/share/cows | xargs -0r rm --