wok rev 12235

grub: asmstub.c does not support gcc >= 4.5
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 09 12:45:16 2012 +0200 (2012-04-09)
parents 52fe6a429a51
children 697c4bb2336d
files grub/receipt grub4dos/receipt
line diff
     1.1 --- a/grub/receipt	Mon Apr 09 12:02:30 2012 +0200
     1.2 +++ b/grub/receipt	Mon Apr 09 12:45:16 2012 +0200
     1.3 @@ -10,6 +10,8 @@
     1.4  WGET_URL="ftp://alpha.gnu.org/gnu/grub/$TARBALL"
     1.5  CONFIG_FILES="/boot/grub"
     1.6  
     1.7 +BUILD_DEPENDS="gcc3"
     1.8 +
     1.9  # Rules to configure and make the package.
    1.10  compile_rules()
    1.11  {
    1.12 @@ -19,7 +21,9 @@
    1.13  		patch -p1 < $i
    1.14  		touch $(basename $i)
    1.15  	done
    1.16 -	./configure --prefix=/usr --infodir=/usr/share/info \
    1.17 +	sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
    1.18 +		util/grub-install.in
    1.19 +	./configure CC=gcc-3 --prefix=/usr --infodir=/usr/share/info \
    1.20  	--without-curses --mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.21  	make &&
    1.22  	make DESTDIR=$PWD/_pkg install
     2.1 --- a/grub4dos/receipt	Mon Apr 09 12:02:30 2012 +0200
     2.2 +++ b/grub4dos/receipt	Mon Apr 09 12:45:16 2012 +0200
     2.3 @@ -9,7 +9,7 @@
     2.4  WEB_SITE="http://grub4dos.sourceforge.net/"
     2.5  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
     2.6  
     2.7 -BUILD_DEPENDS="lzma"
     2.8 +BUILD_DEPENDS="lzma gcc3"
     2.9  
    2.10  # Rules to configure and make the package.
    2.11  compile_rules()
    2.12 @@ -20,7 +20,9 @@
    2.13  		patch -p1 < $i
    2.14  		touch $(basename $i)
    2.15  	done
    2.16 -	sh ./configure \
    2.17 +	sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \
    2.18 +		util/grub-install.in
    2.19 +	sh ./configure CC=gcc-3 \
    2.20  		--enable-preset-menu=$stuff/menu.lst \
    2.21  		--without-curses \
    2.22  	$CONFIGURE_ARGS &&