gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] bug in startscript concerning suse 10.3 64 bit


From: Ruthard Baudach
Subject: [Gnumed-devel] bug in startscript concerning suse 10.3 64 bit
Date: Mon, 21 Jul 2008 22:34:28 +0200
User-agent: Opera Mail/9.23 (Linux)

After a long time I tried to install gnumed again to see what happend last year.
Installation via zypper functions fine.
Yet: in 64 architecture the GNUMEDDIR should be /usr/ __lib64__ /python${PYVER}/site-packages/Gnumed/wxpython

I've fixed it by hand, but something like

if [ -n "$(uname -a | grep x86_64)" ]
then
        ARCH="64"
else
        ARCH=""
fi
GNUMEDDIR="/usr/lib${ARCH}/python${PYVER}/site-packages/Gnumed/wxpython"

would fix it - and break it for all 64-bit distributions that put python in /usr/lib.

better might be

GNUMEDDIR="/usr/lib/python${PYVER}/site-packages/Gnumed/wxpython"
if [ ! -d "$GNUMEDDIR ]
then
        GNUMEDDIR="/usr/lib64/python${PYVER}/site-packages/Gnumed/wxpython"
fi

or, best choice might be

LIST_OF_POSSIBLE_GNUMEDDIR_PATHS=\
"/usr/lib/python${PYVER}/site-packages/Gnumed/wxpython" \
"/usr/lib64/python${PYVER}/site-packages/Gnumed/wxpython" \
"/some/other/weird/path/in/another/weird/distribution" \
"/yet/another/path"

for GNUMEDDIR in $"LIST_OF_POSSIBLE_GNUMEDDIR_PATHS"
do
        if [ -d "$GNUMEDDIR"]
        then
                break
        fi
done

Should work

Ruthard


--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]