From: Stephen Walker Date: Sat, 18 Dec 2010 03:19:51 +0000 (+0000) Subject: [packages] htop: update to 0.9, add upstream's r213 uClibc commit and use PKG_INSTALL X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8914b897031789a2fdabe22bfe1137cff59b777c;p=openwrt%2Fsvn-archive%2Farchive.git [packages] htop: update to 0.9, add upstream's r213 uClibc commit and use PKG_INSTALL SVN-Revision: 24660 --- diff --git a/admin/htop/Makefile b/admin/htop/Makefile index d808a22510..c8a2ef99cf 100644 --- a/admin/htop/Makefile +++ b/admin/htop/Makefile @@ -8,14 +8,15 @@ include $(TOPDIR)/rules.mk PKG_NAME:=htop -PKG_VERSION:=0.8.3 -PKG_RELEASE:=2 +PKG_VERSION:=0.9 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/$(PKG_NAME) -PKG_MD5SUM:=5c9f093f9eaddf6e77aa6d54c2116d0c +PKG_MD5SUM:=7c5507f35f363f3f40183a2ba3c561f8 PKG_FIXUP:=libtool +PKG_INSTALL:=1 include $(INCLUDE_DIR)/package.mk @@ -39,7 +40,7 @@ CONFIGURE_VARS += \ define Package/htop/install $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/ endef $(eval $(call BuildPackage,htop)) diff --git a/admin/htop/patches/001-uClibc-friendly.patch b/admin/htop/patches/001-uClibc-friendly.patch new file mode 100644 index 0000000000..ff9b5b1397 --- /dev/null +++ b/admin/htop/patches/001-uClibc-friendly.patch @@ -0,0 +1,52 @@ +--- a/CRT.c ++++ b/CRT.c +@@ -11,7 +11,9 @@ in the source distribution for its full + #include + #include + #include ++#ifdef HAVE_EXECINFO_H + #include ++#endif + + #include "String.h" + +@@ -125,12 +127,14 @@ static void CRT_handleSIGSEGV(int sgn) { + CRT_done(); + #if __linux + fprintf(stderr, "\n\nhtop " VERSION " aborting. Please report bug at http://htop.sf.net\n"); +- #else +- fprintf(stderr, "\n\nhtop " VERSION " aborting. Unsupported platform.\n"); +- #endif ++ #ifdef HAVE_EXECINFO_H + size_t size = backtrace(backtraceArray, sizeof(backtraceArray)); + fprintf(stderr, "Backtrace: \n"); + backtrace_symbols_fd(backtraceArray, size, 2); ++ #endif ++ #else ++ fprintf(stderr, "\n\nhtop " VERSION " aborting. Unsupported platform.\n"); ++ #endif + abort(); + } + +--- a/CRT.h ++++ b/CRT.h +@@ -14,7 +14,9 @@ in the source distribution for its full + #include + #include + #include ++#ifdef HAVE_EXECINFO_H + #include ++#endif + + #include "String.h" + +--- a/configure.ac ++++ b/configure.ac +@@ -25,6 +25,7 @@ AC_HEADER_STDC + AC_CHECK_HEADERS([stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h curses.h],[:],[ + missing_headers="$missing_headers $ac_header" + ]) ++AC_CHECK_HEADERS([execinfo.h],[:],[:]) + + # Checks for typedefs, structures, and compiler characteristics. + AC_HEADER_STDBOOL