[packman] Bug in package tremulous (openSUSE 11/i586)

Götz Christ goetzchrist at yahoo.es
Wed Oct 1 02:28:37 CEST 2008


Hi,
the package tremulous witch has the binaries for the game is broken. The
path to the game data is not known by the tremulous binary. The error when
executing the game is this:

...
...
/usr/games/base

----------------------
2505 files in pk3 files
----- CL_Shutdown -----
-----------------------
----- CL_Shutdown -----
-----------------------
Sys_Error: Couldn't load default.cfg


The package from openSUSE games repository
http://download.opensuse.org/repositories/games/openSUSE_11.0/ works without
any problem.

This is what the tremulous deb package from Debian does to execute
tremulous.



#!/bin/sh

BINARY="/usr/lib/tremulous/tremulous"
BASE_PATH="/usr/share/games/tremulous"
QUIET=0

# Tremulous binaries don't understand "regular" command line parameters.
Let's
# catch them here, to avoid accidently launching the binary.

while [ "$1" != "" ]; do {
    if [ "$1" = "+set" -o "$1" = "+connect" ]; then
        break;
    fi
    case "$1" in
        -h|--help)
            echo -e ${EXCUSE}
            exit 0
            ;;
        -q|--quiet)
            QUIET=1
            ;;
    esac
    shift
}; done

# Ready to rumble!

if [ ${QUIET} -eq 1 ]; then
    exec ${BINARY} +set fs_basepath ${BASE_PATH} +set ttycon 0 $* >/dev/null
2>&1
else
    exec ${BINARY} +set fs_basepath ${BASE_PATH} $*
fi

exit $?



-- 
Götz



More information about the Packman mailing list