Package: traceroute Severity: important Version: 1.4a12-21 Tags: patch
Hi, the current version fails to build on GNU/kFreeBSD. It needs small tweak to debian packaging, configure.in/configure and for compliance with gcc-4.1 . Please find attached patch with that. It would also be nice if you can ask upstream to include this changes. Thanks in advance Petr
diff -u traceroute-1.4a12/debian/rules traceroute-1.4a12/debian/rules --- traceroute-1.4a12/debian/rules +++ traceroute-1.4a12/debian/rules @@ -17,7 +17,7 @@ # Building package if [ ! -f Makefile ]; then ./configure; fi - $(MAKE) CCOPT="$(CFLAGS) -D_GNU_SOURCE" + $(MAKE) CCOPT="$(CFLAGS) -D_BSD_SOURCE" touch build-stamp diff -u traceroute-1.4a12/configure.in traceroute-1.4a12/configure.in --- traceroute-1.4a12/configure.in +++ traceroute-1.4a12/configure.in @@ -39,7 +39,7 @@ AC_DEFINE(HAVE_RAW_OPTIONS) ;; -freebsd*) +freebsd*|kfreebsd*) AC_DEFINE(HAVE_RAW_OPTIONS) ;; diff -u traceroute-1.4a12/configure traceroute-1.4a12/configure --- traceroute-1.4a12/configure +++ traceroute-1.4a12/configure @@ -4312,7 +4312,7 @@ ;; -freebsd*) +freebsd*|kfreebsd*) cat >>confdefs.h <<\_ACEOF #define HAVE_RAW_OPTIONS 1 _ACEOF diff -u traceroute-1.4a12/findsaddr-socket.c traceroute-1.4a12/findsaddr-socket.c --- traceroute-1.4a12/findsaddr-socket.c +++ traceroute-1.4a12/findsaddr-socket.c @@ -216,7 +216,7 @@ } break; - default: + default:; /* empty */ }