Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libliftoff for openSUSE:Factory checked in at 2023-03-07 16:49:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libliftoff (Old) and /work/SRC/openSUSE:Factory/.libliftoff.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libliftoff" Tue Mar 7 16:49:53 2023 rev:3 rq:1069775 version:0.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/libliftoff/libliftoff.changes 2023-02-25 19:55:27.483394651 +0100 +++ /work/SRC/openSUSE:Factory/.libliftoff.new.31432/libliftoff.changes 2023-03-07 16:50:31.153642952 +0100 @@ -1,0 +2,8 @@ +Tue Mar 7 01:50:57 UTC 2023 - llyyr <llyyr.pub...@gmail.com> + +- Update to 0.4.1 + * plane: add NULL check to liftoff_plane_destroy() + * Fix -Wsign-conversion on 32-bit +- drop fix-sign-conversion-32bit.patch as it's included in release + +------------------------------------------------------------------- Old: ---- fix-sign-conversion-32bit.patch libliftoff-v0.4.0.tar.gz New: ---- libliftoff-v0.4.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libliftoff.spec ++++++ --- /var/tmp/diff_new_pack.3VLNbL/_old 2023-03-07 16:50:31.901646888 +0100 +++ /var/tmp/diff_new_pack.3VLNbL/_new 2023-03-07 16:50:31.905646909 +0100 @@ -19,14 +19,13 @@ %define libname libliftoff0 Name: libliftoff -Version: 0.4.0 +Version: 0.4.1 Release: 0 Summary: KMS plane library Group: Development/Libraries/C and C++ License: MIT URL: https://gitlab.freedesktop.org/emersion/libliftoff Source0: https://gitlab.freedesktop.org/emersion/libliftoff/-/archive/v%{version}/libliftoff-v%{version}.tar.gz -Patch0: fix-sign-conversion-32bit.patch BuildRequires: meson >= 0.52.0 BuildRequires: pkgconfig(libdrm) >= 2.4.108 ++++++ libliftoff-v0.4.0.tar.gz -> libliftoff-v0.4.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libliftoff-v0.4.0/example/compositor.c new/libliftoff-v0.4.1/example/compositor.c --- old/libliftoff-v0.4.0/example/compositor.c 2023-02-20 22:04:22.000000000 +0100 +++ new/libliftoff-v0.4.1/example/compositor.c 2023-03-05 19:36:15.000000000 +0100 @@ -182,7 +182,7 @@ layers[0] = add_layer(drm_fd, output, 0, 0, crtc->mode.hdisplay, crtc->mode.vdisplay, false, true, &fbs[0]); for (i = 1; i < layers_len; i++) { - layers[i] = add_layer(drm_fd, output, 100 * i, 100 * i, + layers[i] = add_layer(drm_fd, output, 100 * (int)i, 100 * (int)i, 256, 256, i % 2, false, &fbs[i]); } @@ -205,7 +205,7 @@ for (i = 1; i < layers_len; i++) { if (liftoff_layer_needs_composition(layers[i])) { composite(drm_fd, &composition_fb, &fbs[i], - i * 100, i * 100); + (int)i * 100, (int)i * 100); } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libliftoff-v0.4.0/example/dynamic.c new/libliftoff-v0.4.1/example/dynamic.c --- old/libliftoff-v0.4.0/example/dynamic.c 2023-02-20 22:04:22.000000000 +0100 +++ new/libliftoff-v0.4.1/example/dynamic.c 2023-03-05 19:36:15.000000000 +0100 @@ -199,8 +199,8 @@ crtc->mode.vdisplay, false); for (i = 1; i < LAYERS_LEN; i++) { init_layer(drm_fd, &layers[i], output, 100, 100, i % 2); - layers[i].x = 100 * i; - layers[i].y = 100 * i; + layers[i].x = 100 * (int)i; + layers[i].y = 100 * (int)i; } for (i = 0; i < LAYERS_LEN; i++) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libliftoff-v0.4.0/example/multi-output.c new/libliftoff-v0.4.1/example/multi-output.c --- old/libliftoff-v0.4.0/example/multi-output.c 2023-02-20 22:04:22.000000000 +0100 +++ new/libliftoff-v0.4.1/example/multi-output.c 2023-03-05 19:36:15.000000000 +0100 @@ -145,7 +145,7 @@ crtc->mode.vdisplay, false); for (j = 1; j < LAYERS_PER_OUTPUT; j++) { layers[layers_len++] = add_layer(drm_fd, output, - 100 * j, 100 * j, + 100 * (int)j, 100 * (int)j, 256, 256, j % 2); } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libliftoff-v0.4.0/example/simple.c new/libliftoff-v0.4.1/example/simple.c --- old/libliftoff-v0.4.0/example/simple.c 2023-02-20 22:04:22.000000000 +0100 +++ new/libliftoff-v0.4.1/example/simple.c 2023-03-05 19:36:15.000000000 +0100 @@ -120,7 +120,7 @@ layers[0] = add_layer(drm_fd, output, 0, 0, crtc->mode.hdisplay, crtc->mode.vdisplay, false); for (i = 1; i < LAYERS_LEN; i++) { - layers[i] = add_layer(drm_fd, output, 100 * i, 100 * i, + layers[i] = add_layer(drm_fd, output, 100 * (int)i, 100 * (int)i, 256, 256, i % 2); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libliftoff-v0.4.0/meson.build new/libliftoff-v0.4.1/meson.build --- old/libliftoff-v0.4.0/meson.build 2023-02-20 22:04:22.000000000 +0100 +++ new/libliftoff-v0.4.1/meson.build 2023-03-05 19:36:15.000000000 +0100 @@ -1,7 +1,7 @@ project( 'libliftoff', 'c', - version: '0.4.0', + version: '0.4.1', license: 'MIT', meson_version: '>=0.52.0', default_options: [ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libliftoff-v0.4.0/plane.c new/libliftoff-v0.4.1/plane.c --- old/libliftoff-v0.4.0/plane.c 2023-02-20 22:04:22.000000000 +0100 +++ new/libliftoff-v0.4.1/plane.c 2023-03-05 19:36:15.000000000 +0100 @@ -148,6 +148,10 @@ { size_t i; + if (plane == NULL) { + return; + } + if (plane->layer != NULL) { plane->layer->plane = NULL; } @@ -331,11 +335,11 @@ return false; } - if (format_index < modifiers[modifier_index].offset || - format_index >= modifiers[modifier_index].offset + 64) { + if ((size_t)format_index < modifiers[modifier_index].offset || + (size_t)format_index >= modifiers[modifier_index].offset + 64) { return false; } - format_shift = (int)(format_index - modifiers[modifier_index].offset); + format_shift = format_index - (int)modifiers[modifier_index].offset; return (modifiers[modifier_index].formats & ((uint64_t)1 << format_shift)) != 0; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libliftoff-v0.4.0/test/bench.c new/libliftoff-v0.4.1/test/bench.c --- old/libliftoff-v0.4.0/test/bench.c 2023-02-20 22:04:22.000000000 +0100 +++ new/libliftoff-v0.4.1/test/bench.c 2023-03-05 19:36:15.000000000 +0100 @@ -12,7 +12,7 @@ #define MAX_LAYERS 128 static struct liftoff_layer * -add_layer(struct liftoff_output *output, int x, int y, int width, int height) +add_layer(struct liftoff_output *output, int x, int y, uint32_t width, uint32_t height) { uint32_t fb_id; struct liftoff_layer *layer; @@ -85,7 +85,7 @@ for (i = 0; i < layers_len; i++) { /* Planes don't intersect, so the library can arrange them in * any order. Testing all combinations takes more time. */ - layers[i] = add_layer(output, i * 100, i * 100, 100, 100); + layers[i] = add_layer(output, (int)i * 100, (int)i * 100, 100, 100); for (j = 0; j < planes_len; j++) { if (j == 1) { /* Make the lowest plane above the primary plane