Bug#1015915: pipewire-pulse leaking memory

2023-10-05 Thread Vuk Mirovic
Package: pipewire
Version: 0.3.65-3
Followup-For: Bug #1015915

Dear Maintainer,

Longstanding memory leak was finally fixed upstream.

Here is the upstream issue for context: 
https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1840

Commits fixing the issue: 
https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/7e2f6757fcc4eefd29cb47d8292714ac8014b9ef
https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/8680c74d1bd83b4969c9305171076b36f56d82fa

I made a patch for 0.3.65-3:

Index: pipewire-0.3.65/meson.build
===
--- pipewire-0.3.65.orig/meson.build
+++ pipewire-0.3.65/meson.build
@@ -401,6 +401,7 @@ check_functions = [
   ['reallocarray', '#include ', ['-D_GNU_SOURCE'], []],
   ['sigabbrev_np', '#include ', ['-D_GNU_SOURCE'], []],
   ['XSetIOErrorExitHandler', '#include ', [], [x11_dep]],
+  ['malloc_trim', '#include ', [], []],
 ]
 
 foreach f : check_functions
Index: pipewire-0.3.65/src/pipewire/impl-node.c
===
--- pipewire-0.3.65.orig/src/pipewire/impl-node.c
+++ pipewire-0.3.65/src/pipewire/impl-node.c
@@ -28,6 +28,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 
@@ -1945,6 +1946,11 @@ void pw_impl_node_destroy(struct pw_impl
 
spa_system_close(context->data_system, node->source.fd);
free(impl);
+
+#ifdef HAVE_MALLOC_TRIM
+   int res = malloc_trim(0);
+   pw_log_debug("malloc_trim(): %d", res);
+#endif
 }
 
 SPA_EXPORT

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
 ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 12.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable'), (10, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-12-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pipewire depends on:
ii  adduser  3.134
ii  init-system-helpers  1.65.2
ii  libpipewire-0.3-modules  0.3.65-3
ii  pipewire-bin 0.3.65-3

pipewire recommends no packages.

pipewire suggests no packages.

-- no debconf information



Bug#1036148: waybar: MPRIS module is not built

2023-05-15 Thread Vuk Mirovic
Package: waybar
Version: 0.9.17-2
Severity: normal

Dear Maintainer,

   * What led up to the situation?
   Running waybar, it shows warning message "module mpris: Unknown module: 
mpris".
   * What was the outcome of this action?
   Waybar can't load mpris module.
   * What outcome did you expect instead?
   Waybar loads mpris module. libplayerctl-dev needs to be added to build 
dependencies.

-- System Information:
Debian Release: 12.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages waybar depends on:
ii  init-system-helpers 1.65.2
ii  libatkmm-1.6-1v52.28.3-1
ii  libc6   2.36-9
ii  libcairomm-1.0-1v5  1.14.4-2
ii  libdate-tz3 3.0.1+ds-5
ii  libdbusmenu-gtk3-4  18.10.20180917~bzr492+repack1-3
ii  libevdev2   1.13.0+dfsg-1
ii  libfmt9 9.1.0+ds1-2
ii  libgcc-s1   12.2.0-14
ii  libglib2.0-02.74.6-2
ii  libglibmm-2.4-1v5   2.66.5-2
ii  libgtk-3-0  3.24.37-2
ii  libgtk-layer-shell0 0.8.0-1
ii  libgtkmm-3.0-1v53.24.7-1
ii  libinput10  1.22.1-1
ii  libjack-jackd2-0 [libjack-0.125]1.9.21~dfsg-2
ii  libjsoncpp251.9.5-4
ii  libmpdclient2   2.20-1+b1
ii  libnl-3-200 3.7.0-0.2+b1
ii  libnl-genl-3-2003.7.0-0.2+b1
ii  libpulse0   16.1+dfsg1-2+b1
ii  libsigc++-2.0-0v5   2.12.0-1
ii  libsndio7.0 1.9.0-0.3+b2
ii  libspdlog1.10 [libspdlog1.10-fmt9]  1:1.10.0+ds-0.4
ii  libstdc++6  12.2.0-14
ii  libudev1252.6-1
ii  libupower-glib3 0.99.20-2
ii  libwayland-client0  1.21.0-1
ii  libwireplumber-0.4-00.4.13-1
ii  libxkbregistry0 1.5.0-1

waybar recommends no packages.

Versions of packages waybar suggests:
ii  fonts-font-awesome  5.0.10+really4.7.0~dfsg-4.1
ii  libayatana-appindicator3-1 [libappindicator3-1  0.5.92-1
]
ii  sway1.7-6

-- no debconf information



Bug#1034735: xdg-desktop-portal-wlr: Screen sharing is broken in Chrome and Chromium based browsers

2023-04-22 Thread Vuk Mirovic
Package: xdg-desktop-portal-wlr
Version: 0.6.0-1
Severity: normal
Tags: upstream

Dear Maintainer,

Screen sharing is completly broken on latest Chrome and Chromium based 
browsers. 
Upstream issue: https://github.com/emersion/xdg-desktop-portal-wlr/issues/266
It is addressed in 0.7.0 and I can confirm it fixed the issue as I've builded 
xdg-desktop-portal-wlr 0.7.0 from source and tested it on Brave.
I hope we can include this release before Full Freeze, so screen sharing is not 
left broken on Sway and wlroots compositors for Debian 12 release.

-- System Information:
Debian Release: 12.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-7-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages xdg-desktop-portal-wlr depends on:
ii  libc6   2.36-9
ii  libdrm2 2.4.114-1+b1
ii  libgbm1 22.3.6-1+deb12u1
ii  libinih155-1
ii  libpipewire-0.3-0   0.3.65-3
ii  libsystemd0 252.6-1
ii  libwayland-client0  1.21.0-1
ii  pipewire0.3.65-3
ii  xdg-desktop-portal  1.16.0-2

xdg-desktop-portal-wlr recommends no packages.

xdg-desktop-portal-wlr suggests no packages.

-- no debconf information