Hi Afif,

> Many thanks for the patch. Have you tried this on ppc64el with the
> latest gridengine package/upstream version in preparation in git [1]? I
> see code there that seems to at least intend to handle it.

sorry for that, indeed I patched the version in unstable.
So I worked on the git tree above, and made a new debdiff.
Some comments on the diff :
- there was some work done on ppc64el as you said : 
  https://arc.liv.ac.uk/trac/SGE/changeset/4712/sge
  Though as said in the commit upstream, this was not tested.
  So I changed a few little things (check patch header) that may be errors.
  Maybe that patch could go upstream.
- on the debian/control, I added the architecture ppc64el and there was also
  a typo in debian/rules I guess.

I also see that gridengine in debian will be based soon on SoGE (yes, from the
git tree obviously :) and https://bugs.debian.org/703256 ).
Though, I'd like to know if SoGE is fully compatible with orginal Sun GE.
Thanks,

Fred
diff -Nru gridengine-8.1.8/debian/control gridengine-8.1.8/debian/control
--- gridengine-8.1.8/debian/control	2016-02-25 16:11:30.000000000 +0100
+++ gridengine-8.1.8/debian/control	2016-02-25 15:36:09.000000000 +0100
@@ -44,7 +44,7 @@
  This package contains required shared files and the basic configuration.
 
 Package: gridengine-client
-Architecture: i386 amd64 sparc powerpc ia64 s390 s390x armel armhf mips mipsel
+Architecture: i386 amd64 sparc powerpc ppc64el ia64 s390 s390x armel armhf mips mipsel
 Depends: ${shlibs:Depends}, ${misc:Depends}, gridengine-common (= ${source:Version}), openssl
 Suggests: ssh-client, gridengine-qmon
 Conflicts: torque-client
@@ -71,7 +71,7 @@
  This package contains the Grid Engine user utilities.
 
 Package: gridengine-qmon
-Architecture: i386 amd64 sparc powerpc ia64 s390 s390x armel armhf mips mipsel
+Architecture: i386 amd64 sparc powerpc ppc64el ia64 s390 s390x armel armhf mips mipsel
 Depends: ${shlibs:Depends}, ${misc:Depends}, gridengine-common (= ${source:Version})
 Recommends: xfonts-75dpi | xfonts-100dpi
 Description: Graphical utilities for Grid Engine queue management
@@ -95,7 +95,7 @@
  This package contains the graphical Grid Engine administration frontend.
 
 Package: gridengine-master
-Architecture: i386 amd64 sparc powerpc ia64 s390 s390x armel armhf mips mipsel
+Architecture: i386 amd64 sparc powerpc ppc64el ia64 s390 s390x armel armhf mips mipsel
 Depends: ${shlibs:Depends}, ${misc:Depends}, gridengine-client (= ${binary:Version}),
   procps
 Recommends: db-util
@@ -120,7 +120,7 @@
  This package contains the Grid Engine master server.
 
 Package: gridengine-exec
-Architecture: i386 amd64 sparc powerpc ia64 s390 s390x armel armhf mips mipsel
+Architecture: i386 amd64 sparc powerpc ppc64el ia64 s390 s390x armel armhf mips mipsel
 Replaces: gridengine-master (<< 6.2-3)
 Depends: ${shlibs:Depends}, ${misc:Depends}, gridengine-common (= ${source:Version}),
  gridengine-client (= ${binary:Version}),
@@ -147,7 +147,7 @@
  This package contains the Grid Engine execution server.
 
 Package: gridengine-drmaa1.0
-Architecture: i386 amd64 sparc powerpc ia64 s390 s390x armel armhf mips mipsel
+Architecture: i386 amd64 sparc powerpc ppc64el ia64 s390 s390x armel armhf mips mipsel
 Section: libs
 Breaks: libdrmaa1.0 (<< 6.2u5-4)
 Replaces: libdrmaa1.0 (<< 6.2u5-4)
@@ -189,7 +189,7 @@
  This package contains Javadocs for the Grid Engine Java binding.
 
 Package: gridengine-drmaa-dev
-Architecture: i386 amd64 sparc powerpc ia64 s390 s390x armel armhf mips mipsel
+Architecture: i386 amd64 sparc powerpc ppc64el ia64 s390 s390x armel armhf mips mipsel
 Section: libdevel
 Breaks: libdrmaa-dev (<< 6.2u5-5)
 Replaces: libdrmaa-dev (<< 6.2u5-5)
diff -Nru gridengine-8.1.8/debian/patches/ppc64el-support.diff gridengine-8.1.8/debian/patches/ppc64el-support.diff
--- gridengine-8.1.8/debian/patches/ppc64el-support.diff	1970-01-01 01:00:00.000000000 +0100
+++ gridengine-8.1.8/debian/patches/ppc64el-support.diff	2016-02-26 09:46:29.000000000 +0100
@@ -0,0 +1,33 @@
+Description: Fix ppc64el support on Debian
+ On ppc64 LE, the code supposes that the return of "uname -m" is only powerpc64le.
+ I've never seen a value like this on Debian/Ubuntu/Opensuse/Fedora. I'm keeping it
+ though, but I'm also adding ppc64le (returned on all those 4 distros) in source/dist/util/arch.
+ For JAVA_LIB_ARCH in aimk, I've never found ppc64el in the "lib/<arch>/server/libjvm.so"
+ path, so I think it's an error and changed it to ppc64le (checked on the previous distros)
+Author: [email protected]
+Origin: https://bugs.debian.org/815754
+Bug: https://bugs.debian.org/815754
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/source/dist/util/arch
++++ b/source/dist/util/arch
+@@ -214,7 +214,7 @@
+    powerpc64)
+       lxmachine=ppc64
+       ;;
+-   powerpc64le)
++   powerpc64le | ppc64le)
+       lxmachine=ppc64el
+       ;;
+    *)
+--- a/source/aimk
++++ b/source/aimk
+@@ -2006,7 +2006,7 @@
+              if ($FORCE_32BIT == 1) then
+                 # fixme: raise error (not ppcle)?
+              else
+-                set JAVA_LIB_ARCH = ppc64el
++                set JAVA_LIB_ARCH = ppc64le
+              endif
+              breaksw
+          case lx-arm64:
diff -Nru gridengine-8.1.8/debian/patches/series gridengine-8.1.8/debian/patches/series
--- gridengine-8.1.8/debian/patches/series	2016-02-25 16:11:30.000000000 +0100
+++ gridengine-8.1.8/debian/patches/series	2016-02-25 09:31:50.000000000 +0100
@@ -0,0 +1 @@
+ppc64el-support.diff
diff -Nru gridengine-8.1.8/debian/rules gridengine-8.1.8/debian/rules
--- gridengine-8.1.8/debian/rules	2016-02-25 16:11:30.000000000 +0100
+++ gridengine-8.1.8/debian/rules	2016-02-25 15:49:28.000000000 +0100
@@ -80,7 +80,7 @@
 	  mv spooledit spooledit.bin && mv spooldefaults spooldefaults.bin && \
 	  install -m 755 $(CURDIR)/debian/spool.wrapper spooledit && \
 	  install -m 755 $(CURDIR)/debian/spool.wrapper spooldefaults && \
-	  mv $(CURDIR)/debian/tmp/usr/examples/jobsbin/lx-amd64/work .
+	  mv $(CURDIR)/debian/tmp/usr/examples/jobsbin/lx*/work .
 # Make manpage names sane
 	cd debian/tmp/usr/share/man && \
 	for k in hostnameutils submit; do \

Reply via email to