abcfy2 / deepin-wine5-aur

deepin-wine5 AUR: https://aur.archlinux.org/packages/deepin-wine5
20 stars 4 forks source link

预先设置环境变量WINEARCH会导致deepin-wine5无法启动:unable to find wine executable #12

Closed nukemiko closed 2 years ago

nukemiko commented 2 years ago

如果设置了环境变量WINEARCHwin64,那么就无法启动,并且报错:error: unable to find wine executable. this shouldn't happen.

> printenv WINEARCH
win64
> deepin-wine5  # 以下是错误输出
error: unable to find wine executable.  this shouldn't happen.

> export WINEARCH=win32
> deepin-wine5  # 以下是正常输出
Usage: wine PROGRAM [ARGUMENTS...]   Run the specified program
       wine --help                   Display this help and exit
       wine --version                Output version information and exit

> unset WINEARCH
> deepin-wine5  # 以下是正常输出
Usage: wine PROGRAM [ARGUMENTS...]   Run the specified program
       wine --help                   Display this help and exit
       wine --version                Output version information and exit
abcfy2 commented 2 years ago

因为deepin-wine本来就不支持amd64,官方的类库都是使用32bit构建的

nukemiko commented 2 years ago

因为deepin-wine本来就不支持amd64,官方的类库都是使用32bit构建的

但是不应该在deepin-wine5脚本里面加一行export WINEARCH=win32,或者改进一下脚本检测环境的方法,最起码说明一下?一般用户看到error: unable to find wine executable都会第一时间认为这个包有问题,而不是考虑自己的问题