strange error

Oliver Lehmann oliver at freebsd.org
Thu Nov 30 07:44:38 EST 2006


The problem here is: 

1. if the portbuild failed, cleanup in portbuild gets called with error=$?
2. this makes cleanup in portsbuild calling "tc makeBuild"
3. makeBuild cleans the mountpoints inside the buildroot, but does not 
unmount /dev!
4. this leads to trying to removing files inside a mounted devfs
5. this makes makeBuild stop initializing the build root.
6. fixing this by replacing the cleanupmount stuff in makeBuild with: 

    # Clean up any previous build tree
    tinderbuild_reset ${buildName}
    cleanDirs ${buildName} ${BUILD_DIR} 

   only brings us one step further because
7. /buildscript is missing in a freshly initialized build chroot 

conclusion - tinderbox_setup should be somehow called instead of makeBuild 
inside the cleanup function in lib/portsbuild 

Marcus?


More information about the tinderbox-list mailing list