jer 14/07/12 14:29:34 Added: hunt-1.5-log2.patch hunt-1.5-exit.patch hunt-1.5-flags.patch Log: EAPI bump. Fix missing include, move log2 function to its own namespace, convert sed scripts to patch. (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Revision Changes Path 1.1 net-analyzer/hunt/files/hunt-1.5-log2.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/hunt/files/hunt-1.5-log2.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/hunt/files/hunt-1.5-log2.patch?rev=1.1&content-type=text/plain Index: hunt-1.5-log2.patch =================================================================== --- a/hunt.h +++ b/hunt.h @@ -401,7 +401,7 @@ void set_tty_color_bg(enum TTY_COLOR fg, enum TTY_COLOR bg); int is_power2(unsigned int i); -int log2(unsigned int i); +int _hunt_log2(unsigned int i); int count_mask(unsigned int mask); --- a/util.c +++ b/util.c @@ -70,7 +70,7 @@ return i ? 0 : 1; } -int log2(unsigned int i) +int _hunt_log2(unsigned int i) { int l = 0; 1.1 net-analyzer/hunt/files/hunt-1.5-exit.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/hunt/files/hunt-1.5-exit.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/hunt/files/hunt-1.5-exit.patch?rev=1.1&content-type=text/plain Index: hunt-1.5-exit.patch =================================================================== --- a/timer.c +++ b/timer.c @@ -8,6 +8,7 @@ */ #include <stdio.h> #include <unistd.h> +#include <stdlib.h> /* exit() */ #include "hunt.h" struct list timejob_list = LIST_INIT(struct timejob, j_next); 1.1 net-analyzer/hunt/files/hunt-1.5-flags.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/hunt/files/hunt-1.5-flags.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/hunt/files/hunt-1.5-flags.patch?rev=1.1&content-type=text/plain Index: hunt-1.5-flags.patch =================================================================== --- a/Makefile +++ b/Makefile @@ -1,8 +1,7 @@ -CFLAGS=-Wall -O2 -g -D_REENTRANT +CFLAGS += -I. -Wall -D_REENTRANT #CFLAGS+=-DSYNC_FAST #CFLAGS+=-D_WITH_LINUX_KERNEL_HDR -LDFLAGS= #LDFLAGS=-static OBJ=hunt.o main.o c/list.o c/hash.o c/array.o util.o net.o \ @@ -11,7 +10,7 @@ addpolicy.o options.o resolv.o timer.o pktrelay.o hunt: $(OBJ) - $(CC) ${LDFLAGS} -o $@ $^ -lpthread + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lpthread hunt_static: $(OBJ) $(CC) ${LDFLAGS} -static -o $@ $^ -lpthread