2 Commits

Author SHA256 Message Date
2738de475e Accepting request 1322202 from network:telephony
OBS-URL: https://build.opensuse.org/request/show/1322202
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sngrep?expand=0&rev=15
2025-12-11 17:42:00 +00:00
6e329b7980 - Update to version 1.8.3
* Use libgcrypt-config if pkg-config is not available for
    libgcrypt.
  * Call flow group message cache.
  * Fixed an issue with the payload length of fragmented IPv6
    packets.
  * Add RFC 4733 DTMF display support by @Kaian based.
  * rtp: fix duration value in telephony-event is incorrectly
    converted.
- Add patch:
  * 0001-util-expose-sng_strncpy-definition.patch

OBS-URL: https://build.opensuse.org/package/show/network:telephony/sngrep?expand=0&rev=29
2025-12-11 12:37:27 +00:00
5 changed files with 70 additions and 5 deletions

View File

@@ -0,0 +1,49 @@
From b84f0663e47de6f238d9f81eed67612a9ab616ef Mon Sep 17 00:00:00 2001
From: Victor Seva <linuxmaniac@torreviejawireless.org>
Date: Thu, 16 Oct 2025 23:33:06 +0200
Subject: [PATCH] util: expose sng_strncpy() definition
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* introduced at df59a5a3d0723c674f7ae53e10376a4ca23742d3
generates build errors:
> gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/p11-kit-1 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/sngrep-1.8.3=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o sngrep-address.o `test -f 'address.c' || echo './'`address.c
> address.c: In function address_from_str:
> address.c:115:5: error: implicit declaration of function sng_strncpy; did you mean strncpy? [-Wimplicit-function-declaration]
> 115 | sng_strncpy(scanipport, ipport, sizeof(scanipport));
> | ^~~~~~~~~~~
> | strncpy
> make[3]: *** [Makefile:628: sngrep-address.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> capture_eep.c: In function capture_eep_set_server_url:
> capture_eep.c:910:5: error: implicit declaration of function sng_strncpy; did you mean strncpy? [-Wimplicit-function-declaration]
> 910 | sng_strncpy(urlstr, url, sizeof(urlstr));
> | ^~~~~~~~~~~
> | strncpy
> make[3]: *** [Makefile:586: sngrep-capture_eep.o] Error 1
---
src/util.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/util.h b/src/util.h
index 0b1f4a5..c1b6f16 100644
--- a/src/util.h
+++ b/src/util.h
@@ -57,6 +57,12 @@ sng_free(void *ptr);
char *
sng_basename(const char *name);
+/*
+ * @brief Wrapper for strncpy
+ */
+char *
+sng_strncpy(char *dst, const char *src, size_t len);
+
/**
* @brief Compare two timeval structures
*
--
2.52.0

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1cd05bddd531b353e3069c5243e7076b60a3ee907dbbc3c9c2834676ed8c4bac
size 254184

3
sngrep-1.8.3.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:794224f4cd08978a6115a767e9945f756fdf7cbc7c1a34eabca293e0293b21b8
size 256938

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Fri Oct 17 10:55:33 UTC 2025 - Martin Hauke <mardnh@gmx.de>
- Update to version 1.8.3
* Use libgcrypt-config if pkg-config is not available for
libgcrypt.
* Call flow group message cache.
* Fixed an issue with the payload length of fragmented IPv6
packets.
* Add RFC 4733 DTMF display support by @Kaian based.
* rtp: fix duration value in telephony-event is incorrectly
converted.
- Add patch:
* 0001-util-expose-sng_strncpy-definition.patch
-------------------------------------------------------------------
Fri Mar 14 15:21:00 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package sngrep
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2018-2024, Martin Hauke <mardnh@gmx.de>
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
#
@@ -19,7 +19,7 @@
Name: sngrep
Version: 1.8.2
Version: 1.8.3
Release: 0
Summary: Ncurses SIP Messages flow viewer
License: GPL-3.0-or-later
@@ -27,6 +27,7 @@ Group: Productivity/Telephony/Utilities
URL: https://github.com/irontec/sngrep
#Git-Clone: https://github.com/irontec/sngrep.git
Source: https://github.com/irontec/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: 0001-util-expose-sng_strncpy-definition.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libpcap-devel