Bug 163323 - x11/rxvt-unicode fails to build with perl-5.12.4_3 and p5-ExtUtils-*
Summary: x11/rxvt-unicode fails to build with perl-5.12.4_3 and p5-ExtUtils-*
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-perl (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-15 22:40 UTC by Anthony Chavez
Modified: 2015-03-08 18:48 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Chavez 2011-12-15 22:40:06 UTC
When attempting to build x11/rxvt-unicode, the following error occurs if the option WITH_PERL is enabled:

===>  Building for rxvt-unicode-9.12_1
PERL="/usr/bin/perl5" /usr/bin/perl5 /usr/local/lib/perl5/5.12.4/ExtUtils/xsubpp
 -C++ -typemap /usr/local/lib/perl5/5.12.4/ExtUtils/typemap -typemap typemap.iom
 -typemap typemap -prototypes ./rxvtperl.xs >rxvtperl.C
Cannot open 'echo $PERL > /dev/stderr && $PERL <iom_perl.xs -pe s/IOM_MODULE/urx
vt/g,s/IOM_CLASS/urxvt/g |': No such file or directory in rxvtperl.xs, line 1897
*** Error code 1

Stop in /usr/ports/x11/rxvt-unicode/work/rxvt-unicode-9.12/src.
*** Error code 1

Stop in /usr/ports/x11/rxvt-unicode/work/rxvt-unicode-9.12.
*** Error code 1

Stop in /usr/ports/x11/rxvt-unicode.
*** Error code 1

Stop in /usr/ports/x11/rxvt-unicode.

===>>> make failed for x11/rxvt-unicode

Additionally, the following post on freebsd-questions touches on this issue, indicating that other ports such as www/firefox may be affected:

http://lists.freebsd.org/pipermail/freebsd-questions/2011-August/233010.html

Fix: 

It seems that the root of this problem lies with the fact that Perl ExtUtils has been rolled into 5.12.4, although there is no mention of this in UPDATING.

Executing the following fixes the problem for me:

% pkg_info -Ix p5-ExtUtils
p5-ExtUtils-CBuilder-0.2802.02,1 Compile and link C code for Perl modules
p5-ExtUtils-Install-1.54_1 Perl extension to install files from here to there
p5-ExtUtils-ParseXS-3.04 Converts Perl XS code into C code
% sudo pkg_delete p5-ExtUtils\*
% sudo portmaster x11/rxvt-unicode
How-To-Repeat: sudo portmaster x11/rxvt-unicode
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-12-15 22:40:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->thierry

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Anthony Chavez 2011-12-15 22:56:31 UTC
I apologize. I submitted the incorrect error from one of my attempts to
debug the situation.  Here is the correct one.

PERL="/usr/bin/perl5" /usr/bin/perl5
/usr/local/lib/perl5/5.14.1/ExtUtils/xsubpp -C++ -typemap
/usr/local/lib/perl5/5.14.1/ExtUtils/typemap -typemap typemap.iom
-typemap typemap -prototypes ./rxvtperl.xs >rxvtperl.C
Cannot open '$PERL <iom_perl.xs -pe
s/IOM_MODULE/urxvt/g,s/IOM_CLASS/urxvt/g |': No such file or directory
in rxvtperl.xs, line 1897
*** Error code 1

-- 
Anthony Chavez                                  http://hexadecagram.org/
mailto:acc@hexadecagram.org                    xmpp:acc@hexadecagram.org
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2013-04-22 17:13:47 UTC
Responsible Changed
From-To: skv->freebsd-ports-bugs

skv's ports bit has been taken in for safekeeping
Comment 4 Stefan Walter freebsd_committer freebsd_triage 2013-04-30 13:52:41 UTC
Responsible Changed
From-To: freebsd-ports-bugs->perl

Over to Perl maintainer.
Comment 5 Thierry Thomas freebsd_committer freebsd_triage 2014-06-01 07:38:53 UTC
State Changed
From-To: open->analyzed


I can confirm the report. 

When the ports devel/p5-ExtUtils-CBuilder, devel/p5-ExtUtils-Install and 
devel/p5-ExtUtils-ParseXS are installed, x11/rxvt-unicode does not build 
and fails with the reported error: 

PERL="/usr/bin/perl5" /usr/bin/perl5 
/usr/local/lib/perl5/5.12.4/ExtUtils/xsubpp -C++ -typemap 
/usr/local/lib/perl5/5.12.4/ExtUtils/typemap -typemap typemap.iom 
-typemap typemap -prototypes ./rxvtperl.xs >rxvtperl.C 
Cannot open '$PERL <iom_perl.xs -pe 
s/IOM_MODULE/urxvt/g,s/IOM_CLASS/urxvt/g |': No such file or directory 
in rxvtperl.xs, line 1897 
*** Error code 1 

Stop in /work/a/ports/x11/rxvt-unicode/work/rxvt-unicode-9.12/src. 
*** Error code 1 

Actually, the error is caused by 
/usr/local/lib/perl5/5.12.4/ExtUtils/xsubpp which is installed by 
Perl-5.12.4 and then by devel/p5-ExtUtils-ParseXS. 

$ pkg_info -W /usr/local/lib/perl5/5.12.4/ExtUtils/xsubpp 
/usr/local/lib/perl5/5.12.4/ExtUtils/xsubpp was installed by package 
perl-5.12.4_3 

I guess that a conflict should be marked between the ports 
devel/p5-ExtUtils-* and lang/perl5.12.
Comment 6 Thierry Thomas freebsd_committer freebsd_triage 2014-06-01 07:38:53 UTC
Responsible Changed
From-To: thierry->skv


Assign to lang/perl5.12 maintainer.
Comment 7 Adam Weinberger freebsd_committer freebsd_triage 2015-02-13 01:48:49 UTC
Given that perl5.12 was removed a year ago, I think we need some updated information. Does this problem still occur with 5.16, 5.18, or 5.20?
Comment 8 Adam Weinberger freebsd_committer freebsd_triage 2015-03-08 18:48:20 UTC
I'm closing this bug.

The combination of ports in the description build fine together now, so I believe this is no longer a problem.