Browse Source

braindead configure script checks for gcc by calling basename and therefore fails to build at least under SunOS9

Thorsten Hohmeier 19 years ago
parent
commit
dff4ec289d
2 changed files with 17 additions and 3 deletions
  1. 12 0
      top/top.patch
  2. 5 3
      top/top.spec

+ 12 - 0
top/top.patch

@@ -0,0 +1,12 @@
+Index: configure
+--- configure.orig	2006-02-15 23:26:59.000000000 +0100
++++ configure	2006-11-16 11:09:36.371224000 +0100
+@@ -3871,7 +3871,7 @@
+ if test "$bits" = "64"; then
+     echo "$as_me:$LINENO: result: 64 bit" >&5
+ echo "${ECHO_T}64 bit" >&6
+-    if test `basename $CC` = "gcc"; then
++    if test "$GCC" = "yes"; then
+         extra_flag="-m64"
+     fi
+     echo "$as_me:$LINENO: checking whether $CC accepts $extra_flag" >&5

+ 5 - 3
top/top.spec

@@ -31,16 +31,17 @@ Name:         top
 Summary:      Full-Screen Process Display
 URL:          http://www.spang.uk.eu.org/top/
 Vendor:       William LeFebvre
-Packager:     OpenPKG Foundation e.V.
-Distribution: OpenPKG Community
+Packager:     OpenPKG
+Distribution: OpenPKG
 Class:        EVAL
 Group:        Monitoring
 License:      Freely Redistributable
 Version:      %{V_opkg}
-Release:      20061013
+Release:      20061116
 
 #   list of sources
 Source0:      ftp://ftp.groupsys.com/pub/top/top-%{V_dist}.tar.gz
+Patch0:       top.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -63,6 +64,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q -n top-%{V_dist}
+    %patch -p0
 
 %build
     #   configure program