diff options
Diffstat (limited to 'sys-process/latencytop/files')
3 files changed, 125 insertions, 0 deletions
diff --git a/sys-process/latencytop/files/latencytop-0.5-01-mkdir-usr-sbin-as-well.patch b/sys-process/latencytop/files/latencytop-0.5-01-mkdir-usr-sbin-as-well.patch new file mode 100644 index 000000000000..52d791e7a601 --- /dev/null +++ b/sys-process/latencytop/files/latencytop-0.5-01-mkdir-usr-sbin-as-well.patch @@ -0,0 +1,22 @@ +From d9685bb69c581489ef1c4278df8990fe02b0728d Mon Sep 17 00:00:00 2001 +From: Arjan van de Ven <arjan@linux.intel.com> +Date: Tue, 28 Apr 2009 14:44:34 +0100 +Subject: [PATCH] mkdir /usr/sbin as well + +--- + +diff --git a/src/Makefile b/src/Makefile +index fdf1616..de24551 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -30,6 +30,7 @@ + + install: latencytop + mkdir -p $(DESTDIR)/usr/share/latencytop ++ mkdir -p $(DESTDIR)/$(SBINDIR) + install -m 0644 latencytop.trans $(DESTDIR)/usr/share/latencytop/latencytop.trans + install -m 0644 *.png $(DESTDIR)/usr/share/latencytop/ + install -m 0755 latencytop $(DESTDIR)$(SBINDIR)/ +-- +1.6.5.4 + diff --git a/sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch b/sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch new file mode 100644 index 000000000000..c33c127dab6b --- /dev/null +++ b/sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch @@ -0,0 +1,75 @@ +From e024a79b7b16b09bfe88222ed7f43b969b3eb444 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Fri, 18 Dec 2009 10:49:19 -0500 +Subject: [PATCH] clean up build system + +Respect env build settings (compiler flags and tools) and install the man +page for people. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + src/Makefile | 32 ++++++++++++++++++-------------- + 1 files changed, 18 insertions(+), 14 deletions(-) + +diff --git a/src/Makefile b/src/Makefile +index de24551..9a3cc05 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -3,14 +3,22 @@ HAS_GTK_GUI = 1 + + DESTDIR = + SBINDIR = /usr/sbin +-XCFLAGS = -W -g `pkg-config --cflags glib-2.0` -D_FORTIFY_SOURCE=2 -Wno-sign-compare +-LDF = -Wl,--as-needed `pkg-config --libs glib-2.0` -lncursesw ++DATADIR = /usr/share/latencytop ++MANDIR = /usr/share/man ++MAN8DIR = $(MANDIR)/man8 ++PKG_CONFIG ?= pkg-config ++CFLAGS ?= -g -W ++CPPFLAGS ?= -D_FORTIFY_SOURCE=2 ++override CFLAGS += -Wno-sign-compare ++override CPPFLAGS += `$(PKG_CONFIG) --cflags glib-2.0` ++LDFLAGS ?= -Wl,--as-needed ++LDADD = `$(PKG_CONFIG) --libs glib-2.0` -lncursesw + + OBJS= latencytop.o text_display.o translate.o fsync.o + +-ifdef HAS_GTK_GUI +- XCFLAGS += `pkg-config --cflags gtk+-2.0` -DHAS_GTK_GUI +- LDF += `pkg-config --libs gtk+-2.0` ++ifeq ($(HAS_GTK_GUI),1) ++ override CPPFLAGS += `$(PKG_CONFIG) --cflags gtk+-2.0` -DHAS_GTK_GUI ++ LDADD += `$(PKG_CONFIG) --libs gtk+-2.0` + OBJS += gtk_display.o + endif + +@@ -24,19 +32,17 @@ endif + # libncursesw5-dev package. + # + +-# We write explicity this "implicit rule" +-%.o : %.c +- gcc -c $(CFLAGS) $(XCFLAGS) $< -o $@ +- + latencytop: $(OBJS) latencytop.h Makefile +- gcc $(CFLAGS) $(OBJS) $(LDF) -o latencytop ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LDADD) + + clean: + rm -f *~ latencytop DEADJOE *.o + + install: latencytop +- mkdir -p $(DESTDIR)/usr/share/latencytop +- mkdir -p $(DESTDIR)/$(SBINDIR) +- install -m 0644 latencytop.trans $(DESTDIR)/usr/share/latencytop/latencytop.trans +- install -m 0644 *.png $(DESTDIR)/usr/share/latencytop/ ++ mkdir -p $(DESTDIR)$(DATADIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(MAN8DIR) ++ install -m 0644 latencytop.trans $(DESTDIR)$(DATADIR)/latencytop.trans ++ifeq ($(HAS_GTK_GUI),1) ++ install -m 0644 *.png $(DESTDIR)$(DATADIR)/ ++endif ++ install -m 0644 *.8 $(DESTDIR)$(MAN8DIR)/ + install -m 0755 latencytop $(DESTDIR)$(SBINDIR)/ +-- +1.6.5.4 + diff --git a/sys-process/latencytop/files/latencytop-0.5-fsync-fix-implicit-decl.patch b/sys-process/latencytop/files/latencytop-0.5-fsync-fix-implicit-decl.patch new file mode 100644 index 000000000000..ef57e9e04c00 --- /dev/null +++ b/sys-process/latencytop/files/latencytop-0.5-fsync-fix-implicit-decl.patch @@ -0,0 +1,28 @@ +From 60427a259ba76b8238198e1f17a0c3b06491be3c Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Fri, 18 Dec 2009 10:48:39 -0500 +Subject: [PATCH] fsync: fix implicit decl + +fsync.c: In function 'fsync_display': +fsync.c:330: warning: implicit declaration of function 'gettimeofday' + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + src/fsync.c | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/src/fsync.c b/src/fsync.c +index 1706571..3bec719 100644 +--- a/src/fsync.c ++++ b/src/fsync.c +@@ -30,6 +30,7 @@ + #include <string.h> + #include <ncurses.h> + #include <time.h> ++#include <sys/time.h> + #include <wchar.h> + #include <ctype.h> + +-- +1.6.5.4 + |