Tuesday, November 17, 2026

Re: wine: mention pulseaudio + pipewire in README

On Tue, 17 Nov 2026 18:48:52 +0100 Antoine Jacoutot <ajacoutot@bsdfrog.org> wrote: > On November 17, 2026 6:39:18 PM GMT+01:00, izzy Meyer > <izder456@disroot.org> wrote: > >On Fri, 6 Nov 2026 09:04:27 +0100 > >prx <prx@si3t.ch> wrote: > > > >> * Thomas Frohwein <tfrohwein@fastmail.com> le [05-11-2026 14:58:16 > >> -0700]: > >> > Hi, > >> > > >> > With the recent changes to pulseaudio, I intend to drop some > >> > guidance like the following into wine's README. > >> > > >> > Sharing here in case there are comments/issues; planning to > >> > commit soon if no objections. > >> > > >> > Index: Makefile > >> > =================================================================== > >> > RCS file: /cvs/ports/emulators/wine/Makefile,v > >> > diff -u -p -r1.53 Makefile > >> > --- Makefile 4 Nov 2026 21:41:40 -0000 1.53 > >> > +++ Makefile 5 Nov 2026 18:17:40 -0000 > >> > @@ -6,7 +6,7 @@ USE_WXNEEDED = Yes > >> > COMMENT = compatibility layer to run Windows > >> > applications > >> > DISTNAME = wine-11.20 > >> > -REVISION = 2 > >> > +REVISION = 3 > >> > > >> > CATEGORIES = emulators > >> > > >> > Index: pkg/README > >> > =================================================================== > >> > RCS file: /cvs/ports/emulators/wine/pkg/README,v > >> > diff -u -p -r1.1.1.1 README > >> > --- pkg/README 19 Oct 2026 02:14:57 -0000 1.1.1.1 > >> > +++ pkg/README 5 Nov 2026 18:17:40 -0000 > >> > @@ -47,6 +47,21 @@ and/or VKD3D-Proton for D3D12: > >> > Both come with installation instructions and/or install scripts > >> > that install the dll's into the wine prefix and update winecfg. > >> > > >> > +Audio > >> > +===== > >> > + > >> > +${PKGSTEM} uses pulseaudio. This requires pipewire-pulse, which > >> > can be +installed with: > >> > + > >> > + # pkg_add pipewire > >> > + > >> > +Pipewire doesn't autospawn, so before launching wine, you need > >> > to run: + > >> > + $ /usr/local/bin/pipewire & > >> > + > >> > +if this isn't taken care of by the desktop manager or in the > >> > startup +scripts like .xsession. > >> > + > >> > Debugging > >> > ========= > >> > > >> > > >> > >> Hi, > >> Thanks, this answered my yesterday question about non-working > >> sound. > >> > >> Regards. > >> > >> > > > >I like this change, small nit: > > > >~ $ pkg_info -f pipewire | grep '^@depend' > >@depend audio/libcanberra,-main:libcanberra-*:libcanberra-0.30p8 > >@depend audio/libebur128:libebur128-*:libebur128-1.2.6 > >@depend audio/libsndfile:libsndfile-*:libsndfile-1.2.2p0 > >@depend devel/dconf:dconf-*:dconf-51.0 > >@depend devel/epoll-shim:epoll-shim-*:epoll-shim-0.0.20240608 > >@depend devel/glib2:glib2-*-!bootstrap:glib2-2.90.1p1 > >@depend math/fftw3,-main,float:fftw3-float-*:fftw3-float-3.3.10p3 > >@depend multimedia/libcamera,-main:libcamera-*:libcamera-0.8.0 > >@depend > >multimedia/pipewire/pipewire,-libs:libpipewire-*:libpipewire-1.6.11p1 > >@depend > >multimedia/pipewire/wireplumber:wireplumber-*:wireplumber-0.5.19p0 > >@depend x11/dbus,-main:dbus-*:dbus-1.16.4v0 > > > >As shown above, pipewire doesn't directly provide the pulseaudio > >backend, only the starting script. > > > >So, I think the first command example should be something like this: > > > > # pkg_add pipewire pulseaudio > > > >The latter of which is actually providing the pulseaudio backend > >used by pipewire-pulse, which is required for pipewire to be able to > >actually spawn a valid pulseaudio subsystem. > > > > Doesn't wine depend on pulseaudio already? > -- > Antoine > Yes, I missed that. Feel free to ignore my nit in that case. -- iz (she/her) > I say mundane things > so the uninteresting > just might get noticed. izder456 (dot) neocities (dot) org

