Hello,

As far, as I've rebuilt new Gnash in the Builder several times already, ccache
is certainly of help for me. Attached is a small 2-line patch for the Builder
to support ccache.

-- 
I'm an FSF member -- Help us support software freedom!
<http://www.fsf.org/jf?referrer=7253>

===File ~/projects/builder/builder-ccache-support.patch=====
=== modified file 'config'
--- config      2010-05-30 15:31:41 +0000
+++ config      2010-06-14 19:07:49 +0000
@@ -97,7 +97,7 @@
 CDSOURCE_ADD="builder"
 
 # Extra packages to install in the chroot
-CHROOT_EXTRA_PACKAGES="cdbs python-dev python-distutils-extra python-central 
libusplash-dev"
+CHROOT_EXTRA_PACKAGES="cdbs python-dev python-distutils-extra python-central 
libusplash-dev ccache"
 
 # Version numbers to be appended to generated .debs 
 # Mostly used during development (Increment these versions when making a 
change to the package)

=== modified file 'do-update'
--- do-update   2010-05-29 20:27:21 +0000
+++ do-update   2010-06-14 19:10:09 +0000
@@ -249,7 +249,7 @@
                                        # What are the packages build-deps?
                                        PKG_BUILD_DEPS=$(chroot $CHROOTDIR bash 
-c "cd $WORKINGDIR/$PKGNAME && dpkg-checkbuilddeps 2>&1 |sed -e 's/ 
*([^)]*)//g' | cut -d ' ' -f 5-")
                                        chroot $CHROOTDIR bash -c "cd 
$WORKINGDIR/$PKGNAME && apt-get -y install $PKG_BUILD_DEPS"
-                                       chroot $CHROOTDIR bash -c "cd 
$WORKINGDIR/$PKGNAME && dpkg-buildpackage $DPKGOPTS"
+                                       chroot $CHROOTDIR bash -c "cd 
$WORKINGDIR/$PKGNAME && export CCACHE_DIR=\"/var/lib/ccache\" && export 
PATH=\"/usr/lib/ccache:${PATH}\" && dpkg-buildpackage $DPKGOPTS"
                                        reprepro -Vb $REPODST include 
$RELEASE$distro_release $CHROOTDIR/$WORKINGDIR/*.changes
                                fi
                        done

============================================================

_______________________________________________
gNewSense-dev mailing list
gNewSense-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/gnewsense-dev

Reply via email to