Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libxcvt for openSUSE:Factory checked 
in at 2024-12-16 19:08:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libxcvt (Old)
 and      /work/SRC/openSUSE:Factory/.libxcvt.new.29675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libxcvt"

Mon Dec 16 19:08:59 2024 rev:4 rq:1230955 version:0.1.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/libxcvt/libxcvt.changes  2022-07-21 
11:32:43.830913841 +0200
+++ /work/SRC/openSUSE:Factory/.libxcvt.new.29675/libxcvt.changes       
2024-12-16 19:09:05.654441646 +0100
@@ -1,0 +2,11 @@
+Sat Dec 14 04:02:00 UTC 2024 - Stefan Dirsch <sndir...@suse.com>
+
+- Update to version 0.1.3
+  * cvt: fix -Wmissing-prototypes warning for cvt_is_standard
+  * ci: Update CI and enable static analysis
+  * README: remove double dollar sign
+  * Fix hsync_start computation
+  * Fix too-small back porch at very low resolutions
+  * Rename constant to CVT_MIN_V_PORCH_RND
+
+-------------------------------------------------------------------

Old:
----
  libxcvt-0.1.2.tar.xz

New:
----
  libxcvt-0.1.3.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libxcvt.spec ++++++
--- /var/tmp/diff_new_pack.KkSUuD/_old  2024-12-16 19:09:06.274467390 +0100
+++ /var/tmp/diff_new_pack.KkSUuD/_new  2024-12-16 19:09:06.278467556 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libxcvt
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 Name:           libxcvt
 %define lname   libxcvt0
-Version:        0.1.2
+Version:        0.1.3
 Release:        0
 Summary:        CVT standard timing modeline generator
 License:        MIT

++++++ libxcvt-0.1.2.tar.xz -> libxcvt-0.1.3.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libxcvt-0.1.2/.gitlab-ci/ci.template 
new/libxcvt-0.1.3/.gitlab-ci/ci.template
--- old/libxcvt-0.1.2/.gitlab-ci/ci.template    2022-07-18 09:23:34.000000000 
+0200
+++ new/libxcvt-0.1.3/.gitlab-ci/ci.template    2024-12-14 02:42:24.000000000 
+0100
@@ -22,11 +22,13 @@
     {% for d in distributions %}
       - '/templates/{{d.name}}.yml'
     {% endfor %}
+  - template: Security/SAST.gitlab-ci.yml
 
 stages:
   - sanity check
   - prep
   - build
+  - test
 
 variables:
   FDO_UPSTREAM_REPO: xorg/lib/libxcvt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libxcvt-0.1.2/.gitlab-ci/config.yml 
new/libxcvt-0.1.3/.gitlab-ci/config.yml
--- old/libxcvt-0.1.2/.gitlab-ci/config.yml     2022-07-18 09:23:34.000000000 
+0200
+++ new/libxcvt-0.1.3/.gitlab-ci/config.yml     2024-12-14 02:42:24.000000000 
+0100
@@ -1,4 +1,4 @@
-.default_tag: &default_tag '2021-07-26.0'
+.default_tag: &default_tag '2022-08-03.0'
 
 distributions:
   - name: fedora
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libxcvt-0.1.2/.gitlab-ci.yml 
new/libxcvt-0.1.3/.gitlab-ci.yml
--- old/libxcvt-0.1.2/.gitlab-ci.yml    2022-07-18 09:23:34.000000000 +0200
+++ new/libxcvt-0.1.3/.gitlab-ci.yml    2024-12-14 02:42:24.000000000 +0100
@@ -18,11 +18,13 @@
     file:
       - '/templates/ci-fairy.yml'
       - '/templates/fedora.yml'
+  - template: Security/SAST.gitlab-ci.yml
 
 stages:
   - sanity check
   - prep
   - build
+  - test
 
 variables:
   FDO_UPSTREAM_REPO: xorg/lib/libxcvt
@@ -91,7 +93,7 @@
 .fedora.34:
   variables:
     FDO_DISTRIBUTION_VERSION: '34'
-    FDO_DISTRIBUTION_TAG: '2021-07-26.0'
+    FDO_DISTRIBUTION_TAG: '2022-08-03.0'
 
 prep-fedora-34:
   extends:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libxcvt-0.1.2/README.md new/libxcvt-0.1.3/README.md
--- old/libxcvt-0.1.2/README.md 2022-07-18 09:23:34.000000000 +0200
+++ new/libxcvt-0.1.3/README.md 2024-12-14 02:42:24.000000000 +0100
@@ -11,7 +11,7 @@
 An example output is:
 
 ```
-$ $ cvt --verbose 1920 1200 75
+$ cvt --verbose 1920 1200 75
 # 1920x1200 74.93 Hz (CVT 2.30MA) hsync: 94.04 kHz; pclk: 245.25 MHz
 Modeline "1920x1200_75.00"  245.25  1920 2064 2264 2608  1200 1203 1209 1255 
-hsync +vsync
 ```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libxcvt-0.1.2/cvt/cvt.c new/libxcvt-0.1.3/cvt/cvt.c
