#10188: mpir spkg needs update for Fedora 14
----------------------------+-----------------------------------------------
   Reporter:  vbraun        |       Owner:  tbd         
       Type:  defect        |      Status:  needs_review
   Priority:  major         |   Milestone:  sage-4.6.1  
  Component:  packages      |    Keywords:              
     Author:  Volker Braun  |    Upstream:  N/A         
   Reviewer:                |      Merged:              
Work_issues:                |  
----------------------------+-----------------------------------------------

Comment(by fbissey):

 I will check that. The main problem in mpir is there is some code in yasm
 assembler and some in GNU assembler (and some more in C but these are not
 a problem) depending on the CPU.
 In Gentoo we apply the following to the source of mpir-2.X.X:
 {{{
         for i in $(find . -type f -name '*.asm') ; do
                 # TODO: why does this not work without the following echo
 ???
                 echo $i >/dev/null
                 cat >> $i <<-EOF
                         #if defined(__linux__) && defined(__ELF__)
                         .section .note.GNU-stack,"",%progbits
                         #endif
                 EOF
         done

         for i in $(find . -type f -name '*.as') ; do
                 echo $i >/dev/null
                 cat >> $i <<-EOF
                         %ifidn __OUTPUT_FORMAT__,elf
                         section .note.GNU-stack noalloc noexec nowrite
 progbits
                         %endif
                 EOF
         done
 }}}
 We do this following the recommendation from
 [http://www.gentoo.org/proj/en/hardened/gnu-stack.xml]
 The file naming is somewhat reverse from what we expected if I remember
 well.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10188#comment:3>
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