Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libnfs for openSUSE:Factory checked 
in at 2026-02-11 18:53:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libnfs (Old)
 and      /work/SRC/openSUSE:Factory/.libnfs.new.1670 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libnfs"

Wed Feb 11 18:53:51 2026 rev:11 rq:1332400 version:5.0.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/libnfs/libnfs.changes    2024-03-26 
19:25:50.877816017 +0100
+++ /work/SRC/openSUSE:Factory/.libnfs.new.1670/libnfs.changes  2026-02-11 
18:54:00.194388066 +0100
@@ -1,0 +2,6 @@
+Tue Jan 27 10:13:47 UTC 2026 - Andreas Stieger <[email protected]>
+
+- fix build with glibc 2.43 boo#1257260
+  add libnfs-5.0.3-glibc-2_43.patch
+
+-------------------------------------------------------------------

New:
----
  libnfs-5.0.3-glibc-2_43.patch

----------(New B)----------
  New:- fix build with glibc 2.43 boo#1257260
  add libnfs-5.0.3-glibc-2_43.patch
----------(New E)----------

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

Other differences:
------------------
++++++ libnfs.spec ++++++
--- /var/tmp/diff_new_pack.qmiFre/_old  2026-02-11 18:54:01.310435069 +0100
+++ /var/tmp/diff_new_pack.qmiFre/_new  2026-02-11 18:54:01.314435238 +0100
@@ -3,6 +3,7 @@
 #
 # Copyright (c) 2022 SUSE LLC
 # Copyright (c) 2015 Bjørn Lie, Bryne, Norway.
+# Copyright (c) 2026 Andreas Stieger <[email protected]>
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +27,7 @@
 Group:          Productivity/Networking/NFS
 URL:            https://github.com/sahlberg/libnfs
 Source0:        %{url}/archive/libnfs-%{version}.tar.gz
+Patch0:         libnfs-5.0.3-glibc-2_43.patch
 BuildRequires:  autoconf
 BuildRequires:  libtool
 BuildRequires:  pkgconfig
@@ -84,20 +86,21 @@
 %make_install
 find %{buildroot} -type f -name "*.la" -delete -print
 
-%post -n libnfs%{sover} -p /sbin/ldconfig
-%postun -n libnfs%{sover} -p /sbin/ldconfig
+%ldconfig_scriptlets -n libnfs%{sover}
 
 %files -n libnfs%{sover}
 %license COPYING LICENCE-LGPL-2.1.txt LICENCE-BSD.txt LICENCE-GPL-3.txt
 %doc README
-%{_libdir}/libnfs.so.*
+%{_libdir}/libnfs.so.%{sover}{,.*}
 
 %files devel
+%license COPYING LICENCE-LGPL-2.1.txt LICENCE-BSD.txt LICENCE-GPL-3.txt
 %{_libdir}/libnfs.so
 %{_includedir}/nfsc/
 %{_libdir}/pkgconfig/libnfs.pc
 
 %files -n utils-libnfs
+%license COPYING LICENCE-LGPL-2.1.txt LICENCE-BSD.txt LICENCE-GPL-3.txt
 %{_bindir}/nfs-*
 %{_mandir}/man1/nfs-*.1%{?ext_man}
 

++++++ libnfs-5.0.3-glibc-2_43.patch ++++++
Taken from https://github.com/sahlberg/libnfs/pull/576
https://github.com/sahlberg/libnfs/pull/576/commits/89a795fee97a3da348c28dbd58500100a13dcec0
https://github.com/sahlberg/libnfs/pull/576/commits/6a06cb6dba0065705179329729cca2f95a842a63

Index: libnfs-libnfs-5.0.3/lib/libnfs.c
===================================================================
--- libnfs-libnfs-5.0.3.orig/lib/libnfs.c
+++ libnfs-libnfs-5.0.3/lib/libnfs.c
@@ -336,9 +336,8 @@ nfs_set_context_args(struct nfs_context
        } else if (!strcmp(arg, "mountport")) {
                nfs_set_mountport(nfs, atoi(val));
        } else if (!strcmp(arg, "readdir-buffer")) {
-               char *strp = strchr(val, ',');
+               const char *strp = strchr(val, ',');
                if (strp) {
-                       *strp = 0;
                        strp++;
                        nfs_set_readdir_max_buffer_size(nfs, atoi(val), 
atoi(strp));
                } else {
Index: libnfs-libnfs-5.0.3/lib/nfs_v3.c
===================================================================
--- libnfs-libnfs-5.0.3.orig/lib/nfs_v3.c
+++ libnfs-libnfs-5.0.3/lib/nfs_v3.c
@@ -3218,7 +3218,7 @@ int
 nfs3_mknod_async(struct nfs_context *nfs, const char *path, int mode, int dev,
                  nfs_cb cb, void *private_data)
 {
-       char *ptr;
+       const char *ptr;
        struct mknod_cb_data *cb_data;
 
        cb_data = malloc(sizeof(struct mknod_cb_data));
@@ -3236,8 +3236,8 @@ nfs3_mknod_async(struct nfs_context *nfs
                                       "buffer for mknod path");
                         return -1;
                 }
-                ptr = strrchr(cb_data->path, '/');
-                *ptr = 0;
+                char *ptr2 = strrchr(cb_data->path, '/');
+                *ptr2 = 0;
         } else {
                 cb_data->path = malloc(strlen(path) + 2);
                 if (cb_data->path == NULL) {
@@ -3327,7 +3327,7 @@ nfs3_unlink_async(struct nfs_context *nf
                   void *private_data)
 {
        char *new_path;
-       char *ptr;
+       const char *ptr;
 
         ptr = strrchr(path, '/');
         if (ptr) {
@@ -3337,8 +3337,8 @@ nfs3_unlink_async(struct nfs_context *nf
                                       "buffer for unlink path");
                         return -1;
                 }
-                ptr = strrchr(new_path, '/');
-                *ptr = 0;
+                char *ptr2 = strrchr(new_path, '/');
+                *ptr2 = 0;
         } else {
                 new_path = malloc(strlen(path) + 2);
                 if (new_path == NULL) {
@@ -3693,7 +3693,7 @@ nfs3_rmdir_async(struct nfs_context *nfs
                  void *private_data)
 {
        char *new_path;
-       char *ptr;
+       const char *ptr;
 
         ptr = strrchr(path, '/');
         if (ptr) {
@@ -3703,8 +3703,8 @@ nfs3_rmdir_async(struct nfs_context *nfs
                                       "buffer for rmdir path");
                         return -1;
                 }
-                ptr = strrchr(new_path, '/');
-                *ptr = 0;
+                char *ptr2 = strrchr(new_path, '/');
+                *ptr2 = 0;
         } else {
                 new_path = malloc(strlen(path) + 2);
                 if (new_path == NULL) {
@@ -3795,7 +3795,7 @@ nfs3_mkdir2_async(struct nfs_context *nf
                  nfs_cb cb, void *private_data)
 {
        char *new_path;
-       char *ptr;
+       const char *ptr;
 
         ptr = strrchr(path, '/');
         if (ptr) {
@@ -3805,8 +3805,8 @@ nfs3_mkdir2_async(struct nfs_context *nf
                                       "buffer for mkdir path");
                         return -1;
                 }
-                ptr = strrchr(new_path, '/');
-                *ptr = 0;
+                char *ptr2 = strrchr(new_path, '/');
+                *ptr2 = 0;
         } else {
                 new_path = malloc(strlen(path) + 2);
                 if (new_path == NULL) {

Reply via email to