Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package error-codes for openSUSE:Factory 
checked in at 2026-03-25 21:21:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/error-codes (Old)
 and      /work/SRC/openSUSE:Factory/.error-codes.new.8177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "error-codes"

Wed Mar 25 21:21:20 2026 rev:4 rq:1342470 version:0.4.0+git20260325.4cbfc70

Changes:
--------
--- /work/SRC/openSUSE:Factory/error-codes/error-codes.changes  2026-02-05 
18:01:27.682278053 +0100
+++ /work/SRC/openSUSE:Factory/.error-codes.new.8177/error-codes.changes        
2026-03-27 06:38:41.099216418 +0100
@@ -1,0 +2,8 @@
+Wed Mar 25 12:50:03 UTC 2026 - Thorsten Kukuk <[email protected]>
+
+- Update to version 0.4.0+git20260325.4cbfc70:
+  * Release version 0.4.0
+  * Add support for libcurl
+  * Fix name of gen_*_data_h output files
+
+-------------------------------------------------------------------

Old:
----
  error-codes-0.3.0+git20260204.54278a1.tar.xz

New:
----
  error-codes-0.4.0+git20260325.4cbfc70.tar.xz

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

Other differences:
------------------
++++++ error-codes.spec ++++++
--- /var/tmp/diff_new_pack.1WiQGd/_old  2026-03-27 06:38:41.583236367 +0100
+++ /var/tmp/diff_new_pack.1WiQGd/_new  2026-03-27 06:38:41.583236367 +0100
@@ -16,7 +16,7 @@
 #
 
 Name:           error-codes
-Version:        0.3.0+git20260204.54278a1
+Version:        0.4.0+git20260325.4cbfc70
 Release:        0
 Summary:        Lookup error codes and their description
 License:        GPL-2.0-or-later
@@ -26,6 +26,7 @@
 BuildRequires:  meson
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(pam)
+BuildRequires:  pkgconfig(libcurl)
 BuildRequires:  pkgconfig(libeconf)
 
 %description

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.1WiQGd/_old  2026-03-27 06:38:41.627238181 +0100
+++ /var/tmp/diff_new_pack.1WiQGd/_new  2026-03-27 06:38:41.631238346 +0100
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param 
name="url">https://github.com/thkukuk/error-codes.git</param>
-<param 
name="changesrevision">54278a1b0fd4fc53a3292ce6798e46c574fdea62</param></service></servicedata>
+<param 
name="changesrevision">4cbfc70136bec621ff523778cd531155e6f45aa4</param></service></servicedata>
 (No newline at EOF)
 

++++++ error-codes-0.3.0+git20260204.54278a1.tar.xz -> 
error-codes-0.4.0+git20260325.4cbfc70.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/error-codes-0.3.0+git20260204.54278a1/NEWS 
new/error-codes-0.4.0+git20260325.4cbfc70/NEWS
--- old/error-codes-0.3.0+git20260204.54278a1/NEWS      2026-02-04 
23:16:15.000000000 +0100
+++ new/error-codes-0.4.0+git20260325.4cbfc70/NEWS      2026-03-25 
13:49:21.000000000 +0100
@@ -4,6 +4,9 @@
 
 Please enter bug reports at https://github.com/thkukuk/error-codes/issues
 
+Version 0.4.0
+* Add support for libcurl
+
 Version 0.3.0
 * Fix minor bugs
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/error-codes-0.3.0+git20260204.54278a1/man/error-codes.1.xml 
new/error-codes-0.4.0+git20260325.4cbfc70/man/error-codes.1.xml
--- old/error-codes-0.3.0+git20260204.54278a1/man/error-codes.1.xml     
2026-02-04 23:16:15.000000000 +0100
+++ new/error-codes-0.4.0+git20260325.4cbfc70/man/error-codes.1.xml     
2026-03-25 13:49:21.000000000 +0100
@@ -36,8 +36,9 @@
     <title>Description</title>
     <para>
       This command can lookup error codes for <command>errno</command>,
