diff --git a/backport-fix-Potential-Null-Pointer-Dereference.patch b/backport-fix-Potential-Null-Pointer-Dereference.patch deleted file mode 100644 index ed6de3c..0000000 --- a/backport-fix-Potential-Null-Pointer-Dereference.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 1c0e8ac9c02d82209a3405a972174a795d044038 Mon Sep 17 00:00:00 2001 -From: qingkaishi -Date: Wed, 9 Sep 2020 23:58:28 +0800 -Subject: [PATCH] fix Potential Null Pointer Dereference - ---- - test/dnet/fw.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/test/dnet/fw.c b/test/dnet/fw.c -index 1557827..c845263 100644 ---- a/test/dnet/fw.c -+++ b/test/dnet/fw.c -@@ -108,7 +108,7 @@ arg_to_fr(int argc, char *argv[], struct fw_rule *fr) - - p = strtok(argv[4], ":"); - -- if (addr_aton(p, &fr->fw_src) < 0) -+ if (!p || addr_aton(p, &fr->fw_src) < 0) - return (-1); - - if ((p = strtok(NULL, ":")) != NULL) { --- -2.33.0 - diff --git a/libdnet-1.14.tar.gz b/libdnet-1.14.tar.gz deleted file mode 100644 index 3a4e7c3..0000000 Binary files a/libdnet-1.14.tar.gz and /dev/null differ diff --git a/libdnet-1.16.3.tar.gz b/libdnet-1.16.3.tar.gz new file mode 100644 index 0000000..5f1bdad Binary files /dev/null and b/libdnet-1.16.3.tar.gz differ diff --git a/libdnet.spec b/libdnet.spec index 5209739..2b3b2ea 100644 --- a/libdnet.spec +++ b/libdnet.spec @@ -1,15 +1,15 @@ Name: libdnet -Version: 1.14 -Release: 3 +Version: 1.16.3 +Release: 1 Summary: Simple portable interface work with low-level networking routines License: BSD URL: https://github.com/ofalk/%{name} Source: https://github.com/ofalk/libdnet/archive/%{name}-%{version}.tar.gz -Patch0: backport-fix-Potential-Null-Pointer-Dereference.patch BuildRequires: gcc-c++ BuildRequires: python3-Cython +BuildRequires: make check-devel python3-setuptools libbsd-devel %description %{name} provides a simplified, portable interface to several low-level networking @@ -50,7 +50,7 @@ Python3 package for python-%{name} %build export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" -%configure +%configure --disable-static %disable_rpath %make_build @@ -79,9 +79,7 @@ popd %defattr(-,root,root) %{_bindir}/dnet-config %{_libdir}/%{name}.so -%{_includedir}/dnet/*.h -%{_includedir}/dnet.h -%{_libdir}/*.a +%{_includedir}/* %files progs %defattr(-,root,root) @@ -98,6 +96,12 @@ popd %{_mandir}/man8/*.8* %changelog +* Fri Feb 03 2023 xinghe - 1.16.3-1 +- Type:requirements +- ID:NA +- SUG:NA +- DESC: update libdnet to 1.16.3 + * Fri Nov 18 2022 xingwei - 1.14-3 - Type:bugfix - ID:NA