jskarvad pushed to ax25-tools (f20). "Fix FTBFS with automake-1.14 and -Werror=format-security (#1105990)"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 7 08:38:45 UTC 2015


>From d4789a2c15d3a0f7f9e8d44ee499777af0b04ff5 Mon Sep 17 00:00:00 2001
From: Yaakov Selkowitz <yselkowi at redhat.com>
Date: Fri, 20 Jun 2014 16:24:51 -0500
Subject: Fix FTBFS with automake-1.14 and -Werror=format-security (#1105990)


diff --git a/ax25-tools-0.0.10-format-security.patch b/ax25-tools-0.0.10-format-security.patch
new file mode 100644
index 0000000..1451a7a
--- /dev/null
+++ b/ax25-tools-0.0.10-format-security.patch
@@ -0,0 +1,57 @@
+--- a/6pack/m6pack.c
++++ b/6pack/m6pack.c
+@@ -112,7 +112,7 @@ static __u8 obuf[SIZE];	/* buffer for sixpack_tx() */
+ 
+ static int invalid_ports = 0;
+ 
+-static char *usage_string = "usage: m6pack [-l] [-s speed] [-x num_ptmx_devices] [-v] tyinterface pty ..\n";
++static const char usage_string[] = "usage: m6pack [-l] [-s speed] [-x num_ptmx_devices] [-v] tyinterface pty ..\n";
+ 
+ static int dump_report = FALSE;
+ static int logging = FALSE;
+--- a/ax25/axparms.c
++++ b/ax25/axparms.c
+@@ -147,7 +147,7 @@ PROC_AX25_ROUTE_FILE);
+ 			return 1;
+ 		}
+ 		while (fgets(routebuf,80,fp))
+-			printf(routebuf);
++			printf("%s", routebuf);
+ 		puts("");
+ 	}
+ 
+--- a/kiss/mkiss.c
++++ b/kiss/mkiss.c
+@@ -82,7 +82,7 @@ static int crc_errors		= 0;
+ static int invalid_ports	= 0;
+ static int return_polls		= 0;
+ 
+-static char *usage_string	= "usage: mkiss [-p interval] [-c] [-f] [-h] [-l] [-s speed] [-v] [-x <num_ptmx_devices>] ttyinterface pty ..\n";
++static const char usage_string[]	= "usage: mkiss [-p interval] [-c] [-f] [-h] [-l] [-s speed] [-v] [-x <num_ptmx_devices>] ttyinterface pty ..\n";
+ 
+ static int dump_report		= FALSE;
+ 
+--- a/netrom/nrparms.c
++++ b/netrom/nrparms.c
+@@ -30,8 +30,8 @@
+ #include <netax25/axconfig.h>
+ #include <netax25/nrconfig.h>
+ 
+-char nodes_usage[]  = "usage: nrparms -nodes nodecall +|- ident quality count port neighbour [digicall...]\n";
+-char routes_usage[] = "usage: nrparms -routes port nodecall [digicall...] +|- pathquality\n";
++static const char nodes_usage[]  = "usage: nrparms -nodes nodecall +|- ident quality count port neighbour [digicall...]\n";
++static const char routes_usage[] = "usage: nrparms -routes port nodecall [digicall...] +|- pathquality\n";
+ 
+ void nodes(int s, char *nodecall, char *op, char *ident, int quality, int count, char *port, char *neighbour, char *digis[])
+ {
+--- a/rose/rsparms.c
++++ b/rose/rsparms.c
+@@ -27,7 +27,7 @@
+ 
+ #include "../pathnames.h"
+ 
+-char nodes_usage[]  = "usage: rsparms -node add|del nodeaddr[/mask] port neighbour [digis...]\n       rsparms -node list\n";
++static const char nodes_usage[]  = "usage: rsparms -node add|del nodeaddr[/mask] port neighbour [digis...]\n       rsparms -node list\n";
+ 
+ /* print the Rose neighbour whose number is supplied */
+ void printnb(char *neigh)
diff --git a/ax25-tools.spec b/ax25-tools.spec
index efdde5c..27fa110 100755
--- a/ax25-tools.spec
+++ b/ax25-tools.spec
@@ -1,6 +1,6 @@
 Name:		ax25-tools
 Version:	0.0.10
-Release:	0.7.rc2%{?dist}
+Release:	0.8.rc2%{?dist}
 Summary:	Tools used to configure an ax.25 enabled computer
 Group:		Applications/Communications
 License:	GPLv2+
@@ -16,7 +16,7 @@ Source5:	xfsmmixer.desktop
 #Temporary Icon
 Source6:	%{name}.png
 
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch0:		ax25-tools-0.0.10-format-security.patch
 
 BuildRequires:	automake
 BuildRequires:	libax25-devel
@@ -98,14 +98,14 @@ ax25-tools-x
 
 %prep
 %setup -qn %{name}
+%patch0 -p1
 
 %build
-autoreconf
+autoreconf -fiv
 %configure
 make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 
 # no upstream .desktop or icon yet so we'll use a temporary one
@@ -126,18 +126,13 @@ desktop-file-install	\
 #don't include these twice
 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING README
 %doc yamdrv/README.yamdrv user_call/README.user_call tcpip/ttylinkd.README dmascc/README.dmascc
 %{_bindir}/*
 %{_sbindir}/*
 
 %files x
-%defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING
 %{_bindir}/*
 %{_sbindir}/*
@@ -145,11 +140,14 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/applications/*.desktop
 
 %files docs
-%defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING
 %{_mandir}/man?/*
 
 %changelog
+* Fri Jun 20 2014 Yaakov Selkowitz <yselkowi at redhat.com> - 0.0.10-0.8.rc2
+- Fix FTBFS with automake-1.14 and -Werror=format-security (#1105990)
+- Cleanup spec
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.0.10-0.7.rc2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/ax25-tools.git/commit/?h=f20&id=d4789a2c15d3a0f7f9e8d44ee499777af0b04ff5


More information about the scm-commits mailing list