8.0-stable patch correctness fix: lang/crystal, link explicitly against llvm22 rather than llvm19

Hi, I noticed an accidental regression in one of the patches included in the lang/crystal port (which I am a maintainer of). Notably, the current erroneous patch tells the crystal compiler to inject an -L/usr/local/llvm19/lib to link with. This is incorrect in my eyes as this port does not depend on this version of llvm, but rather llvm22. So, in some situations, llvm19 may not be on an end-user's system making this added linker flag bogus practically. So, I adjust that linker path to used in the patch to llvm22, bumping revision of the port as well. I tested briefly with compiling a few smaller crystal programs, as well as the interactive web playground ui provided by the crystal compiler's "play" option. I am aware that the tests currently fail due to resource limit issues. I'll investigate that further later down the line, but I don't see it as important as fixing this linker regression. I also confirmed that exfetch, the only current consumer of this compiler compiles, runs and tests fine with this adjusted crystal compiler patch on my end. Thanks for your time and energy in reviewing this. I hope you all have a wonderful Tuesday. (FYI: in the near-ish future, I *do* plan submitting an updated crystal port for -current as well as ports for some of the more popular crystal ecosystem tools such as the ameba linter and the lattice lsp. However, I want to focus on making sure the lang/crystal port is as optimal as possible first.) -- iz (she/her) > I say mundane things > so the uninteresting > just might get noticed. izder456 (dot) neocities (dot) org

Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/crystal/Makefile,v
diff -u -p -u -p -r1.33 Makefile
--- Makefile	20 Sep 2026 00:00:45 -0000	1.33
+++ Makefile	17 Nov 2026 02:52:10 -0000
@@ -10,6 +10,7 @@ V_MOLINILLO =	0.2.2
 DIST_TUPLE =	github crystal-lang crystal ${V} . \
 		github crystal-lang shards v${V_SHARDS} shards-${V_SHARDS} \
 		github crystal-lang crystal-molinillo v${V_MOLINILLO} shards-${V_SHARDS}/lib/molinillo
+REVISION =	0
 
 COMMENT =	statically typed object oriented language
 DISTNAME =	crystal-${V}
Index: patches/patch-src_compiler_crystal_compiler_cr
===================================================================
RCS file: /cvs/ports/lang/crystal/patches/patch-src_compiler_crystal_compiler_cr,v
diff -u -p -u -p -r1.10 patch-src_compiler_crystal_compiler_cr
--- patches/patch-src_compiler_crystal_compiler_cr	20 Sep 2026 00:00:45 -0000	1.10
+++ patches/patch-src_compiler_crystal_compiler_cr	17 Nov 2026 02:52:10 -0000
@@ -1,4 +1,3 @@
-
 # This patch must also be applied to the source tree on the cross-compiling
 # host when building crystal.o
 Index: src/compiler/crystal/compiler.cr
@@ -9,7 +8,7 @@ Index: src/compiler/crystal/compiler.cr
          link_flags = use_modern_linker(link_flags)
  
 +        if program.has_flag?("openbsd")
-+          link_flags += " -L/usr/local/llvm19/lib"
++          link_flags += " -L/usr/local/llvm22/lib"
 +        end
 +
          {DEFAULT_LINKER, %(#{DEFAULT_LINKER} "${@}" -o #{Process.quote_posix(output_filename)} #{link_flags} #{program.lib_flags(@cross_compile)}), object_names}