Ticket #19720: ncurses-5.9-gcc5_buildfixes-1.patch

File ncurses-5.9-gcc5_buildfixes-1.patch, 1.2 KB (added by siflfran@…, 3 years ago)
  • ncurses/base/MKlib_gen.sh

    Submitted By:			Douglas R. Reno <renodr2002@gmail.com>
    Date:				2015-04-15
    Initial Package Version:	5.9
    Upstream Status: 		Unknown
    Origin:				ftp://invisible-island.net/ncurses/5.9/ncurses-5.9-20141206.patch.gz
    Description:			Fixes a compilation issue with GCC 5.1. Note that this patch was trimmed from the above patch.
    
    ===========================================================================================
    
    old new  
    474474        -e 's/gen_$//' \ 
    475475        -e 's/  / /g' >>$TMP 
    476476 
     477cat >$ED1 <<EOF 
     478s/  / /g 
     479s/^ // 
     480s/ $// 
     481s/P_NCURSES_BOOL/NCURSES_BOOL/g 
     482EOF 
     483 
     484# A patch discussed here: 
     485#       https://gcc.gnu.org/ml/gcc-patches/2014-06/msg02185.html 
     486# introduces spurious #line markers.  Work around that by ignoring the system's 
     487# attempt to define "bool" and using our own symbol here. 
     488sed -e 's/bool/P_NCURSES_BOOL/g' $TMP > $ED2 
     489cat $ED2 >$TMP 
     490 
    477491$preprocessor $TMP 2>/dev/null \ 
    478 | sed \ 
    479         -e 's/  / /g' \ 
    480         -e 's/^ //' \ 
    481         -e 's/_Bool/NCURSES_BOOL/g' \ 
     492| sed -f $ED1 \ 
    482493| $AWK -f $AW2 \ 
    483494| sed -f $ED3 \ 
    484495| sed \