#8059: update Singular SPKG to newest upstream release
-------------------------------+--------------------------------------------
   Reporter:  malb             |       Owner:            
       Type:  enhancement      |      Status:  needs_work
   Priority:  major            |   Milestone:  sage-4.3.3
  Component:  packages         |    Keywords:            
     Author:  Martin Albrecht  |    Upstream:  N/A       
   Reviewer:                   |      Merged:            
Work_issues:                   |  
-------------------------------+--------------------------------------------

Comment(by drkirkby):

 If there are a lot of Makefiles, then patching would be tedious and
 require more work with upgrades. However, it should not be too hard to
 create a small script which patches the Makefiles and call that script
 from spkg-install.

 I've not checked this on the Singular sources, but this sed script, which
 I called 'nopg' could be used to replace ' -pg ' with nothing

 {{{
 #!/bin/sh
 sed 's/ -pg //g' $1 > /tmp/Makefile-without-pg-option.$$
 mv /tmp/Makefile-without-pg-option.$$  $1
 }}}

 then in spkg-install have:

 {{{
 find src -name Makefile -exec /path/to/nopg {} \;
 }}}

 I tried it on a gcc source distribution, which has loads of 'configure'
 scripts, replacing 'echo' with 'zzzzzzzzzzzzzzzzz' and sure enough, all
 the configure script have strings of zzzzz's in them.


 It would be necessary to check the files have the required changes, and no
 other changes, but that should be a simple solution.

 Dave

 Dave

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8059#comment:31>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to