Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830329 - x11-terms/rxvt-unicode-9.30: some bundled Perl plug-ins implicitly depend on USE=fading-colors
Summary: x11-terms/rxvt-unicode-9.30: some bundled Perl plug-ins implicitly depend on ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-31 00:11 UTC by Alex Efros
Modified: 2022-09-07 14:30 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Efros 2021-12-31 00:11:12 UTC
When built without USE-flag fading-colors it prints this error on start:

$ urxvt
urxvt: perl hook 0 evaluation error: /usr/lib64/urxvt/perl/background: Bareword "urxvt::Color_fade" not allowed while "strict subs" in use at /usr/lib64/urxvt/perl/background line 992, <$fh> line 1.

and all urxvt perl modules doesn't work.

This issue wasn't exist in 9.26-r2.
Comment 1 Marek Szuba archtester gentoo-dev 2022-01-10 11:25:00 UTC
Any thoughts on this, Perl people? I've got no idea how exactly embedded Perl picks up X resources.
Comment 2 Larry the Git Cow gentoo-dev 2022-01-26 15:39:30 UTC
The bug has been closed via the following commit(s):

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

commit dae18424d1d24936138011f33e67a4f5f46e91af
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2022-01-26 15:30:23 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2022-01-26 15:39:24 +0000

    x11-terms/rxvt-unicode: Perl support now requires USE=fading-colors
    
    This is probably a bug but one that will most likely require either an
    upstream reaction (which given their attitude towards Gentoo is
    unlikely to happen if reported by us) or a third-party patch.
    
    While at it, stop defaulting to USE=perl.
    
    Closes: https://bugs.gentoo.org/830329
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 x11-terms/rxvt-unicode/rxvt-unicode-9.30.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
Comment 3 Christopher Head 2022-01-28 17:40:56 UTC
I don’t think this is true. It may break some plugins, but not all of them. I hacked the ebuild to allow building with USE="-fading-colors perl". I use “Rxvt.perl-ext-common: default,matcher”. No errors were printed and the plugins appear to work in that URLs are clickable and mouse-click highlighting works in the different way that I expect.
Comment 4 Sergey 'L29Ah' Alirzaev 2022-06-06 14:21:50 UTC
(In reply to Christopher Head from comment #3)
> I don’t think this is true. It may break some plugins, but not all of them.
> I hacked the ebuild to allow building with USE="-fading-colors perl". I use
> “Rxvt.perl-ext-common: default,matcher”. No errors were printed and the
> plugins appear to work in that URLs are clickable and mouse-click
> highlighting works in the different way that I expect.

I agree, the "selection" plugin works without fading-colors here as well.
Comment 5 Marek Szuba archtester gentoo-dev 2022-06-07 08:48:00 UTC
OK, so are there in fact ANY Perl plug-ins bundled with rxvt-unicode other than "background" that require --enable-fading?
Comment 6 Tom Gillespie 2022-08-05 17:54:37 UTC
Yes, the url matcher plugin requires fading-colors otherwise it won't work.
Comment 7 Larry the Git Cow gentoo-dev 2022-09-07 14:30:19 UTC
The bug has been closed via the following commit(s):

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

commit 97c208dd579e297989f4d98e7f5d3385193a9711
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2022-09-07 13:50:54 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2022-09-07 14:30:11 +0000

    x11-terms/rxvt-unicode: allow USE='perl -fading-colors' but print a warning
    
    Closes: https://bugs.gentoo.org/830329
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 x11-terms/rxvt-unicode/rxvt-unicode-9.30.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)