Package: wip
Version: 2p3-8.1
Severity: wishlist
Tags: patch

When building 'wip' on ppc64/unstable, I get the following error:

/usr/bin/make 
make[1]: Entering directory `/wip-2p3'
./domake
Host name set to Linux.
### Invalid Host type: [linux].
### Host argument must be one of:
### sun solaris sgi u2 convex osf x86-linux x86_64-linux sparc-linux 
alpha-linux aix hpux
make[1]: *** [default] Error 1
make[1]: Leaving directory `/wip-2p3'
make: *** [build-stamp] Error 2

With the attached patch 'wip' can be compiled on ppc64.

Regards
Andreas Jochens

diff -urN ../tmp-orig/wip-2p3/makewip ./makewip
--- ../tmp-orig/wip-2p3/makewip 2006-04-08 07:36:18.000000000 +0000
+++ ./makewip   2006-04-08 07:32:45.000000000 +0000
@@ -208,7 +208,7 @@
 #
 #  The following is a list of acceptable hosts (all lowercase).
 #
-set hostList = (sun solaris sgi u2 convex osf x86-linux x86_64-linux 
sparc-linux alpha-linux aix hpux)
+set hostList = (sun solaris sgi u2 convex osf powerpc64-linux x86-linux 
x86_64-linux sparc-linux alpha-linux aix hpux)
 #
 #  Set up the defaults for the command line options.
 #
@@ -318,6 +318,8 @@
       set wiphost = 'x86-linux'
     else if (($v_uname[1] == 'Linux') && ($m_uname =~ *86_64)) then
       set wiphost = 'x86_64-linux'
+    else if (($v_uname[1] == 'Linux') && ($m_uname =~ *pc64)) then
+      set wiphost = 'powerpc64-linux'
     else if (($v_uname[1] == 'Linux') && ($m_uname == sparc)) then
       set wiphost = 'sparc-linux'
     else if (($v_uname[1] == 'Linux') && ($m_uname == alpha)) then
@@ -357,6 +359,7 @@
 if ("$wiphost" ==    'mips') set wiphost = 'sgi'
 if ("$wiphost" ==   'x86-linux') set wiphost = 'x86-linux'
 if ("$wiphost" ==   'x86_64-linux') set wiphost = 'x86_64-linux'
+if ("$wiphost" ==   'powerpc64-linux') set wiphost = 'powerpc64-linux'
 if ("$wiphost" ==   'alpha-linux') set wiphost = 'alpha-linux'
 if ("$wiphost" ==   'sparc-linux') set wiphost = 'sparc-linux'
 #
@@ -559,6 +562,20 @@
       set theM = "$theM -O"
       set cFlags = "$cFlags -O -Dx86_64linux"
     endif
+else if ("$wiphost" == 'powerpc64-linux') then
+#  For Linux, f77 is a shell script which runs f2c.
+    set doranlib = 1
+    set doliblm = 1
+#    set f77lib = ( $f77lib -lf2c )
+    set f77lib = ( $f77lib -lpng -lz -lg2c )
+    set theM = 'g77'
+    if ($dodebug > 0) then
+      set theM = "$theM -g"
+      set cFlags = "$cFlags -g -Dpowerpc64linux"
+    else
+      set theM = "$theM -O"
+      set cFlags = "$cFlags -O -Dpowerpc64linux"
+    endif
 else if ("$wiphost" == 'sparc-linux') then
 #  For Linux, f77 is a shell script which runs f2c.
     set doranlib = 1
diff -urN ../tmp-orig/wip-2p3/wip-patch ./wip-patch
--- ../tmp-orig/wip-2p3/wip-patch       2006-04-08 07:36:18.000000000 +0000
+++ ./wip-patch 2006-04-08 07:27:22.000000000 +0000
@@ -5,28 +5,31 @@
  #  The following is a list of acceptable hosts (all lowercase).
  #
 -set hostList = (sun solaris sgi u2 convex osf x86-linux sparc-linux 
alpha-linux aix hpux)
-+set hostList = (sun solaris sgi u2 convex osf x86-linux x86_64-linux 
sparc-linux alpha-linux aix hpux)
++set hostList = (sun solaris sgi u2 convex osf powerpc64-linux x86-linux 
x86_64-linux sparc-linux alpha-linux aix hpux)
  #
  #  Set up the defaults for the command line options.
  #
-@@ -316,6 +316,8 @@
+@@ -316,6 +316,10 @@
        set wiphost = 'sgi'
      else if (($v_uname[1] == 'Linux') && ($m_uname =~ *86)) then
        set wiphost = 'x86-linux'
 +    else if (($v_uname[1] == 'Linux') && ($m_uname =~ *86_64)) then
 +      set wiphost = 'x86_64-linux'
++    else if (($v_uname[1] == 'Linux') && ($m_uname =~ *pc64)) then
++      set wiphost = 'powerpc64-linux'
      else if (($v_uname[1] == 'Linux') && ($m_uname == sparc)) then
        set wiphost = 'sparc-linux'
      else if (($v_uname[1] == 'Linux') && ($m_uname == alpha)) then
-@@ -354,6 +356,7 @@
+@@ -354,6 +358,8 @@
  if ("$wiphost" ==    'sun3') set wiphost = 'sun'
  if ("$wiphost" ==    'mips') set wiphost = 'sgi'
  if ("$wiphost" ==   'x86-linux') set wiphost = 'x86-linux'
 +if ("$wiphost" ==   'x86_64-linux') set wiphost = 'x86_64-linux'
++if ("$wiphost" ==   'powerpc_64-linux') set wiphost = 'powerpc64-linux'
  if ("$wiphost" ==   'alpha-linux') set wiphost = 'alpha-linux'
  if ("$wiphost" ==   'sparc-linux') set wiphost = 'sparc-linux'
  #
-@@ -542,6 +545,20 @@
+@@ -542,6 +550,34 @@
        set theM = "$theM -O"
        set cFlags = "$cFlags -O -Dx86linux"
      endif
@@ -44,6 +47,20 @@
 +      set theM = "$theM -O"
 +      set cFlags = "$cFlags -O -Dx86_64linux"
 +    endif
++else if ("$wiphost" == 'powerpc64-linux') then
++#  For Linux, f77 is a shell script which runs f2c.
++    set doranlib = 1
++    set doliblm = 1
++#    set f77lib = ( $f77lib -lf2c )
++    set f77lib = ( $f77lib -lpng -lz -lg2c )
++    set theM = 'g77'
++    if ($dodebug > 0) then
++      set theM = "$theM -g"
++      set cFlags = "$cFlags -g -Dpowerpc64linux"
++    else
++      set theM = "$theM -O"
++      set cFlags = "$cFlags -O -Dpowerpc64linux"
++    endif
  else if ("$wiphost" == 'sparc-linux') then
  #  For Linux, f77 is a shell script which runs f2c.
      set doranlib = 1


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to