Debian Patches

Status for wine/10.0~repack-12.2

Patch Description Author Forwarded Bugs Origin Last update
generate/cldr-48.patch nls: Read locale data from CLDR 48
Backport the data-reading changes for existing locales. CLDR 48 has
separate Kurdish files and additional language/calendar name variants.
The CLDR 47 update only added locales and changed the downloaded archive;
it does not require data-reader changes for the locales already shipped.
Boyuan Yang <byang@debian.org> no 2026-11-12
fixes/winebuild-const.patch winebuild: Fix -Wdiscarded-qualifier warnings with recent glibc. Katharina Bogad <katharina@hacked.xyz> no 2026-04-01
fixes/ntdll-const.patch ntdll: Fix -Wdiscarded-qualifier warnings with recent glibc.
Backport to Wine 10.0: keep ntpath mutable in open_nls_data_file.
Omit the host_var_exists hunk because that function is absent in 10.0.
Katharina Bogad <katharina@hacked.xyz> no 2026-04-01
fixes/winex11-const.patch winex11.drv: Fix -Wdiscarded-qualifier warnings with recent glibc.

Refresh context for Wine 10.0; retain the complete upstream change.
Katharina Bogad <katharina@hacked.xyz> no 2026-04-01
fixes/unixlib-const.patch include: Fix warnings with C23 and GLIBC.
GLIBC defines wcschr, wcsrchr and wcspbrk in their version of wchar.h if
C23 is in use. #undef them before ntdll macros are set.

Refresh context for Wine 10.0; retain the complete upstream change.
Katharina Bogad <katharina@hacked.xyz> no 2026-04-01
debianization/readme.patch remove build instructions from the upstream README file Michael Gilbert <mgilbert@debian.org> not-needed
debianization/cflags.patch pass CFLAGS to gcc-mingw-w64 Michael Gilbert <mgilbert@debian.org> not-needed
debianization/ldflags.patch pass LDFLAGS only to gcc (not mingw) Michael Gilbert <mgilbert@debian.org> not-needed
debianization/verbose.patch increase build verbosity Michael Gilbert <mgilbert@debian.org> not-needed
debianization/addon-paths.patch adjust search paths for addon installers Jens Reyer <jre.winesim@gmail.com> not-needed
debianization/binary-names.patch always use wine as the name for the binary executable loader Michael Gilbert <mgilbert@debian.org> not-needed
debianization/install-paths.patch don't append wine to the default path settings Michael Gilbert <mgilbert@debian.org> not-needed
debianization/version-string.patch append debian package revision to the end of the version string not-needed https://github.com/wine-compholio/wine-staging/blob/master/patches/Staging/0002-winelib-Append-Staging-at-the-end-of-the-version-s.patch
debianization/manpage-msiexec.patch remove incorrect backslashes from the msiexec manpage Michael Gilbert <mgilbert@debian.org> not-needed
debianization/desktop-launchers.patch call wineDEBSUFFIX instead of wine from desktop launchers Jens Reyer <jre.winesim@gmail.com> not-needed
debianization/duplicate-apploaders.patch do not generate duplicate winapploader tools Michael Gilbert <mgilbert@debian.org> not-needed
debianization/wineserver-persistence.patch eliminate delay when wine shuts down Jens Reyer <jre.winesim@gmail.com> not-needed debian upstream
system/zlib.patch build using system zlib Michael Gilbert <mgilbert@debian.org> not-needed
disable/line-wrapping.patch disable manual line wrapping in makefiles Michael Gilbert <mgilbert@debian.org> not-needed
disable/duplicate-nls.patch avoid duplicate installation of nls files Michael Gilbert <mgilbert@debian.org> not-needed
disable/generated-data.patch disable upstream tests that need data to be generated Michael Gilbert <mgilbert@debian.org> not-needed
disable/addons-download.patch disable gecko/mono installer download Jens Reyer <jre.winesim@gmail.com> not-needed
disable/po-modifications.patch avoid modifications to po files that are under version control Michael Gilbert <mgilbert@debian.org> not-needed
disable/file-associations.patch do not interfere with user file type associations Michael Gilbert <mgilbert@debian.org> yes debian upstream
generate/icons.patch regenerate all icon files Michael Gilbert <mgilbert@debian.org> not-needed
generate/opengl.patch regenerate opengl files Michael Gilbert <mgilbert@debian.org> not-needed
generate/vulkan.patch regenerate vulkan files Michael Gilbert <mgilbert@debian.org> not-needed
generate/vulkan-1.4.312.patch commit eee229da2705127308109e3655ff8bbd41d82569