-      <command>libeconf</command> and <command>pam</command> and display
-      the name of the error, the value and the description.
+      <command>libcurl</command>, <command>libeconf</command> and
+      <command>pam</command> and display the name of the error, the value
+      and the description.
     </para>
   </refsect1>
 
@@ -48,6 +49,12 @@
     </para>
     <variablelist>
       <varlistentry>
+        <term><command>curl</command></term>
+        <listitem>
+          <para>Lookup error codes for libcurl.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
         <term><command>econf</command></term>
         <listitem>
           <para>Lookup error codes for libeconf.</para>
@@ -71,7 +78,7 @@
   <refsect1>
     <title>Options</title>
     <para>
-      Options for <command>econf</command>, <command>errno</command> and 
<command>pam</command>:
+      Options for <command>curl</command>, <command>econf</command>, 
<command>errno</command> and <command>pam</command>:
     </para>
     <variablelist>
       <varlistentry>
@@ -138,6 +145,9 @@
         <refentrytitle>errno</refentrytitle><manvolnum>3</manvolnum>
       </citerefentry>,
       <citerefentry>
+        <refentrytitle>libcurl-errors</refentrytitle><manvolnum>3</manvolnum>
+      </citerefentry>,
+      <citerefentry>
         <refentrytitle>libeconf</refentrytitle><manvolnum>3</manvolnum>
       </citerefentry>,
       <citerefentry>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/error-codes-0.3.0+git20260204.54278a1/meson.build 
new/error-codes-0.4.0+git20260325.4cbfc70/meson.build
--- old/error-codes-0.3.0+git20260204.54278a1/meson.build       2026-02-04 
23:16:15.000000000 +0100
+++ new/error-codes-0.4.0+git20260325.4cbfc70/meson.build       2026-03-25 
13:49:21.000000000 +0100
@@ -12,7 +12,7 @@
                   'b_lto=true',
                  'warning_level=2'],
   license : ['GPL-2.0-or-later'],
-  version : '0.3.0',
+  version : '0.4.0',
 )
 
 conf = configuration_data()
@@ -52,12 +52,21 @@
 
 configure_file(output: 'config.h', configuration: conf)
 
+libcurl = dependency('libcurl', required: true)
 libeconf = dependency('libeconf', required: true)
 libpam = dependency('pam', required: true)
 
 env = environment()
 env.set('CC', ' '.join(cc.cmd_array()))
 
+curl_data_h = custom_target(
+  'generate_curl_data_h',
+  output : 'curl_data.h',
+  input : 'scripts/gen_curl_data_h.sh',
+  command : [find_program('sh'), '@INPUT@', '@OUTPUT@'],
+  env : env
+)
+
 errno_data_h = custom_target(
   'generate_errno_data_h',
   output : 'errno_data.h',
@@ -83,9 +92,9 @@
 )
 
 executable('error-codes',
-           sources : ['src/error-codes.c', errno_data_h, econf_data_h, 
pam_data_h],
+           sources : ['src/error-codes.c', curl_data_h, errno_data_h, 
econf_data_h, pam_data_h],
            include_directories : inc,
-           dependencies : [libpam, libeconf],
+           dependencies : [libpam, libeconf, libcurl],
            install : true,
           install_dir : bindir)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/error-codes-0.3.0+git20260204.54278a1/scripts/gen_curl_data_h.sh 
