IBT-FMI / NeuroGentooProject

1 stars 0 forks source link

issues with buildserver command #11

Closed TheChymera closed 6 years ago

TheChymera commented 6 years ago

There seems to be something wrong with the buildserver executable:

builder /etc/cron.daily # cat update_all.sh 
#!/bin/bash

set -e

ROOT_DIR="/root/NeuroGentooProject/BuildServer/"
ROOT_DIR="${1:-$ROOT_DIR}"

pushd "${ROOT_DIR}"
buildserver stemgentoo update
for file in roots/*/.gentoo/
do
    builsderver "$file" update
done
popd
builder /etc/cron.daily # ./update_all.sh 
~/NeuroGentooProject/BuildServer /etc/cron.daily
find: '': No such file or directory
Exiting
Cleaning up
Cleaning up after error
cat: '': No such file or directory
Exiting
Cleaning up
Cleaning up after error
Exiting
Cleaning up
Cleaning up after error
Exiting
Cleaning up
Cleaning up after error
builder /etc/cron.daily # buildserver --help
find: '': No such file or directory
Exiting
Cleaning up
Cleaning up after error
cat: '': No such file or directory
Exiting
Cleaning up
Cleaning up after error
Exiting
Cleaning up
Cleaning up after error
Exiting
Cleaning up
Cleaning up after error

I assume some paths might still be hard-coded?

TheChymera commented 6 years ago

Apparently the issue was that the $@ variable expanded in the ebuild, yielding not:

exec /usr/share/buildserver/exec.sh "$@"

but

exec /usr/share/buildserver/exec.sh ""

Fixed by 0df4798aa1f82a543d021e18109e465531de4350