Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libcomps for openSUSE:Factory 
checked in at 2024-07-11 20:29:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libcomps (Old)
 and      /work/SRC/openSUSE:Factory/.libcomps.new.17339 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libcomps"

Thu Jul 11 20:29:30 2024 rev:16 rq:1186682 version:0.1.20

Changes:
--------
--- /work/SRC/openSUSE:Factory/libcomps/libcomps.changes        2023-12-05 
17:02:54.088451499 +0100
+++ /work/SRC/openSUSE:Factory/.libcomps.new.17339/libcomps.changes     
2024-07-11 20:29:51.933567707 +0200
@@ -1,0 +2,6 @@
+Wed Jul 10 14:05:56 UTC 2024 - Martin Jambor <mjam...@suse.com>
+
+- Add libcomps-c99.patch in order to avoid C99 violations which are
+  errors by default with GCC 14.  [boo#1221700]
+
+-------------------------------------------------------------------

New:
----
  libcomps-c99.patch

BETA DEBUG BEGIN:
  New:
- Add libcomps-c99.patch in order to avoid C99 violations which are
  errors by default with GCC 14.  [boo#1221700]
BETA DEBUG END:

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

Other differences:
------------------
++++++ libcomps.spec ++++++
--- /var/tmp/diff_new_pack.5r4QEo/_old  2024-07-11 20:29:52.673595055 +0200
+++ /var/tmp/diff_new_pack.5r4QEo/_new  2024-07-11 20:29:52.677595202 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libcomps
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 # Copyright (c) 2021 Neal Gompa <ngomp...@gmail.com>.
 #
 # All modifications and additions to the file contributed by third parties
@@ -31,6 +31,7 @@
 Group:          Development/Libraries/C and C++
 URL:            https://github.com/rpm-software-management/libcomps
 Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
+Patch0:         libcomps-c99.patch
 
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  check-devel

++++++ libcomps-c99.patch ++++++
>From a71bce7e62990550a57688e51b14eb82d6de196b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= <ama...@redhat.com>
Date: Tue, 2 Jan 2024 08:32:55 +0100
Subject: [PATCH] Fix build: use correct variable for category and env
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Upstream: this is a backport of a commit actually pushed upstream
References: boo#1221700


Fixes:
- error: assignment to ‘COMPS_DocGroup *’ from incompatible pointer type 
‘COMPS_DocCategory *’
- error: assignment to ‘COMPS_DocGroup *’ from incompatible pointer type 
‘COMPS_DocEnv *’

For: https://fedoraproject.org/wiki/Changes/PortingToModernC
(https://fedoraproject.org/wiki/Toolchain/PortingToModernC)
(https://gitlab.com/fweimer-rh/fedora-modernc-logs/-/blob/main/logs/l/libcomps.log)
---
 libcomps/tests/check_parse.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libcomps/tests/check_parse.c b/libcomps/tests/check_parse.c
index 9c2874b..f279708 100644
--- a/libcomps/tests/check_parse.c
+++ b/libcomps/tests/check_parse.c
@@ -585,8 +585,8 @@ START_TEST(test_arch)
     list = comps_doc_categories(doc2);
     ck_assert(list->len == 2);
     for (it = list->first, x=0; it != NULL; it = it->next, x++) {
-        g = (COMPS_DocCategory*)it->comps_obj;
-        str = (COMPS_Str*)comps_doccategory_get_id(g);
+        c = (COMPS_DocCategory*)it->comps_obj;
+        str = (COMPS_Str*)comps_doccategory_get_id(c);
         ck_assert_msg(strcmp(str->val, cats[0][x]) == 0, "%s != %s",
                       str->val, cats[0][x]);
         COMPS_OBJECT_DESTROY(str);
@@ -605,8 +605,8 @@ START_TEST(test_arch)
     list = comps_doc_environments(doc2);
     ck_assert(list->len == 2);
     for (it = list->first, x=0; it != NULL; it = it->next, x++) {
-        g = (COMPS_DocEnv*)it->comps_obj;
-        str = (COMPS_Str*)comps_docenv_get_id(g);
+        e = (COMPS_DocEnv*)it->comps_obj;
+        str = (COMPS_Str*)comps_docenv_get_id(e);
         ck_assert_msg(strcmp(str->val, envs[0][x]) == 0, "%s != %s",
                       str->val, envs[0][x]);
         COMPS_OBJECT_DESTROY(str);

Reply via email to