[opensuse-buildservice] Patch for 'build'
I've been trying to get ccache working on one of my builds, and have been having some issues. I've tracked the problem down to an incorrectly generated shell script. The setupccache function in 'build' creates a few wrapper shell scripts to make things work (gcc/cc specifically), but the series of echos to create the script has a typo. The first and second echo lines both contain a single > redirect, so the first line is immediately destroyed. The net result is the #!/bin/sh header doesn't end up in the script file: echo '#! /bin/sh' > $BUILD_ROOT/var/lib/build/ccache/bin/$i echo "test -e /usr/bin/$i || exit 1" > $BUILD_ROOT/var/lib/build/ccache/bin/$i The second line should look like this: echo "test -e /usr/bin/$i || exit 1" >> $BUILD_ROOT/var/lib/build/ccache/bin/$i A patch has been attached. I checked this out from: https://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/src/build If that is an incorrect location to base the patch on, let me know. Josh
Am Mittwoch, 22. Juli 2009 17:55:23 schrieb Joshua Plautz:
I've been trying to get ccache working on one of my builds, and have been having some issues. I've tracked the problem down to an incorrectly generated shell script.
The setupccache function in 'build' creates a few wrapper shell scripts to make things work (gcc/cc specifically), but the series of echos to create the script has a typo. The first and second echo lines both contain a single > redirect, so the first line is immediately destroyed. The net result is the #!/bin/sh header doesn't end up in the script file:
The patch got applied to svn. Thanks ! adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Adrian Schröter
-
Joshua Plautz