--- old/libxcvt-0.1.2/cvt/cvt.c 2022-07-18 09:23:34.000000000 +0200
+++ new/libxcvt-0.1.3/cvt/cvt.c 2024-12-14 02:42:24.000000000 +0100
@@ -30,7 +30,7 @@
 
 #include <libxcvt/libxcvt.h>
 
-bool
+static bool
 cvt_is_standard(int hdisplay, int vdisplay, float vrefresh, bool reduced, bool 
verbose)
 {
     bool is_cvt = true;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libxcvt-0.1.2/lib/libxcvt.c 
new/libxcvt-0.1.3/lib/libxcvt.c
--- old/libxcvt-0.1.2/lib/libxcvt.c     2022-07-18 09:23:34.000000000 +0200
+++ new/libxcvt-0.1.3/lib/libxcvt.c     2024-12-14 02:42:24.000000000 +0100
@@ -79,8 +79,8 @@
     /* 2) character cell horizontal granularity (pixels) - default 8 */
 #define CVT_H_GRANULARITY 8
 
-    /* 4) Minimum vertical porch (lines) - default 3 */
-#define CVT_MIN_V_PORCH 3
+    /* 4) Minimum vertical front porch (lines) - default 3 */
+#define CVT_MIN_V_PORCH_RND 3
 
     /* 4) Minimum number of vertical back porch lines - default 6 */
 #define CVT_MIN_V_BPORCH 6
@@ -161,16 +161,16 @@
 
         float hblank_percentage;
         int vsync_and_back_porch, vback_porch;
-        int hblank;
+        int hblank, hsync_w;
 
         /* 8. Estimated Horizontal period */
         hperiod = ((float) (1000000.0 / vfield_rate - CVT_MIN_VSYNC_BP)) /
-            (vdisplay_rnd + 2 * vmargin + CVT_MIN_V_PORCH + interlace);
+            (vdisplay_rnd + 2 * vmargin + CVT_MIN_V_PORCH_RND + interlace);
 
         /* 9. Find number of lines in sync + backporch */
         if (((int) (CVT_MIN_VSYNC_BP / hperiod) + 1) <
-            (vsync + CVT_MIN_V_PORCH))
-            vsync_and_back_porch = vsync + CVT_MIN_V_PORCH;
+            (vsync + CVT_MIN_V_BPORCH))
+            vsync_and_back_porch = vsync + CVT_MIN_V_BPORCH;
         else
             vsync_and_back_porch = (int) (CVT_MIN_VSYNC_BP / hperiod) + 1;
 
@@ -181,7 +181,7 @@
         /* 11. Find total number of lines in vertical field */
         mode_info->vtotal =
             vdisplay_rnd + 2 * vmargin + vsync_and_back_porch + interlace +
-            CVT_MIN_V_PORCH;
+            CVT_MIN_V_PORCH_RND;
 
         /* 5) Definition of Horizontal blanking time limitation */
         /* Gradient (%/kHz) - default 600 */
@@ -216,13 +216,12 @@
         /* Fill in HSync values */
         mode_info->hsync_end = mode_info->hdisplay + hblank / 2;
 
-        mode_info->hsync_start = mode_info->hsync_end -
-            (mode_info->htotal * CVT_HSYNC_PERCENTAGE) / 100;
-        mode_info->hsync_start += CVT_H_GRANULARITY -
-            mode_info->hsync_start % CVT_H_GRANULARITY;
+        hsync_w = (mode_info->htotal * CVT_HSYNC_PERCENTAGE) / 100;
+        hsync_w -= hsync_w % CVT_H_GRANULARITY;
+        mode_info->hsync_start = mode_info->hsync_end - hsync_w;
 
         /* Fill in vsync values */
-        mode_info->vsync_start = mode_info->vdisplay + CVT_MIN_V_PORCH;
+        mode_info->vsync_start = mode_info->vdisplay + CVT_MIN_V_PORCH_RND;
         mode_info->vsync_end = mode_info->vsync_start + vsync;
 
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libxcvt-0.1.2/meson.build 
new/libxcvt-0.1.3/meson.build
--- old/libxcvt-0.1.2/meson.build       2022-07-18 09:23:34.000000000 +0200
+++ new/libxcvt-0.1.3/meson.build       2024-12-14 02:42:24.000000000 +0100
@@ -1,5 +1,5 @@
 project('libxcvt', 'c',
-        version: '0.1.2',
+        version: '0.1.3',
         meson_version: '>= 0.40.0',
         default_options: ['warning_level=1',
                           'buildtype=debugoptimized'])

Reply via email to