./configure for htop fails when cross compiling. ./configure can not detect wheter /proc/stat and /proc/meminfo exist. ./configure needs these answers in env vars. I updated the ebuild to make it work, the relevant lines are --- /usr/portage/sys-process/htop/htop-0.8.3-r1.ebuild 2010-05-03 20:46:02.000000000 +0200 +++ /usr/local/portage/sys-process/htop/htop-0.8.3-r1.ebuild 2010-07-19 16:53:14.000000000 +0200 @@ -39,6 +39,13 @@ src_configure() { useq debug && append-flags -DDEBUG + if [[ "$CBUILD" != "$CHOST" ]]; then + ewarn "cross compiling assuming /proc/stat exists" + export ac_cv_file__proc_stat=yes + ewarn "cross compiling assuming /proc/meminfo exists" + export ac_cv_file__proc_meminfo=yes + fi + econf \ $(use_enable openvz) \ $(use_enable vserver) \ Reproducible: Always
Created attachment 239389 [details] htop-0.8.3-r1.ebuild patched
http://htop.svn.sourceforge.net/viewvc/htop/trunk/Process.c?r1=206&r2=216 NOTE: Only the second part of the patch.
Oops, sorry.. wrong bug :(
Committed to ebuild for 1.0.1 (slightly in different syntax but essentially the same)