wok-current rev 1553

Apply patchs once for bash cromfs cyrus-imapd jwm lsdvd mISDNuser module-init-tools qemu rox-filer xpat2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 12 09:55:00 2008 +0000 (2008-10-12)
parents 37105c976ab8
children 26b57ae6bfb0
files bash/receipt cromfs/receipt cyrus-imapd/receipt jwm/receipt lsdvd/receipt mISDNuser/receipt module-init-tools/receipt qemu/receipt rox-filer/receipt xpat2/receipt
line diff
     1.1 --- a/bash/receipt	Sat Oct 11 21:19:51 2008 +0000
     1.2 +++ b/bash/receipt	Sun Oct 12 09:55:00 2008 +0000
     1.3 @@ -15,14 +15,16 @@
     1.4  {
     1.5  	# Patch and then build.
     1.6  	cd $src
     1.7 -	busybox patch -p1 -i ../stuff/bash32-025.patch
     1.8 +	[ -f done.bash32-025.patch ] ||
     1.9 +		busybox patch -p1 -i ../stuff/bash32-025.patch
    1.10 +	touch done.bash32-025.patch
    1.11  	./configure --prefix=/usr --bindir=/bin \
    1.12  	--enable-history --enable-alias  \
    1.13  	--disable-nls --without-bash-malloc \
    1.14  	--disable-select --disable-help-builtin \
    1.15  	--infodir=/usr/share/info --mandir=/usr/share/man \
    1.16 -	$CONFIGURE_ARGS
    1.17 -	make
    1.18 +	$CONFIGURE_ARGS &&
    1.19 +	make &&
    1.20  	make DESTDIR=$PWD/_pkg install
    1.21  }
    1.22  
     2.1 --- a/cromfs/receipt	Sat Oct 11 21:19:51 2008 +0000
     2.2 +++ b/cromfs/receipt	Sun Oct 12 09:55:00 2008 +0000
     2.3 @@ -15,10 +15,13 @@
     2.4  compile_rules()
     2.5  {
     2.6  	cd $src
     2.7 -	patch -p1 < ../stuff/FBLOCK_CACHE_MAX_SIZE.u
     2.8 -	patch -p1 < ../stuff/openmp.u
     2.9 +	for i in FBLOCK_CACHE_MAX_SIZE.u openmp.u ; do
    2.10 +		[ -f done.$i ] && continue
    2.11 +		patch -p1 < ../stuff/$i
    2.12 +		touch done.$i
    2.13 +	done
    2.14  	chmod +x configure
    2.15 -	./configure --prefix=/usr $CONFIGURE_ARGS
    2.16 +	./configure --prefix=/usr $CONFIGURE_ARGS &&
    2.17  	make install
    2.18  }
    2.19  
     3.1 --- a/cyrus-imapd/receipt	Sat Oct 11 21:19:51 2008 +0000
     3.2 +++ b/cyrus-imapd/receipt	Sun Oct 12 09:55:00 2008 +0000
     3.3 @@ -16,12 +16,19 @@
     3.4  compile_rules()
     3.5  {
     3.6  	cd $src
     3.7 -	patch -p1 < ../stuff/50-FTBFS-gcc-4.0-fix.dpatch
     3.8 -	patch -p0 < ../stuff/p1.patch
     3.9 -	patch -p0 < ../stuff/p2.patch
    3.10 +	while read arg file; do
    3.11 +		[ -f done.$file ] && continue
    3.12 +		echo "Apply $file..."
    3.13 +		patch $arg < ../stuff/$file
    3.14 +		touch done.$file
    3.15 +	done << EOT
    3.16 +-p1 50-FTBFS-gcc-4.0-fix.dpatch
    3.17 +-p0 p1.patch
    3.18 +-p0 p2.patch
    3.19 +EOT
    3.20  	./configure --prefix=/usr --infodir=/usr/share/info \
    3.21 -	--mandir=/usr/share/man $CONFIGURE_ARGS
    3.22 -	make
    3.23 +	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    3.24 +	make &&
    3.25  	make DESTDIR=$PWD/_pkg install
    3.26  }
    3.27  
     4.1 --- a/jwm/receipt	Sat Oct 11 21:19:51 2008 +0000
     4.2 +++ b/jwm/receipt	Sun Oct 12 09:55:00 2008 +0000
     4.3 @@ -15,13 +15,14 @@
     4.4  compile_rules()
     4.5  {
     4.6  	cd $src
     4.7 -	patch -p1 < ../stuff/resize-backgound.u
     4.8 +	[ -f done.resize-backgound.u ] || patch -p1 < ../stuff/resize-backgound.u
     4.9 +	touch done.resize-backgound.u
    4.10  	./configure \
    4.11      	--prefix=/usr \
    4.12      	--mandir=/usr/share/man \
    4.13  		--sysconfdir=/etc/jwm \
    4.14  		--disable-fribidi \
    4.15 -		$CONFIGURE_ARGS
    4.16 +		$CONFIGURE_ARGS &&
    4.17  	make
    4.18  }
    4.19  
     5.1 --- a/lsdvd/receipt	Sat Oct 11 21:19:51 2008 +0000
     5.2 +++ b/lsdvd/receipt	Sun Oct 12 09:55:00 2008 +0000
     5.3 @@ -16,9 +16,11 @@
     5.4  compile_rules()
     5.5  {
     5.6  	cd $src
     5.7 -	patch -p1 -i ../stuff/lsdvd-0.16-configure.patch
     5.8 -	./configure --prefix=/usr $CONFIGURE_ARGS
     5.9 -	make
    5.10 +	[ -f done.lsdvd-0.16-configure.patch ] ||
    5.11 +		patch -p1 -i ../stuff/lsdvd-0.16-configure.patch
    5.12 +	touch done.lsdvd-0.16-configure.patch
    5.13 +	./configure --prefix=/usr $CONFIGURE_ARGS &&
    5.14 +	make &&
    5.15  	make DESTDIR=$PWD/_pkg install
    5.16  }
    5.17  
     6.1 --- a/mISDNuser/receipt	Sat Oct 11 21:19:51 2008 +0000
     6.2 +++ b/mISDNuser/receipt	Sun Oct 12 09:55:00 2008 +0000
     6.3 @@ -15,10 +15,11 @@
     6.4  compile_rules()
     6.5  {
     6.6  	cd $src
     6.7 -	patch -p1 < ../stuff/Makefile.u
     6.8 +	[ -f done.Makefile.u ] || patch -p1 < ../stuff/Makefile.u
     6.9 +	touch done.Makefile.u
    6.10  	./configure --prefix=/usr --infodir=/usr/share/info \
    6.11 -	--mandir=/usr/share/man $CONFIGURE_ARGS
    6.12 -	make
    6.13 +	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    6.14 +	make &&
    6.15  	make DESTDIR=$PWD/_pkg install
    6.16  }
    6.17  
     7.1 --- a/module-init-tools/receipt	Sat Oct 11 21:19:51 2008 +0000
     7.2 +++ b/module-init-tools/receipt	Sun Oct 12 09:55:00 2008 +0000
     7.3 @@ -15,12 +15,13 @@
     7.4  compile_rules()
     7.5  {
     7.6  	cd $src
     7.7 -	patch -p1 < ../stuff/lzlib.u
     7.8 +	[ -f done.lzlib.u ] || patch -p1 < ../stuff/lzlib.u
     7.9 +	touch done.lzlib.u
    7.10  	./configure --enable-zlib --prefix=/usr \
    7.11  	--sbindir=/sbin --bindir=/bin --sysconfdir=/etc \
    7.12  	--infodir=/usr/share/info --mandir=/usr/share/man \
    7.13 -	$CONFIGURE_ARGS
    7.14 -	make
    7.15 +	$CONFIGURE_ARGS &&
    7.16 +	make &&
    7.17  	make DESTDIR=$PWD/_pkg install
    7.18  }
    7.19  
     8.1 --- a/qemu/receipt	Sat Oct 11 21:19:51 2008 +0000
     8.2 +++ b/qemu/receipt	Sun Oct 12 09:55:00 2008 +0000
     8.3 @@ -15,13 +15,14 @@
     8.4  compile_rules()
     8.5  {
     8.6  	cd $src
     8.7 -	patch -p1 < ../stuff/virtio.u
     8.8 +	[ -f done.virtio.u ] || patch -p1 < ../stuff/virtio.u
     8.9 +	touch done.virtio.u
    8.10  	#./configure --prefix=/usr --enable-alsa --disable-gfx-check \
    8.11  
    8.12  	./configure --prefix=/usr --enable-alsa \
    8.13  		    --host-cc=gcc-3 --cc=gcc-3 \
    8.14 -		    --target-list="i386-softmmu,x86_64-softmmu"
    8.15 -	make
    8.16 +		    --target-list="i386-softmmu,x86_64-softmmu" &&
    8.17 +	make &&
    8.18  	make DESTDIR=$PWD/_pkg install
    8.19  }
    8.20  
     9.1 --- a/rox-filer/receipt	Sat Oct 11 21:19:51 2008 +0000
     9.2 +++ b/rox-filer/receipt	Sun Oct 12 09:55:00 2008 +0000
     9.3 @@ -15,7 +15,9 @@
     9.4  compile_rules()
     9.5  {
     9.6  	echo "patch"
     9.7 -	patch $src/ROX-Filer/src/menu.c stuff/menu.diff
     9.8 +	[ -f done.menu.diff ] ||
     9.9 +		patch $src/ROX-Filer/src/menu.c stuff/menu.diff
    9.10 +	touch done.menu.diff
    9.11  	echo "compile"
    9.12  	$src/ROX-Filer/AppRun --compile
    9.13  	echo "mkdir"
    10.1 --- a/xpat2/receipt	Sat Oct 11 21:19:51 2008 +0000
    10.2 +++ b/xpat2/receipt	Sun Oct 12 09:55:00 2008 +0000
    10.3 @@ -15,11 +15,14 @@
    10.4  compile_rules()
    10.5  {
    10.6  	cd $src
    10.7 -	patch -p1 < ../stuff/xpat2.patch
    10.8 -	patch -p1 < ../stuff/layout.patch
    10.9 +	for i in xpat2.patch layout.patch ; do
   10.10 +		[ -f done.$i ] && continue
   10.11 +		patch -p1 < ../stuff/$i
   10.12 +		touch done.$i
   10.13 +	done
   10.14  	cd src
   10.15  	cp ../../stuff/Makefile .
   10.16 -	make
   10.17 +	make &&
   10.18  	make DESTDIR=../_pkg install
   10.19  }
   10.20