winevulkan: Update to VK spec version 1.4.312.

Note that this also removes VK_NV_cuda_kernel_launch,
as the extension is still provisional and the updated vk.xml
now reflects that.
Georg Lehmann <dadschoorse@gmail.com> no 2025-04-04
generate/vulkan-1.4.318.patch commit ec2b9fa5bf4b3229de17b0fa373ce6b1b2b27379

winevulkan: Reorder bitmasks to handle aliases correctly.
Georg Lehmann <dadschoorse@gmail.com> no 2025-08-21
generate/unicode.patch use system unicode Michael Gilbert <mgilbert@debian.org> not-needed
fixes/flex.patch add explicit lex file dependencies to the makefile rules Michael Gilbert <mgilbert@debian.org> no debian
fixes/bison.patch fix occasional build failures due to missing bison files Michael Gilbert <mgilbert@debian.org> no
fixes/fstype.patch reflect GPL permisiveness in embedding characteristics of fonts Michael Gilbert <mgilbert@debian.org> no
fixes/binutils2.44.patch fix crash when building with binutils-mingw-w64 2.44 no debian
fixes/virtual-protect.patch fix incorrect handling of WRITECOPY memory protection Fabian Maurer yes upstream
fixes/printer-resolution.patch set default printer resolution to 600dpi Ralf E-Mail <anonymous272912@gmail.com> not-needed debian
fixes/temporary-directory.patch safer selection of the temporary directory for wineserver Michael Gilbert <mgilbert@debian.org> no debian
fixes/ntdll-398da925.patch commit 398da92511b51d3ee4ce7c77bfe6d738621bfbfa

ntdll: Update the main exe entry point when the module is relocated.

diff --git a/dlls/ntdll/unix/virtual.c b/dlls/ntdll/unix/virtual.c
index 06a260cfe3f..a22f6209dd1 100644
Alexandre Julliard <julliard@winehq.org> no 2025-03-10
fixes/ntdll-5c45391e.patch commit 5c45391e9f79854915c50a15054f2de4888596a2

ntdll: Also relocate entry point for builtin modules.

Discovered while I was working on ASan support. ASan shadow memory
might be placed where the main image is normally loaded, forcing it to
relocate.

diff --git a/dlls/ntdll/unix/virtual.c b/dlls/ntdll/unix/virtual.c
index 202894750a0..c797c89952f 100644
Yuxuan Shui <yshui@codeweavers.com> no 2025-05-03
arm/1-73ab9ca8.patch commit 73ab9ca8d0c6d2602702b1a37860ab1ec569f510

makefiles: Import winecrt0 by default even with -nodefaultlibs.

diff --git a/dlls/kernel32/Makefile.in b/dlls/kernel32/Makefile.in
index ca5bb437e24..66cd9916673 100644
Alexandre Julliard <julliard@winehq.org> no 2025-02-26
arm/2-0621c022.patch commit 0621c02215d3c78552d05be27bfcd33335512b2c

makefiles: Add support for assembly source files.

diff --git a/tools/make_makefiles b/tools/make_makefiles
index 646a70d18f4..ad9494e983e 100755
Alexandre Julliard <julliard@winehq.org> no 2025-02-27
arm/3-4a026d7a.patch commit 4a026d7aa67aae84a733303b605f98ef1ea366ca

makefiles: Add support for optionally installing external libs.

diff --git a/tools/makedep.c b/tools/makedep.c
index 5610f85c93f..a423bfd0d6f 100644
Alexandre Julliard <julliard@winehq.org> no 2025-02-27
arm/4-45a2ae76.patch commit 45a2ae766241720320cef65ffec305aefc3b374b

libs: Import code from upstream compiler-rt version 8.0.1.

Based on a patch by Martin Storsjö.

diff --git a/aclocal.m4 b/aclocal.m4
index 440c5319aa8..8e37e2e494e 100644
Alexandre Julliard <julliard@winehq.org> no 2025-02-27
arm/5-93010685.patch commit 930106855f3f52dee01ba44b5d41a33974dfd26e

makefiles: Link to compiler-rt for builds in MSVC mode.

