Package: winetricks
Version: 20250102-1
Severity: normal
X-Debbugs-Cc: Debian Wine Party <[email protected]>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

With wine ≥ 10.0~repack-12, assuming both wine64 and wine32 are installed,
winetricks fails to apply verbs in win32 prefixes.

It seems to be due to the WINEARCH value being unset at the end of 
winetricks_set_wineprefix,
leading to any future action in this winetricks invocation to call wine64 
(wow64) instead of wine32.
wine64 can not act on pure win32 prefixes, leading to a failure of whatever was 
the required operation.

These failures are avoided, with no obvious side effect (I have not run 
extensive tests yet)
by removing the following lines at the end of the winetricks_set_wineprefix 
function (lines 4668-4671):

# Unset WINEARCH which might be set from winetricks_set_winearch().
# It is no longer necessary after the new wineprefix was created
# and even may cause trouble when using 64bit wineprefixes afterwards.
unset WINEARCH

Beware that I use a local fix for https://bugs.debian.org/1122868
Without it wine64 is always called no matter the value of WINEARCH:
6c6
< if test -x $wine64; then
- ---
> if test -x $wine64 && test "${WINEARCH:-}" != 'win32'; then

If that fix could be rewritten in a way not relying on WINEARCH, the current 
bug report would probably become moot,
but I suspect there is no other good way to discriminate between real win32 
(WINEARCH=win32) and wow64 win32 (WINEARCH=win64 or unset).

- -- System Information:
Debian Release: forky/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'stable-debug'), (500, 'oldstable-debug'), (500, 'unstable'), (500, 'testing'), 
(500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.17.8+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: OpenRC (via /run/openrc), PID 1: init
LSM: AppArmor: enabled

Versions of packages winetricks depends on:
ii  binutils     2.45.50.20251209-1
ii  curl         8.17.0-3
ii  wget         1.25.0-2
ii  wine [wine]  10.0~repack-12

Versions of packages winetricks recommends:
ii  7zip [p7zip-full]                     25.01+dfsg-4
ii  cabextract                            1.11-2
pn  fuseiso | archivemount                <none>
pn  pkexec | policykit-1 | kde-cli-tools  <none>
pn  sudo                                  <none>
ii  unzip                                 6.0-29
ii  xdg-utils                             1.2.1-2
ii  xz-utils                              5.8.1-2
pn  zenity | kdialog | x11-utils          <none>

Versions of packages winetricks suggests:
pn  tor                 <none>
pn  unrar-free | unrar  <none>

- -- no debconf information

- -- debsums errors found:
debsums: changed file /usr/bin/winetricks (from winetricks package)

-----BEGIN PGP SIGNATURE-----

iIYEARYKAC4WIQSUsdxM90hewW6X7Jhja3j5HOuA2AUCaT2KiRAcZGViaWFuQHZ2
MjIxLmZyAAoJEGNrePkc64DYhvcA/15seuymnXVblCPqM9VNh9d/6Yj+0xT5MDgt
FaWAqBm8AQDbCWNapp7uAVJdV2dbECc3rNkjFqxyy9wIRPVRUo2iDQ==
=uQYJ
-----END PGP SIGNATURE-----

Reply via email to