From 81c7a7b03b552f31b4d4a16ecf427c442f28146e Mon Sep 17 00:00:00 2001 From: Zdenek Prikryl Date: Wed, 21 May 2008 12:40:55 +0000 Subject: [PATCH] Updated to 0.73 Fixed mtr-0.69-CVE-2002-0497.patch Added build requirement for GTK+ --- .cvsignore | 2 +- mtr-0.69-CVE-2002-0497.patch | 18 ------------------ mtr-0.71-ipv6-resolvehostname.patch | 11 ----------- mtr.spec | 15 +++++++++++---- sources | 2 +- 5 files changed, 13 insertions(+), 35 deletions(-) delete mode 100644 mtr-0.71-ipv6-resolvehostname.patch diff --git a/.cvsignore b/.cvsignore index 7f72a58..5f6eced 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -mtr-0.72.tar.gz +mtr-0.73.tar.gz diff --git a/mtr-0.69-CVE-2002-0497.patch b/mtr-0.69-CVE-2002-0497.patch index ef7fb86..0ca59be 100644 --- a/mtr-0.69-CVE-2002-0497.patch +++ b/mtr-0.69-CVE-2002-0497.patch @@ -203,21 +203,3 @@ strlongip(ip)); restell(tempstring); } ---- mtr-0.69/split.c.CVE-2002-0497 2005-01-11 09:34:07.000000000 +0100 -+++ mtr-0.69/split.c 2005-02-09 18:13:58.000000000 +0100 -@@ -103,13 +103,13 @@ - name = dns_lookup(addr); - if(name != NULL) { - /* May be we should test name's length */ -- sprintf(newLine, "%s %d %d %d %d %d %d", name, -+ snprintf(newLine, sizeof(newLine), "%s %d %d %d %d %d %d", name, - net_loss(at), - net_returned(at), net_xmit(at), - net_best(at) /1000, net_avg(at)/1000, - net_worst(at)/1000); - } else { -- sprintf(newLine, "%s %d %d %d %d %d %d", -+ snprintf(newLine, sizeof(newLine), "%s %d %d %d %d %d %d", - strlongip( addr ), - net_loss(at), - net_returned(at), net_xmit(at), diff --git a/mtr-0.71-ipv6-resolvehostname.patch b/mtr-0.71-ipv6-resolvehostname.patch deleted file mode 100644 index cf46e32..0000000 --- a/mtr-0.71-ipv6-resolvehostname.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- mtr-0.71/dns.c.mar 2006-07-03 07:53:28.000000000 +0200 -+++ mtr-0.71/dns.c 2006-07-03 07:52:26.000000000 +0200 -@@ -1357,7 +1357,7 @@ - #ifdef ENABLE_IPV6 - /* Returns an ip6.arpa character string. */ - void addr2ip6arpa( ip_t * ip, char * buf ) { -- char * p = (char *) ip; -+ unsigned char * p = (unsigned char *) ip; - char * b = buf; - int i; - diff --git a/mtr.spec b/mtr.spec index cf28808..8bb0663 100644 --- a/mtr.spec +++ b/mtr.spec @@ -1,7 +1,7 @@ Summary: A network diagnostic tool Name: mtr -Version: 0.72 -Release: 4%{?dist} +Version: 0.73 +Release: 1%{?dist} Epoch: 2 Group: Applications/Internet License: GPLv2+ @@ -13,7 +13,7 @@ Source3: net-x%{name}.desktop Patch1: mtr-0.69-CVE-2002-0497.patch Patch2: mtr-0.69-format.patch Patch3: mtr-0.71-underflow.patch -BuildRequires: ncurses-devel gtk2-devel desktop-file-utils +BuildRequires: ncurses-devel gtk2-devel desktop-file-utils gtk+-devel Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -40,8 +40,10 @@ diagnostic tool. %patch3 -p1 -b .underflow %build +# mtr-0.73 has an error in ./configure, we need to create new one +autoreconf %configure --enable-gtk2 -make && mv mtr xmtr && make distclean +make %{?_smp_mflags} && mv mtr xmtr && make distclean %configure --without-gtk make %{?_smp_mflags} @@ -88,6 +90,11 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/pixmaps/mtr_icon.xpm %changelog +* Wed May 21 2008 Zdenek Prikryl - 2:0.73 +- Updated to 0.73 +- Fixed mtr-0.69-CVE-2002-0497.patch +- Added build requirement for GTK+ + * Tue Feb 19 2008 Fedora Release Engineering - 2:0.72-4 - Autorebuild for GCC 4.3 diff --git a/sources b/sources index 2b3c754..b2f6a5b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d771061f8da96b80ecca2f69a3a2d594 mtr-0.72.tar.gz +52223cc34c72092a0392865356a3dc76 mtr-0.73.tar.gz