wok rev 4169
Fix: le patch options.cc for gcc-4
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Sep 22 20:51:40 2009 +0200 (2009-09-22) |
parents | e727c9e1f7ad |
children | 4cfce81a4a6b |
files | le/receipt le/stuff/gcc-4.patch |
line diff
1.1 --- a/le/receipt Tue Sep 22 20:07:56 2009 +0200 1.2 +++ b/le/receipt Tue Sep 22 20:51:40 2009 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="le" 1.7 -VERSION="1.14.0" 1.8 +VERSION="1.14.2" 1.9 CATEGORY="utilities" 1.10 SHORT_DESC="Small editor using ncurses" 1.11 MAINTAINER="mimas@slitaz.org" 1.12 @@ -15,12 +15,13 @@ 1.13 compile_rules() 1.14 { 1.15 cd $src 1.16 + patch -p 0 < ../stuff/gcc-4.patch || exit 1 1.17 ./configure \ 1.18 --prefix=/usr \ 1.19 --infodir=/usr/share/info \ 1.20 --mandir=/usr/share/man \ 1.21 - $CONFIGURE_ARGS 1.22 - make 1.23 + $CONFIGURE_ARGS && 1.24 + make && 1.25 make DESTDIR=$PWD/_pkg install 1.26 } 1.27
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/le/stuff/gcc-4.patch Tue Sep 22 20:51:40 2009 +0200 2.3 @@ -0,0 +1,11 @@ 2.4 +--- src/options.cc 2009-09-22 20:30:26.000000000 +0200 2.5 ++++ src/options.cc 2009-09-22 20:30:01.000000000 +0200 2.6 +@@ -1245,7 +1245,7 @@ 2.7 + FindColor(new_bw_pal,color_no)); 2.8 + return -1; 2.9 + } 2.10 +- char *l=strchr(button,'&'); 2.11 ++ const char *l=strchr(button,'&'); 2.12 + if(!l) 2.13 + return -1; 2.14 + char res=toupper(l[1]);