Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lsof for openSUSE:Factory checked in 
at 2022-11-23 09:47:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lsof (Old)
 and      /work/SRC/openSUSE:Factory/.lsof.new.1597 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lsof"

Wed Nov 23 09:47:39 2022 rev:44 rq:1037356 version:4.96.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/lsof/lsof.changes        2022-11-01 
13:41:22.839517025 +0100
+++ /work/SRC/openSUSE:Factory/.lsof.new.1597/lsof.changes      2022-11-23 
09:47:51.162962037 +0100
@@ -1,0 +2,6 @@
+Tue Nov 22 14:08:48 UTC 2022 - Andreas Schwab <sch...@suse.de>
+
+- format.patch: Use correct scanf/printf format for uint64_t
+- Build with %{optflags}
+
+-------------------------------------------------------------------

New:
----
  format.patch

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

Other differences:
------------------
++++++ lsof.spec ++++++
--- /var/tmp/diff_new_pack.vvaWWi/_old  2022-11-23 09:47:51.666964667 +0100
+++ /var/tmp/diff_new_pack.vvaWWi/_new  2022-11-23 09:47:51.670964688 +0100
@@ -24,6 +24,7 @@
 Group:          System/Monitoring
 URL:            https://github.com/lsof-org/lsof
 Source:         
https://github.com/lsof-org/lsof/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Patch0:         format.patch
 BuildRequires:  groff
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(libselinux)
@@ -41,11 +42,11 @@
 
 %build
 ./Configure -n linux
-%make_build
+%make_build DEBUG="%{optflags}"
 soelim -r Lsof.8 > lsof.8
 
 %install
-%make_install
+%make_install DEBUG="%{optflags}"
 install -m755 -d %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man8
 install -m755 lsof %{buildroot}%{_bindir}
 install -m644 lsof.8 %{buildroot}%{_mandir}/man8/lsof.8
@@ -61,7 +62,7 @@
 cd tests
 chmod u+w TestDB
 ./Add2TestDB
-%make_build DEBUG="-Wall -Wno-unused"
+%make_build DEBUG="%{optflags} -Wall -Wno-unused"
 
 %files
 %doc SUSE_docs/* scripts

++++++ format.patch ++++++
>From 31e998b62a3b2f7e30fddb4d6f96dc09d6f32aef Mon Sep 17 00:00:00 2001
From: Andreas Schwab <sch...@suse.de>
Date: Tue, 22 Nov 2022 11:29:35 +0100
Subject: [PATCH] [linux] Use correct scanf/printf format for uint64_t

---
 dialects/linux/dproc.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dialects/linux/dproc.c b/dialects/linux/dproc.c
index fa8ba5e..6621065 100644
--- a/dialects/linux/dproc.c
+++ b/dialects/linux/dproc.c
@@ -31,6 +31,8 @@
 
 #include "lsof.h"
 
+#include <inttypes.h>
+
 
 /*
  * Local definitions
@@ -1563,10 +1565,10 @@ process_proc_map(p, s, ss)
                uint64_t start, end;
                int ret;
 
-               if (sscanf(fp[0], "%lx-%lx", &start, &end) != 2)
+               if (sscanf(fp[0], "%"SCNx64"-%"SCNx64, &start, &end) != 2)
                    goto stat_directly;
 
-               ret = snprintf(addr, sizeof(addr), "%lx-%lx", start, end);
+               ret = snprintf(addr, sizeof(addr), "%"PRIx64"-%"PRIx64, start, 
end);
                if (ret >= sizeof(addr) || ret <= 0)
                    goto stat_directly;
 
-- 
2.38.1

Reply via email to