compiling debian 12 packages ?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Post Reply
denisb
Level 2
Level 2
Posts: 14
Joined: Mon Jul 14, 2008 9:34 am

compiling debian 12 packages ?

Post by denisb »

Hello,
I need to deploy wine-devel packages on debian 12, with some small patches.
I tried to compile it debian-way (apt source, debuild -us -uc ) and it worked perfectly, generating wine-devel and wine-devel-amd64 packages.
But now I'm stuck with -i386 package. As i can't find how to compile it. I tried debuild -us -uc -ai386, but it complains with i386 libs and gcc not installable. Did i missed something ? There are no explanations about how to compile wine-*-i386 package.

I'm able to compile and install non-debianized version of wine on this system, including i386. But it is not my goal. I just need the recipe for building custom debian packages just like winhq's ones.

Thanks,

Denis
User avatar
morgwai
Level 2
Level 2
Posts: 14
Joined: Sun Jan 26, 2025 7:10 am

Re: compiling debian 12 packages ?

Post by morgwai »

denisb wrote: Tue May 27, 2025 10:33 am I tried to compile it debian-way (apt source, debuild -us -uc )
Generally it is much more convenient to use sbuild rather than building directly on your system. After the basic setup described on the wiki, create an i386 image and pass the dsc file to it:

Code: Select all

mmdebstrap --architectures=i386 --include=ca-certificates --skip=output/dev --variant=buildd bookworm ~/.cache/sbuild/bookworm-i386.tar.zst http://deb.debian.org/debian
sbuild -d bookworm --arch i386 -c bookworm-i386 wine_10.8~bookworm-1myclassifier1.dsc
(add `--aptopt='Acquire::http { Proxy "http://127.0.0.1:3142"; }'` to `mmdebstrap` if you use `apt-cacher-ng`).

Note however that the `wine-devel` debianization from Winehq has some issues and in my experience these packages crash a lot. I supposed that this is mainly due to the fact that they are built using vanilla `gcc` instead of `mingw` variant and possibly also due to lack of some patches applied by the Debian team to their 10.0~repack3 packages.
You can have a look at my `wine-devel-10.6` packages with `ntsync` support for Trixie here: Apart from `ntsync` patch, these are mostly just Winehq packages built using `mingw` compiler with a few patches ported from Debian's 10.0~repack-3 packages.

As a side note: unless you have important reasons not do so, I'd recommend upgrading to Trixie.
Post Reply