Ticket #5517 (closed defect: fixed)

Opened 18 months ago

Last modified 14 months ago

[with patch; positive review] cvxopt-0.9.p7: build failure due to missing perl modules

Reported by: tornaria Owned by: tornaria
Priority: major Milestone: sage-4.1
Component: build Keywords:
Cc: Author(s): Gonzalo Tornaria
Report Upstream: Reviewer(s): Mike Hansen
Merged in: sage-4.1.rc0 Work issues:

Description

The error reported by cvxopt-0.9.p7 is:

Can't locate File/Copy.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./spkg-install line 2.
BEGIN failed--compilation aborted at ./spkg-install line 2.

I did have perl installed in the system, but only the perl-base package (5.10.0-19, debian/lenny).

However, the File/Copy.pm module is in perl-modules package, which wasn't installed in my system (perl-base priority is required, and perl-modules priority is standard).

The workaround was to apt-get install perl-modules; maybe this issue with File/Copy.pm could be checked in the prereq spkg?

Attachments

trac_5517.cvxopt.patch Download (1.3 KB) - added by tornaria 16 months ago.
patch for cvxopt-0.9.p7.spkg: replace spkg-install perl script by a bash script, eliminating the dependency on perl

Change History

Changed 18 months ago by mabshoff

The real fix here is to get rid of the dependency since it is introduced by the Fortran library handling code written by Josh Kantor. The spkg-install should just be a shell script instead of a perl script given that we only copy two different setup.py files depending on the Fortran runtime used.

Cheers,

Michael

Changed 18 months ago by mabshoff

  • milestone set to sage-3.4.2

Changed 16 months ago by tornaria

patch for cvxopt-0.9.p7.spkg: replace spkg-install perl script by a bash script, eliminating the dependency on perl

Changed 16 months ago by tornaria

  • summary changed from cvxopt-0.9.p7: build failure due to missing perl modules to [with patch; needs review] cvxopt-0.9.p7: build failure due to missing perl modules

Changed 16 months ago by tornaria

  • owner changed from mabshoff to tornaria
  • status changed from new to assigned

With the patch above, compilation of 3.4.1 was successful in a minimal debian lenny chroot created with debootstrap (minimal install) + apt-get install make gcc g++ m4 inside the chroot.

Changed 16 months ago by tornaria

See also #5964; it turns out building R documentation also requires perl-modules. Compilation of Sage proceeds without it, but some doctests (which use R documentation) fail. IOW, it seems perl-modules is a requirement for compilation after all...

Changed 15 months ago by mhansen

  • summary changed from [with patch; needs review] cvxopt-0.9.p7: build failure due to missing perl modules to [with patch; positive review] cvxopt-0.9.p7: build failure due to missing perl modules

Looks good to me.

The spkg with this patch applied can be found at:  http://sage.math.washington.edu/home/mhansen/cvxopt-0.9.p8.spkg

Changed 15 months ago by mhansen

  • reviewer set to Mike Hansen
  • author set to Gonzalo Tornaria

Changed 14 months ago by rlm

  • status changed from assigned to closed
  • resolution set to fixed
  • merged set to sage-4.1.rc0
Note: See TracTickets for help on using tickets.