new/error-codes-0.4.0+git20260325.4cbfc70/scripts/gen_curl_data_h.sh
--- old/error-codes-0.3.0+git20260204.54278a1/scripts/gen_curl_data_h.sh        
1970-01-01 01:00:00.000000000 +0100
+++ new/error-codes-0.4.0+git20260325.4cbfc70/scripts/gen_curl_data_h.sh        
2026-03-25 13:49:21.000000000 +0100
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+CC=${CC:-cc}
+OUTPUT=${1:-curl_data.h}
+TESTPROG="dump-curl.c"
+
+cat << 'EOF' > "${OUTPUT}"
+static const struct entry curl_data[] = {
+EOF
+
+echo '#include <curl/curl.h>' > "${TESTPROG}"
+$CC -E -dD  "${TESTPROG}" | sed -e 's|,||g' | awk '/^  CURLE_/ { printf "  
{\"%s\", %s},\n", $1, $1 }' >> "${OUTPUT}"
+
+cat << 'EOF' >> "${OUTPUT}"
+  { NULL, -1 }
+};
+EOF
+
+rm -f "${TESTPROG}"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/error-codes-0.3.0+git20260204.54278a1/scripts/gen_econf_data_h.sh 
new/error-codes-0.4.0+git20260325.4cbfc70/scripts/gen_econf_data_h.sh
--- old/error-codes-0.3.0+git20260204.54278a1/scripts/gen_econf_data_h.sh       
2026-02-04 23:16:15.000000000 +0100
+++ new/error-codes-0.4.0+git20260325.4cbfc70/scripts/gen_econf_data_h.sh       
2026-03-25 13:49:21.000000000 +0100
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 CC=${CC:-cc}
-OUTPUT=${1:-errno_data.h}
+OUTPUT=${1:-econf_data.h}
 TESTPROG="dump-econf.c"
 
 cat << 'EOF' > "${OUTPUT}"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/error-codes-0.3.0+git20260204.54278a1/scripts/gen_pam_data_h.sh 
new/error-codes-0.4.0+git20260325.4cbfc70/scripts/gen_pam_data_h.sh
--- old/error-codes-0.3.0+git20260204.54278a1/scripts/gen_pam_data_h.sh 
2026-02-04 23:16:15.000000000 +0100
+++ new/error-codes-0.4.0+git20260325.4cbfc70/scripts/gen_pam_data_h.sh 
2026-03-25 13:49:21.000000000 +0100
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 CC=${CC:-cc}
-OUTPUT=${1:-errno_data.h}
+OUTPUT=${1:-pam_data.h}
 TESTPROG="dump-pam.c"
 
 cat << 'EOF' > "${OUTPUT}"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/error-codes-0.3.0+git20260204.54278a1/src/error-codes.c 
new/error-codes-0.4.0+git20260325.4cbfc70/src/error-codes.c
--- old/error-codes-0.3.0+git20260204.54278a1/src/error-codes.c 2026-02-04 
23:16:15.000000000 +0100
+++ new/error-codes-0.4.0+git20260325.4cbfc70/src/error-codes.c 2026-03-25 
13:49:21.000000000 +0100
@@ -10,6 +10,7 @@
 
 typedef enum {
   NONE = -1,
+  LIBCURL,
   ECONF,
   ERRNO,
   PAM
@@ -20,6 +21,9 @@
   int code;
 };
 
+#include <curl/curl.h>
+#include "curl_data.h"
+
 #include <errno.h>
 #include "errno_data.h"
 
@@ -43,9 +47,9 @@
   fputs("error-codes - lookup error codes and their description.\n\n", stdout);
   print_usage(stdout);
 
-  fputs("Commands: econf, errno, pam\n\n", stdout);
+  fputs("Commands: curl, econf, errno, pam\n\n", stdout);
 
-  fputs("Options for econf, errno and pam:\n", stdout);
+  fputs("Options for curl, econf, errno and pam:\n", stdout);
   fputs("  <name-or-code>                    Print information about error 
name or code\n", stdout);
   fputs("  -l, --list                        List all error names, values and 
descriptions\n", stdout);
   fputs("  -s, --search <keyword...>         Search keywords in 
description\n", stdout);
@@ -67,6 +71,9 @@
 {
   switch (mode)
     {
+    case LIBCURL:
+      return curl_easy_strerror((CURLcode)code);
+      break;
     case ECONF:
       return econf_errString((econf_err)code);
       break;
@@ -187,8 +194,12 @@
       print_usage(stderr);
       exit(EINVAL);
     }
-
-  if (streq(argv[1], "econf"))
+  else if (streq(argv[1], "curl"))
+    {
+      mode = LIBCURL;
+      list = curl_data;
+    }
+  else if (streq(argv[1], "econf"))
     {
       mode = ECONF;
       list = econf_data;

Reply via email to