x11/rxvt-unicode: fix perl_parse() usage

Perl 5.28 added asserts to perl_parse() to check passed arguments, so
rxvt with perl support fails to start with assertion error when
DEBUG is enabled. Fix by constructing arguments passed to
perl_parse() properly, and bump PORTREVISION.

PR:		234294
Approved by:	thierry (maintainer)
This commit is contained in:
Roman Bogorodskiy 2018-12-27 08:51:36 +00:00
parent d733b3eddc
commit 09a9863ccd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=488515
2 changed files with 16 additions and 0 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= rxvt-unicode
PORTVERSION= 9.22
PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= http://dist.schmorp.de/rxvt-unicode/%SUBDIR%/
MASTER_SITE_SUBDIR= . Attic

View file

@ -0,0 +1,15 @@
--- src/rxvtperl.xs.orig 2018-12-23 11:31:59 UTC
+++ src/rxvtperl.xs
@@ -401,9 +401,10 @@ rxvt_perl_interp::init ()
" unshift @INC, '" LIBDIR "';"
"}"
""
- "use urxvt;"
+ "use urxvt;",
+ 0
};
- int argc = ecb_array_length (args);
+ int argc = ecb_array_length (args) - 1;
char **argv = args;
PERL_SYS_INIT3 (&argc, &argv, &environ);