Dear maintainer,

I've uploaded an NMU for libprelude (versioned as 5.2.0-5.6). The diff
is attached to this message.

Regards.


-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   
diff -Nru libprelude-5.2.0/debian/changelog libprelude-5.2.0/debian/changelog
--- libprelude-5.2.0/debian/changelog	2024-04-28 01:13:06.000000000 +0200
+++ libprelude-5.2.0/debian/changelog	2024-08-09 02:03:31.000000000 +0200
@@ -1,3 +1,12 @@
+libprelude (5.2.0-5.6) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add patch from Niko Tyni:
+    Fix idmef_class_get_child_attributes() return value.
+    Closes: #1075197
+
+ -- gregor herrmann <gre...@debian.org>  Fri, 09 Aug 2024 02:03:31 +0200
+
 libprelude (5.2.0-5.5) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru libprelude-5.2.0/debian/patches/fix-idmef_class_get_child_attributes-ret.patch libprelude-5.2.0/debian/patches/fix-idmef_class_get_child_attributes-ret.patch
--- libprelude-5.2.0/debian/patches/fix-idmef_class_get_child_attributes-ret.patch	1970-01-01 01:00:00.000000000 +0100
+++ libprelude-5.2.0/debian/patches/fix-idmef_class_get_child_attributes-ret.patch	2024-08-09 02:01:38.000000000 +0200
@@ -0,0 +1,26 @@
+From: Niko Tyni <nt...@debian.org>
+Date: Fri, 2 Aug 2024 20:50:01 +0100
+X-Dgit-Generated: 5.2.0-5.5 d5540bbe1d13013371cc058216cdd3365ce4abe7
+Subject: Fix idmef_class_get_child_attributes() return value
+
+This became a compile error with GCC 14:
+
+  idmef-class.c:164:24: error: returning ‘int’ from a function with return type ‘const char **’ makes pointer from integer without a cast [-Wint-conversion]
+
+Bug-Debian: https://bugs.debian.org/1075197
+
+---
+
+diff --git a/src/idmef-class.c b/src/idmef-class.c
+index 4d93334..c7281f8 100644
+--- a/src/idmef-class.c
++++ b/src/idmef-class.c
+@@ -161,7 +161,7 @@ const char **idmef_class_get_child_attributes(idmef_class_id_t class, idmef_clas
+ 
+         ret = is_child_valid(class, child);
+         if ( ret < 0 )
+-                return ret;
++                return NULL;
+ 
+         return object_data[class].children_list[child].attributes;
+ }
diff -Nru libprelude-5.2.0/debian/patches/series libprelude-5.2.0/debian/patches/series
--- libprelude-5.2.0/debian/patches/series	2024-04-28 01:13:06.000000000 +0200
+++ libprelude-5.2.0/debian/patches/series	2024-08-09 02:01:38.000000000 +0200
@@ -14,3 +14,4 @@
 025-Fix-PyIOBase_Type.patch
 cross.patch
 configure-Fix-va_copy-check-for-Wimplicit-function-declar.patch
+fix-idmef_class_get_child_attributes-ret.patch

Attachment: signature.asc
Description: Digital Signature

Reply via email to