diff --git a/tools/makedep.c b/tools/makedep.c
index a423bfd0d6f..3fe2d254fdf 100644
Alexandre Julliard <julliard@winehq.org> no 2025-02-27
arm/incbin.patch workaround clang bug involving incbin directives on armhf Michael Gilbert <mgilbert@debian.org> no
arm/format-strings.patch fix format strings with the wrong type on armhf Michael Gilbert <mgilbert@debian.org> no
warnings/libs.patch fix warnings in embedded libs Michael Gilbert <mgilbert@debian.org> no
warnings/vkd3d.patch fix incorrect format strings in vkd3d Michael Gilbert <mgilbert@debian.org> no
warnings/int-conversion.patch fix 64-bit integer conversion warning (gcc13 -Wint-conversion) Michael Gilbert <mgilbert@debian.org> no
generate/unicode-17.patch nls: Handle Unicode 17 line breaking classes.
Backport the runtime changes from the Unicode 17 update and teach the
system-data generator the new HH line-breaking class. Generated tables
are rebuilt from Debian Unicode data during the package build.
Alexandre Julliard <julliard@winehq.org> no debian 2025-09-11
generate/vulkan-funcpointer.patch winevulkan: Accept the Vulkan 1.4.339 function pointer schema
Vulkan-Headers 1.4.339 describes function pointers using proto/param
children. Adapt the parser while retaining support for older registries.
The schema handling follows upstream commit
885a7acc32236491464b22f612dca29452b7ef06, adapted to Wine 10's member model.
Boyuan Yang <byang@debian.org> no debian 2026-11-12
generate/vulkan-win32-order.patch winevulkan: Order converted structures by alias-resolved dependencies
The converted structure list follows conversion discovery order, which can
place a by-value member's definition after its user. Sort it using the
existing dependency helper, and resolve aliases before comparing dependencies:
an alias produces no declaration itself and is emitted with its canonical
structure.

Vulkan 1.4.363 exposes this with VkBindHeapInfoEXT32 embedding
VkDeviceAddressRangeEXT32, an alias of VkDeviceAddressRangeKHR32.

Related upstream fixes use the same ordering for converted structures:
https://github.com/wine-mirror/wine/commit/3b35c5dab13cbc95de0655718ac2c5fedafb671f
https://github.com/wine-mirror/wine/commit/6a663cc9d23ae64c9bc85a0f2789d7ee5c79f60c
Boyuan Yang <byang@debian.org> no 2026-11-12
generate/vulkan-native-union-selector.patch winevulkan: Pass selectors to native union conversion functions
Union conversion bodies and their callers use the selector in both
Win32 and native pointer conversion paths. Include the selector argument
in the native function signature as well, for both input and output
conversion directions.

Vulkan 1.4.363 requires native conversion of
VkDescriptorMappingSourceDataEXT and exposes the missing parameter.
Boyuan Yang <byang@debian.org> no 2026-11-12
fixes/arm64-bti-dispatchers.patch ntdll/unix: Add bti c for call dispatchers on ARM64.
Branch Target Identification (BTI) was introduced with ARMv8.5 and is enabled by newer distributions.
It's a NOP for older hardware, so make our code compatible to it.
André Zwing <nerv@dawncrow.de> no 2025-12-07
fixes/arm64-unwind-pac.patch ntdll: Don't validate arm64 pointer signing when unwinding.
When unwinding through a "pac_sign_lr" opcode, we need to strip
out pointer authentication bits from the address in the LR
register.

Previously this was done with the "autib1716" instruction, which
does validate that the address in x17 is properly signed with
the B key, given the reference address in x16 (SP).

However - Clang has a bug [1] since Clang 19, that has caused it to
generate incorrect prologues (if building with
"-mbranch-protection=standard"), doing return address signing using
the A key, while the unwind info says that the address should be
signed using the B key. (The unwind info has no way of signaling
which key to use, but the normative form uses the B key.)

It also turns out that Windows doesn't do any validation of the
signing of the return address when unwinding; Windows can
correctly execute and do unwinding in binaries built with the
buggy Clang - which might explain why the bug has passed unnoticed
for so long.

Therefore, doing the same and reducing the strictness here in Wine
seems reasonable (in addition to doing it to work around the Clang
bug).

By using "xpaclri" instead of "autib1716", we strip out the
authentication bits without validating them. Both instructions can
be encoded as plain hint instructions, that are treated as nop
instructions for older CPUs.

In addition to failing on unwinding in user binaries built return
address signing (e.g. "-mbranch-protection=standard") with a buggy
Clang, this issue also hits cases if Wine itself has been built with
"-mbranch-protection=standard" in CROSSCFLAGS, with a buggy version
of Clang. This is the case on e.g. Ubuntu 26.04, making those
builds of Wine fail (either directly on startup, or failing only
if attempting to do unwinding in user code), if running on a CPU that
supports pointer authentication.

[1] https://github.com/llvm/llvm-project/issues/203852
Martin Storsjö <martin@martin.st> no 2026-06-15

All known versions for source package 'wine'

Links