You are not logged in.

#1 2013-05-21 20:52:10

h0tbird
Member
Registered: 2013-05-21
Posts: 3

perl 5.18.0-1 and urxvt 9.18-4 break tabbedex

After upgradin perl and urxvt, tabbedex is not working any more.
This is the error I get:

urxvt: perl hook 0 evaluation error: /usr/lib/urxvt/perl/tabbedex: syntax error at /usr/lib/urxvt/perl/tabbedex line 702, near "$hook qw(osc_seq_perl start destroy user_command key_press property_notify add_lines)"
syntax error at /usr/lib/urxvt/perl/tabbedex line 714, near "}

and this is the offending piece of code:

{
   for my $hook qw(osc_seq_perl start destroy user_command key_press property_notify add_lines) {
      eval qq{ 
         sub on_$hook {
            my \$parent = \$_[0]{term}{parent}
               or return;
            \$parent->tab_$hook (\@_)
         }
      };
      die if $@; 
   }
}

I have no perl skills, I hope someone can give me a hand.
Thank you!

Offline

#2 2013-05-22 12:52:03

chpln
Member
From: Australia
Registered: 2009-09-17
Posts: 361

Re: perl 5.18.0-1 and urxvt 9.18-4 break tabbedex

The line numbers in tabbedex's git HEAD indicate it's changed from the version you're using.  Might be worth trying urxvt-tabbedex-git from AUR?

Offline

#3 2013-05-22 13:00:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: perl 5.18.0-1 and urxvt 9.18-4 break tabbedex

I get a similar error with the tabbed extension for the urxvt from the repos:

$ urxvtc -pe tabbed
urxvt: perl hook 0 evaluation error: /usr/lib/urxvt/perl/tabbed: syntax error at /usr/lib/urxvt
syntax error at /usr/lib/urxvt/perl/tabbed line 426, near "}

The file in question has only 423 lines ;P


Edit: Opened a bug report https://bugs.archlinux.org/task/35420

Last edited by karol (2013-05-22 13:22:28)

Offline

#4 2013-05-22 13:45:49

fsckd
Forum Moderator
Registered: 2009-06-15
Posts: 3,512

Re: perl 5.18.0-1 and urxvt 9.18-4 break tabbedex

Moving from Applications & Desktop Environments to [testing] Repo Forum.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#5 2013-05-23 19:12:45

h0tbird
Member
Registered: 2013-05-21
Posts: 3

Re: perl 5.18.0-1 and urxvt 9.18-4 break tabbedex

chpln wrote:

The line numbers in tabbedex's git HEAD indicate it's changed from the version you're using.  Might be worth trying urxvt-tabbedex-git from AUR?

You are right I was using a modified version of /usr/lib/urxvt/perl/tabbedex.
Now, I switched to urxvt-tabbedex-git (AUR) and the error persists.

urxvt: perl hook 0 evaluation error: /usr/lib/urxvt/perl/tabbedex: syntax error at /usr/lib/urxvt/perl/tabbedex line estroy user_command key_press property_notify add_lines)"
syntax error at /usr/lib/urxvt/perl/tabbedex line 681, near "}

The funny thing is:

$ wc -l /usr/lib/urxvt/perl/tabbedex
678 /usr/lib/urxvt/perl/tabbedex

Last edited by h0tbird (2013-05-23 19:21:10)

Offline

#6 2013-05-24 04:21:23

lomov_vl
Member
From: Russia, Irkutsk
Registered: 2010-01-20
Posts: 23

Re: perl 5.18.0-1 and urxvt 9.18-4 break tabbedex

@Karol and others who use tabbed:
I found the source of the problem:
see here
https://metacpan.org/module/RJBS/perl-5 … arentheses
after applying simple patch to 'tabbed' I have working urxvt with tabbed extension.

Patch:

--- tabbed.orig	2012-09-12 17:32:04.000000000 +0900
+++ tabbed	2013-05-24 13:04:37.000000000 +0900
@@ -402,7 +402,7 @@
 # simply proxies all interesting calls back to the tabbed class.
 
 {
-   for my $hook qw(start destroy key_press property_notify) {
+   for my $hook (qw(start destroy key_press property_notify)) {
       eval qq{
          sub on_$hook {
             my \$parent = \$_[0]{term}{parent}

Offline

#7 2013-05-24 09:49:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: perl 5.18.0-1 and urxvt 9.18-4 break tabbedex

Thanks, lomov_vl! :-)
The tabbed file in question is /usr/lib/urxvt/perl/tabbed (just in case somebody got a bit confused ... like me ;P ).

Offline

#8 2013-05-24 19:34:13

h0tbird
Member
Registered: 2013-05-21
Posts: 3

Re: perl 5.18.0-1 and urxvt 9.18-4 break tabbedex

Thank you!

It worked for tabbedex and other variants too.

Offline

Board footer

Powered by FluxBB