Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package traceroute for openSUSE:Factory checked in at 2023-01-04 17:50:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/traceroute (Old) and /work/SRC/openSUSE:Factory/.traceroute.new.1563 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "traceroute" Wed Jan 4 17:50:39 2023 rev:8 rq:1046195 version:2.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/traceroute/traceroute.changes 2019-02-04 21:23:38.991621578 +0100 +++ /work/SRC/openSUSE:Factory/.traceroute.new.1563/traceroute.changes 2023-01-04 17:50:45.153527305 +0100 @@ -1,0 +2,8 @@ +Wed Dec 28 12:29:41 UTC 2022 - Andreas Stieger <andreas.stie...@gmx.de> + +- update to version 2.1.1: + * Interpret ipv4-mapped ipv6 addresses (::ffff:A.B.C.D) as true + ipv4 + * Return back more robust poll(2) loop handling + +------------------------------------------------------------------- Old: ---- traceroute-2.1.0.tar.gz New: ---- traceroute-2.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ traceroute.spec ++++++ --- /var/tmp/diff_new_pack.e87kwh/_old 2023-01-04 17:50:46.461535014 +0100 +++ /var/tmp/diff_new_pack.e87kwh/_new 2023-01-04 17:50:46.465535039 +0100 @@ -1,7 +1,7 @@ # # spec file for package traceroute # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,14 +17,13 @@ Name: traceroute -Version: 2.1.0 +Version: 2.1.1 Release: 0 Summary: Packet route path tracing utility License: GPL-2.0-or-later Group: Productivity/Networking/Other -Url: http://traceroute.sourceforge.net/ -Source: %{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build +URL: https://traceroute.sourceforge.net/ +Source: https://sourceforge.net/projects/traceroute/files/traceroute/traceroute-%{version}/%{name}-%{version}.tar.gz Patch0: traceroute-autotools.patch Patch1: traceroute-secure_getenv.patch BuildRequires: automake @@ -38,15 +37,13 @@ response from each gateway along the path to the host. %prep -%setup -q -%patch0 -p1 -%patch1 -p1 +%autosetup -p1 %build export LDFLAGS="-Wl,-z,relro,-z,now" autoreconf -fiv %configure -make %{?_smp_mflags} +%make_build %install %make_install @@ -56,13 +53,10 @@ install -m0644 wrappers/tcptraceroute.8 %{buildroot}%{_mandir}/man8/tcptraceroute.8 %files -%defattr(-,root,root) %license COPYING %doc ChangeLog README -%{_bindir}/tcptraceroute -%{_sbindir}/%{name} -%{_sbindir}/%{name}6 -%{_mandir}/man8/traceroute*.8* -%{_mandir}/man8/tcptraceroute.8* +%{_bindir}/* +%{_sbindir}/* +%{_mandir}/man8/*.8%{?ext_man} %changelog ++++++ traceroute-2.1.0.tar.gz -> traceroute-2.1.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traceroute-2.1.0/ChangeLog new/traceroute-2.1.1/ChangeLog --- old/traceroute-2.1.0/ChangeLog 2016-03-08 18:20:01.000000000 +0100 +++ new/traceroute-2.1.1/ChangeLog 2022-12-27 01:39:41.000000000 +0100 @@ -1,3 +1,14 @@ +2022-12-27 Dmitry Butskoy <dmi...@butskoy.name> - 2.1.1 + + * Interpret ipv4-mapped ipv6 addresses (::ffff:A.B.C.D) as true ipv4. + + There are no ipv4-mapped addresses in the real network which we + operate on, so use just ipv4 in such cases, but allow users + to specify it this way for convenience. + + * Return back more robast poll(2) loop handling. + + 2016-03-08 Dmitry Butskoy <dmi...@butskoy.name> - 2.1.0 * Improve the main loop for better interactivity. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traceroute-2.1.0/VERSION new/traceroute-2.1.1/VERSION --- old/traceroute-2.1.0/VERSION 2016-02-27 21:05:04.000000000 +0100 +++ new/traceroute-2.1.1/VERSION 2022-12-27 00:55:39.000000000 +0100 @@ -1 +1 @@ -#define VERSION 2.1.0 +#define VERSION 2.1.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traceroute-2.1.0/traceroute/poll.c new/traceroute-2.1.1/traceroute/poll.c --- old/traceroute-2.1.0/traceroute/poll.c 2016-03-07 17:20:56.000000000 +0100 +++ new/traceroute-2.1.1/traceroute/poll.c 2022-12-27 01:00:18.000000000 +0100 @@ -64,28 +64,23 @@ void do_poll (double timeout, void (*callback) (int fd, int revents)) { - int nfds; - int msecs = ceil (timeout * 1000); + int nfds, n, i; - while ((nfds = cleanup_polls ()) > 0) { - int i, n; + nfds = cleanup_polls (); - n = poll (pfd, nfds, msecs); + if (!nfds) return; - if (n <= 0) { - if (n == 0 || errno == EINTR) - return; - error ("poll"); - } + n = poll (pfd, nfds, ceil(timeout * 1000)); + if (n < 0) { + if (errno == EINTR) return; + error ("poll"); + } - for (i = 0; n && i < num_polls; i++) { - if (pfd[i].revents) { - callback (pfd[i].fd, pfd[i].revents); - n--; - } + for (i = 0; n && i < num_polls; i++) { + if (pfd[i].revents) { + callback (pfd[i].fd, pfd[i].revents); + n--; } - - msecs = 0; /* no more wait, just eat all the pending */ } return; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traceroute-2.1.0/traceroute/traceroute.c new/traceroute-2.1.1/traceroute/traceroute.c --- old/traceroute-2.1.0/traceroute/traceroute.c 2016-03-07 23:17:23.000000000 +0100 +++ new/traceroute-2.1.1/traceroute/traceroute.c 2022-12-27 01:28:15.000000000 +0100 @@ -223,6 +223,15 @@ freeaddrinfo (res); + /* No v4mapped addresses in real network, interpret it as ipv4 anyway */ + if (addr->sa.sa_family == AF_INET6 && + IN6_IS_ADDR_V4MAPPED (&addr->sin6.sin6_addr) + ) { + if (af == AF_INET6) return -1; + addr->sa.sa_family = AF_INET; + addr->sin.sin_addr.s_addr = addr->sin6.sin6_addr.s6_addr32[3]; + } + return 0; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/traceroute-2.1.0/traceroute.spec new/traceroute-2.1.1/traceroute.spec --- old/traceroute-2.1.0/traceroute.spec 2016-02-27 21:05:04.000000000 +0100 +++ new/traceroute-2.1.1/traceroute.spec 2022-12-27 00:55:39.000000000 +0100 @@ -1,6 +1,6 @@ Summary: Traces the route taken by packets over an IPv4/IPv6 network Name: traceroute -Version: 2.1.0 +Version: 2.1.1 Release: 1%{?dist} Group: Applications/Internet License: GPLv2+