Tinderbox wants to fetch distfiles before checking cache
xorquewasp at googlemail.com
xorquewasp at googlemail.com
Sat Jan 16 19:28:49 EST 2010
On 2010-01-16 18:44:31, Joe Marcus Clarke wrote:
> (i.e. /tmp/distfiles in the Build)
# ./tc listHooks
...
--------------------------------------------------------------------------------
Name : prePortBuild
Command : /usr/local/tinderbox/scripts/pre_port_hook.sh
Description:
Hook to run before building a port.
If this command returns a non-zero value, the port will not be built.
The following environment will be passed to the hook command:
PACKAGE_NAME : Package name of the port
BUILD : Build name for this port
JAIL : Jail name for this Build
PORTSTREE : PortsTree name for this Build
CHROOT : Location of the Build root
PORTDIR : Directory origin of this port
PB : Tinderbox root
TOTAL_SIZE : Estimated total size (in KB) required for this build
# cat /usr/local/tinderbox/scripts/pre_port_hook.sh
#!/bin/sh -x
DISTFILES_MANUALLY="
/storage/distfiles/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar
/storage/distfiles/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar
/storage/distfiles/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar
/storage/distfiles/diablo-caffe-freebsd7-amd64-1.6.0_07-b02.tar.bz2
/storage/distfiles/tzupdater-1_3_21-2009p.zip
"
for file in ${DISTFILES_MANUALLY}
do
cp "${file}" "${CHROOT}/tmp/distfiles" || exit 1
done
Upon executing a tinderbuild, the output of the above script is visible whilst
tailing 'make.0' and the files appear to go to the expected place:
chroot is: /usr/local/tinderbox/8.0-RELEASE-amd64-ffox
execute_hook: Running /usr/local/tinderbox/scripts/pre_port_hook.sh for prePortBuild with environment "PACKAGE_NAME=diablo-jdk-1.6.0.07.02_7 BUILD=8.0-RELEASE-amd64-ffox JAIL=8.0-RELEASE-amd64 PORTSTREE=FreeBSD CHROOT=/usr/local/tinderbox/8.0-RELEASE-amd64-ffox PORTDIR=java/diablo-jdk16 PB=/usr/local/tinderbox TOTAL_SIZE=0" from /usr/local/tinderbox/scripts.
+ DISTFILES_MANUALLY='
/storage/distfiles/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar
/storage/distfiles/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar
/storage/distfiles/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar
/storage/distfiles/diablo-caffe-freebsd7-amd64-1.6.0_07-b02.tar.bz2
/storage/distfiles/tzupdater-1_3_21-2009p.zip
'
+ cp /storage/distfiles/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar /usr/local/tinderbox/8.0-RELEASE-amd64-ffox/tmp/distfiles
+ cp /storage/distfiles/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar /usr/local/tinderbox/8.0-RELEASE-amd64-ffox/tmp/distfiles
+ cp /storage/distfiles/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar /usr/local/tinderbox/8.0-RELEASE-amd64-ffox/tmp/distfiles
+ cp /storage/distfiles/diablo-caffe-freebsd7-amd64-1.6.0_07-b02.tar.bz2 /usr/local/tinderbox/8.0-RELEASE-amd64-ffox/tmp/distfiles
+ cp /storage/distfiles/tzupdater-1_3_21-2009p.zip /usr/local/tinderbox/8.0-RELEASE-amd64-ffox/tmp/distfiles
But the build still fails:
================================================================
====================<phase 1: make checksum>====================
=> diablo-caffe-freebsd7-amd64-1.6.0_07-b02.tar.bz2 doesn't seem to exist in /tmp/distfiles/.
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/diablo-caffe-freebsd7-amd64-1.6.0_07-b02.tar.bz2: File unavailable (e.g., file not found, no access)
=> Couldn't fetch it - please try to retrieve this
=> port manually into /tmp/distfiles/ and try again.
*** Error code 1
Any ideas? (Any more useful info I could provide to assist tracking
down the problem?)
xw
More information about the tinderbox-list
mailing list