* [Buildroot] [PATCH] Bump version of htop to 1.0.
@ 2011-11-23 18:36 ANDY KENNEDY
2011-11-23 19:24 ` ANDY KENNEDY
2011-11-26 20:03 ` Peter Korsgaard
0 siblings, 2 replies; 5+ messages in thread
From: ANDY KENNEDY @ 2011-11-23 18:36 UTC (permalink / raw)
To: buildroot
htop 1.0 was released 11-2011. Bumping version in BuildRoot
from 0.9 to 1.0.
Signed-off-by: Andy Kennedy <Andy.Kennedy@Adtran.com>
---
diff -Naur a/package/htop/htop.mk b/package/htop/htop.mk
--- a/package/htop/htop.mk 2011-11-22 13:59:37.000000000 -0600
+++ b/package/htop/htop.mk 2011-11-23 12:25:53.000000000 -0600
@@ -4,10 +4,11 @@
#
#############################################################
-HTOP_VERSION = 0.9
+HTOP_VERSION = 1.0
HTOP_SOURCE = htop-$(HTOP_VERSION).tar.gz
HTOP_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/htop/$(HTOP_VERSION)
HTOP_DEPENDENCIES = ncurses
HTOP_AUTORECONF = YES
+HTOP_CONF_OPT += --disable-unicode
-$(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,package,htop))
diff -Naur a/package/htop/htop.patch b/package/htop/htop.patch
--- a/package/htop/htop.patch 2011-11-22 13:59:37.000000000 -0600
+++ b/package/htop/htop.patch 2011-11-23 12:25:27.000000000 -0600
@@ -1,75 +1,25 @@
-# This patch removes the hard dependency on backtrace by checking for
-# it at compile time and adds a cross-compile /proc check.
-# Patch given to me by Hisham <hisham.hm@gmail.com> (htop-general)
-#
-# This patch is taken from upstream svn (r213, r215)
+# This patch removes the check for native_affinity for cross compiling.
+# This patch has been pushed to htop on 23 November 2011, however, is
+# not in the 1.0 release and may not be exactly what Hisham puts into
+# the official build.
#
# Signed-off-by: Andy Kennedy <Andy.Kennedy@adtran.com>
-diff -Naur a/CRT.c b/CRT.c
---- a/CRT.c 2010-11-23 09:56:32.000000000 -0600
-+++ b/CRT.c 2011-03-21 17:08:21.000000000 -0500
-@@ -11,7 +11,9 @@
- #include <signal.h>
- #include <stdlib.h>
- #include <stdbool.h>
-+#ifdef HAVE_EXECINFO_H
- #include <execinfo.h>
-+#endif
-
- #include "String.h"
-
-@@ -125,12 +127,14 @@
- 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();
- }
-
-diff -Naur a/CRT.h b/CRT.h
---- a/CRT.h 2010-11-23 09:56:32.000000000 -0600
-+++ b/CRT.h 2011-03-21 17:06:16.000000000 -0500
-@@ -14,7 +14,9 @@
- #include <signal.h>
- #include <stdlib.h>
- #include <stdbool.h>
-+#ifdef HAVE_EXECINFO_H
- #include <execinfo.h>
-+#endif
-
- #include "String.h"
-
diff -Naur a/configure.ac b/configure.ac
---- a/configure.ac 2010-11-23 09:56:32.000000000 -0600
-+++ b/configure.ac 2011-03-21 17:06:16.000000000 -0500
-@@ -25,6 +25,7 @@
- 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
-@@ -99,10 +100,10 @@
- AC_MSG_ERROR([missing headers: $missing_headers])
- fi
-
--
--
-+if test "$cross_compiling" = "no"; then
+--- a/configure.ac 2011-11-20 20:46:48.000000000 -0600
++++ b/configure.ac 2011-11-23 10:41:44.000000000 -0600
+@@ -111,7 +111,6 @@
+ if test "$cross_compiling" = "no"; then
AC_CHECK_FILE($PROCDIR/stat,,AC_MSG_ERROR(Cannot find /proc/stat. Make sure you have a Linux-compatible /proc filesystem mounted. See the file README for help.))
AC_CHECK_FILE($PROCDIR/meminfo,,AC_MSG_ERROR(Cannot find /proc/meminfo. Make sure you have a Linux-compatible /proc filesystem mounted. See the file README for help.))
+-fi
+
+ AC_ARG_ENABLE(native_affinity, [AC_HELP_STRING([--enable-native-affinity], [enable native sched_setaffinity and sched_getaffinity for affinity support, disables hwloc])], ,enable_native_affinity="yes")
+ if test "x$enable_native_affinity" = xyes; then
+@@ -130,6 +129,7 @@
+ AC_MSG_RESULT([yes])],
+ [AC_MSG_RESULT([no])])
+ fi
+fi
-
- AC_ARG_ENABLE(plpa, [AC_HELP_STRING([--enable-plpa], [enable PLPA support for CPU affinity])], ,enable_plpa="yes")
- PLPA_INCLUDED
+
+ AC_ARG_ENABLE(hwloc, [AC_HELP_STRING([--enable-hwloc], [enable hwloc support for CPU affinity])],, enable_hwloc="no")
+ if test "x$enable_hwloc" = xyes
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] Bump version of htop to 1.0.
2011-11-23 18:36 [Buildroot] [PATCH] Bump version of htop to 1.0 ANDY KENNEDY
@ 2011-11-23 19:24 ` ANDY KENNEDY
2011-11-26 20:03 ` Peter Korsgaard
1 sibling, 0 replies; 5+ messages in thread
From: ANDY KENNEDY @ 2011-11-23 19:24 UTC (permalink / raw)
To: buildroot
Comment on the patch change:
>>> I think it disables the "set CPU affinity" feature ("a" key)
>>> altogether. It only matters if you have multiple CPUs.
>>> -- Hisham
If this will cause problems for anyone, let me known and I'll
make a better patch (based off of the current svn version).
Andy
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] Bump version of htop to 1.0.
2011-11-23 18:36 [Buildroot] [PATCH] Bump version of htop to 1.0 ANDY KENNEDY
2011-11-23 19:24 ` ANDY KENNEDY
@ 2011-11-26 20:03 ` Peter Korsgaard
2011-11-29 14:06 ` ANDY KENNEDY
1 sibling, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2011-11-26 20:03 UTC (permalink / raw)
To: buildroot
>>>>> "ANDY" == ANDY KENNEDY <ANDY.KENNEDY@adtran.com> writes:
ANDY> htop 1.0 was released 11-2011. Bumping version in BuildRoot
ANDY> from 0.9 to 1.0.
ANDY> Signed-off-by: Andy Kennedy <Andy.Kennedy@Adtran.com>
ANDY> ---
ANDY> diff -Naur a/package/htop/htop.mk b/package/htop/htop.mk
ANDY> --- a/package/htop/htop.mk 2011-11-22 13:59:37.000000000 -0600
ANDY> +++ b/package/htop/htop.mk 2011-11-23 12:25:53.000000000 -0600
ANDY> @@ -4,10 +4,11 @@
ANDY> #
ANDY> #############################################################
ANDY> -HTOP_VERSION = 0.9
ANDY> +HTOP_VERSION = 1.0
ANDY> HTOP_SOURCE = htop-$(HTOP_VERSION).tar.gz
ANDY> HTOP_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/htop/$(HTOP_VERSION)
ANDY> HTOP_DEPENDENCIES = ncurses
ANDY> HTOP_AUTORECONF = YES
ANDY> +HTOP_CONF_OPT += --disable-unicode
ANDY> -$(eval $(call AUTOTARGETS))
ANDY> +$(eval $(call AUTOTARGETS,package,htop))
Don't change this. The package dir / name arguments are no longer
needed.
Other than that it looks fine, committed to next - Thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] Bump version of htop to 1.0.
2011-11-26 20:03 ` Peter Korsgaard
@ 2011-11-29 14:06 ` ANDY KENNEDY
2011-11-29 14:55 ` Peter Korsgaard
0 siblings, 1 reply; 5+ messages in thread
From: ANDY KENNEDY @ 2011-11-29 14:06 UTC (permalink / raw)
To: buildroot
> ANDY> -$(eval $(call AUTOTARGETS))
> ANDY> +$(eval $(call AUTOTARGETS,package,htop))
>
> Don't change this. The package dir / name arguments are no longer
> needed.
>
> Other than that it looks fine, committed to next - Thanks.
>
> --
> Bye, Peter Korsgaard
Ah, I wondered about this. I'm building the patches off of
a very old tree. I saw that but didn't think anything about it.
I'll try to keep this in mind (and update to the latest BuildRoot).
Do I need to change and resubmit, or did you just fix it for
me?
Thanks,
Andy
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] Bump version of htop to 1.0.
2011-11-29 14:06 ` ANDY KENNEDY
@ 2011-11-29 14:55 ` Peter Korsgaard
0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2011-11-29 14:55 UTC (permalink / raw)
To: buildroot
>>>>> "ANDY" == ANDY KENNEDY <ANDY.KENNEDY@adtran.com> writes:
Hi,
ANDY> Ah, I wondered about this. I'm building the patches off of
ANDY> a very old tree. I saw that but didn't think anything about it.
ANDY> I'll try to keep this in mind (and update to the latest BuildRoot).
ANDY> Do I need to change and resubmit, or did you just fix it for
ANDY> me?
I already fixed it and committed to the next branch, which I will merge
into main after 2011.11 is out (some time tomorrow).
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-11-29 14:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-23 18:36 [Buildroot] [PATCH] Bump version of htop to 1.0 ANDY KENNEDY
2011-11-23 19:24 ` ANDY KENNEDY
2011-11-26 20:03 ` Peter Korsgaard
2011-11-29 14:06 ` ANDY KENNEDY
2011-11-29 14:55 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox