[Scummvm-devel] PATH on buildbot

Max Horn max at quendi.de
Wed May 25 22:18:05 CEST 2011


Am 25.05.2011 um 20:39 schrieb Willem Jan Palenstijn:

> Hi all,
> 
> I'm going to make some random observations here hoping that someone who knows
> the buildbot design can fix things...
> 
> 
> This is the master-lenny-x86_64 build:
> 
>> From http://buildbot.scummvm.org/builders/master-lenny-x86_64/builds/166/steps/configure/logs/stdio :
> 
>  PATH=/opt/toolchains/debian-lenny-x86_64/bin:/opt/toolchains/devkitPPC-r16/devkitPPC/bin:/opt/toolchains/mingw32ce-0.5.1/bin:/opt/toolchains/webos/PalmPDK/arm-gcc/bin:/opt/toolchains/psp/bin:/opt/toolchains/devkitARM-r30/devkitARM/bin:/opt/toolchains/mips64-n64/bin:/opt/toolchains/motomagx/arm-eabi2/bin:/opt/toolchains/motoezx/bin:/opt/toolchains/motoezx/crosstool/bin:/opt/toolchains/mingw-w64-bin_i686-linux/bin:/opt/toolchains/i586-mingw32msvc/bin:/opt/toolchains/arm-apple-darwin9-llvm-gcc-4.2/bin:/opt/toolchains/open2x-gcc-4.1.1/bin:/opt/toolchains/dingux-mipsel/usr/bin:/opt/toolchains/dc/bin:/opt/toolchains/arm-caanoo/bin:/opt/toolchains/android/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/opt/toolchains/ps2/tools/bin:/opt/toolchains/ps2/tools/ee/bin:/opt/toolchains/ps2/tools/iop/bin:/opt/toolchains/ps2/tools/dvp/bin:/opt/toolchains/ps2/sdk/bin
>  [...]
>  Looking for sdl-config... /opt/toolchains/motomagx/arm-eabi2/bin/sdl-config
>  [...]
> 
This looks suspiciously like *my* PATH variable (except with debian-lenny tucked in front of it)... I wonder if that's so because I restarted buildbot from my account (to be precise: I logged in with my account, then sudo'ed myself to root, then restarted buildbot). I.e. it looks as if it inherited my env. BAD

So somebody needs to restart it once more, but with a clean PATH. And to prevent disasters like that in the future, we should in fact set an initial minimal PATH for all ports... That would also help catch mistakes like the one you report on below. I guess just putting "/bin" in there should be enough... I'll experiment with it.

Bye,
Max


>> From the buildbot config:
> 
> scumm_root_lenny_x86_64 = "/opt/toolchains/debian-lenny-x86_64"
> scumm_env_lenny_x86_64["PATH"] = "%s/usr/bin:%s" % (scumm_root_lenny_x86_64, os.environ["PATH"])
> 
> 
>> From the filesystem:
> 
> $ ls /opt/toolchains/debian-lenny-x86_64/
> etc  lib  usr
> $ ls /opt/toolchains/debian-lenny-x86_64/usr/bin
> sdl-config
> 
> 
> In particular, note the usr/bin vs bin mismatch. I'm not sure why the PATH
> contains every toolchain out there according to the configure output, by the
> way.
> 
> 
> -Willem Jan
> 
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery, 
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now. 
> http://p.sf.net/sfu/quest-d2dcopy1
> _______________________________________________
> Scummvm-devel mailing list
> Scummvm-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scummvm-devel
> 





More information about the Scummvm-devel mailing list