[gobolinux-users] Wine 0.9.0: wineprefixcreate error ...incompatible with gobolinux
hisham.hm at gmail.com
hisham.hm at gmail.com
Sun Jul 8 06:03:28 UTC 2007
On 7/4/07, Anshuman Aggarwal <anshuman at brillgene.com> wrote:
> Here is the error:
>
> $ wineprefixcreate
> /System/Links/Executables/wineprefixcreate=/System/Links/Executables/wineprefixcreate
> cp: cannot stat `/System/Links/Executables/../share/wine/wine.inf': No
> such file or directory
>
> I've traced it to this point in the wineprefixcreate script:
> --------------------------------
> cat wineprefixcreate:
>
> }
>
> set -e
>
> bindir=""
> echo "$0="$0
> case "$0" in
> */*)
> # $0 contains a path, use it
> bindir=`dirname "$0"`
> ;;
> *)
> # no directory in $0, search in PATH
> saved_ifs=$IFS
> IFS=:
> for d in $PATH
> do
> IFS=$saved_ifs
> if [ -x "$d/$0" ]
> then
> bindir="$d"
> break
> fi
> done
> ;;
> esac
>
> bindir=`cd "$bindir" && pwd`
> dlldir="$bindir/../lib/wine"
> datadir="$bindir/../share/wine"
>
> -------------------------
> Question is: what is the right solution for this? Obviously the
> gobostructure is not working for this script...
> Do we patch the script or is there a solution we can send upstream?
Their script fails whenever the binary is symlinked. A fix for
upstream would be to add
bindir=`readlink "$bindir"`
right after esac. In the mean time, we should add that to a patch.
-- Hisham
More information about the gobolinux-users
mailing list