Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package imv for openSUSE:Factory checked in at 2022-03-08 20:31:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/imv (Old) and /work/SRC/openSUSE:Factory/.imv.new.2349 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "imv" Tue Mar 8 20:31:51 2022 rev:6 rq:960137 version:4.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/imv/imv.changes 2021-08-18 08:56:35.418927045 +0200 +++ /work/SRC/openSUSE:Factory/.imv.new.2349/imv.changes 2022-03-11 11:44:26.854821683 +0100 @@ -1,0 +2,7 @@ +Tue Mar 8 04:29:58 UTC 2022 - Soc Virnyl Estela <socvirnyl.est...@gmail.com> + +- Update to 4.3.1: + * Fix segfault when used with latest wlroots + +- Update source URL from github to https://git.sr.ht/~exec64/imv +------------------------------------------------------------------- Old: ---- v4.3.0.tar.gz New: ---- v4.3.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ imv.spec ++++++ --- /var/tmp/diff_new_pack.1Er5lk/_old 2022-03-11 11:44:27.258822136 +0100 +++ /var/tmp/diff_new_pack.1Er5lk/_new 2022-03-11 11:44:27.262822141 +0100 @@ -1,7 +1,7 @@ # # spec file for package imv # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,13 +17,13 @@ Name: imv -Version: 4.3.0 +Version: 4.3.1 Release: 0 Summary: Image viewer for X11/Wayland -License: MIT AND GPL-2.0-or-later +License: GPL-2.0-or-later AND MIT Group: Productivity/Graphics/Viewers -URL: https://github.com/eXeC64/imv -Source: https://github.com/eXeC64/imv/archive/v%{version}.tar.gz +URL: https://git.sr.ht/~exec64/imv +Source: https://git.sr.ht/~exec64/imv/archive/v%{version}.tar.gz BuildRequires: asciidoc BuildRequires: freeimage-devel BuildRequires: libicu-devel @@ -50,7 +50,7 @@ imv is a command line image viewer intended for use with tiling window managers. %prep -%setup -q +%autosetup -n %{name}-v%{version} %build %meson -Dlibnsgif=disabled ++++++ v4.3.0.tar.gz -> v4.3.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imv-4.3.0/CHANGELOG new/imv-v4.3.1/CHANGELOG --- old/imv-4.3.0/CHANGELOG 2021-08-05 23:20:41.000000000 +0200 +++ new/imv-v4.3.1/CHANGELOG 2021-12-14 10:56:12.000000000 +0100 @@ -1,6 +1,10 @@ imv Changelog ============= +v4.3.1 - 2021-12-14 + +* Fix segfault when used with latest wlroots + v4.3.0 - 2021-08-05 * Give freeimage backend preceedence over libjpeg diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imv-4.3.0/meson.build new/imv-v4.3.1/meson.build --- old/imv-4.3.0/meson.build 2021-08-05 23:20:41.000000000 +0200 +++ new/imv-v4.3.1/meson.build 2021-12-14 10:56:12.000000000 +0100 @@ -1,7 +1,7 @@ project( 'imv', ['c'], - version: '4.3.0', + version: '4.3.1', license: 'MIT', meson_version: '>= 0.47', default_options: ['buildtype=debugoptimized', 'c_std=c99'], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imv-4.3.0/src/wl_window.c new/imv-v4.3.1/src/wl_window.c --- old/imv-4.3.0/src/wl_window.c 2021-08-05 23:20:41.000000000 +0200 +++ new/imv-v4.3.1/src/wl_window.c 2021-12-14 10:56:12.000000000 +0100 @@ -18,6 +18,8 @@ #include <GL/gl.h> #include "xdg-shell-client-protocol.h" +#define imv_min(a,b) ((a) > (b) ? (b) : (a)) + struct imv_window { struct wl_display *wl_display; struct wl_registry *wl_registry; @@ -502,16 +504,20 @@ struct imv_window *window = data; if (!strcmp(interface, "wl_compositor")) { + version = imv_min(version, 4); window->wl_compositor = wl_registry_bind(registry, id, &wl_compositor_interface, version); } else if (!strcmp(interface, "xdg_wm_base")) { + version = imv_min(version, 2); window->wl_xdg = wl_registry_bind(registry, id, &xdg_wm_base_interface, version); xdg_wm_base_add_listener(window->wl_xdg, &shell_listener_xdg, window); } else if (!strcmp(interface, "wl_seat")) { + version = imv_min(version, 7); window->wl_seat = wl_registry_bind(registry, id, &wl_seat_interface, version); wl_seat_add_listener(window->wl_seat, &seat_listener, window); } else if (!strcmp(interface, "wl_output")) { + version = imv_min(version, 3); struct output_data *output_data = calloc(1, sizeof *output_data); output_data->wl_output = wl_registry_bind(registry, id, &wl_output_interface, version); output_data->pending_scale = 1;