2 Commits

3 changed files with 25 additions and 1 deletions

15
packit-gcc15.patch Normal file
View File

@@ -0,0 +1,15 @@
Index: packit-1.8.1/src/injection.h
===================================================================
--- packit-1.8.1.orig/src/injection.h
+++ packit-1.8.1/src/injection.h
@@ -38,8 +38,8 @@
void injection_init();
u_int16_t inject_packet();
-u_int16_t with_response();
-u_int16_t without_response();
+u_int16_t with_response(u_int32_t g_port_range);
+u_int16_t without_response(u_int32_t g_port_range);
int setnonblock(pcap_t *, int, char *);
#endif /* __INJECTION_H */

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Mar 12 12:27:27 UTC 2025 - pgajdos@suse.com
- added patches
fix build with gcc15
+ packit-gcc15.patch
-------------------------------------------------------------------
Sat Feb 18 16:25:33 UTC 2023 - Andrea Manzini <andrea.manzini@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package packit
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,8 @@ License: GPL-2.0-or-later
Group: Productivity/Networking/Diagnostic
URL: https://github.com/eribertomota/packit
Source0: https://github.com/eribertomota/packit/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# https://github.com/resurrecting-open-source-projects/packit/issues/24
Patch0: packit-gcc15.patch
# PATCH-FIX-OPENSUSE packit-1.7-fix_automake_1.16.5_build.patch
#Patch0: packit-1.7-fix_automake_1.16.5_build.patch
BuildRequires: autoconf