tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkgsrc on Linux/PowerPC64LE (Power8)

I got bored of trapping my fingers in the door repeatedly with AIX so
thought I'd add Linux running on Power8 as well.
I started off on the wrong path thinking that I need to have 32bit
libraries installed but actually all I needed to do was teach pkgsrc
where to find libraries on a 64bit Power8 system.

Below is the change I've made so far, I thought I'd follow up to ask
uname -a output reports
Linux sys-73587 3.12.28-4-default #1 SMP Thu Sep 25 17:02:34 UTC 2014
(9879bd4) ppc64le ppc64le ppc64le GNU/Linux

System is a Power8 IBM running Suse enterprise linux 12.

By default, bmake show-var VARNAME=MACHINE_ARCH reports powerpc64le
Should I trim this down to powerpc64 via sed in mk/ or just
stick with powerpc64le. I made this change because I thought it would
be better to keep the variants of architectures down.


Index: mk/platform/
RCS file: /cvsroot/pkgsrc/mk/platform/,v
retrieving revision 1.61
diff -u -r1.61
--- mk/platform/        21 Apr 2015 17:01:56 -0000      1.61
+++ mk/platform/        6 May 2015 23:42:36 -0000
@@ -112,6 +112,11 @@

+.if ${MACHINE_ARCH} == "powerpc64"
+ABI?=          64
 # When building 32-bit packages on x86_64 GNU ld isn't smart enough to
 # figure out the target architecture based on the objects so we need to
 # explicitly set it.
Index: mk/
RCS file: /cvsroot/pkgsrc/mk/,v
retrieving revision 1.364
diff -u -r1.364
--- mk/     29 Apr 2015 14:23:23 -0000      1.364
+++ mk/     6 May 2015 23:42:36 -0000
@@ -251,7 +251,7 @@
 OS_VERSION:=           ${OS_VERSION:C/-.*$//}
 LOWER_OPSYS?=          linux
 .  if !defined(LOWER_ARCH)
-LOWER_ARCH!=           ${UNAME} -m | sed -e 's/i.86/i386/' -e 's/ppc/powerpc/'
+LOWER_ARCH!=           ${UNAME} -m | sed -e 's/i.86/i386/' -e
's/ppc/powerpc/' -e 's/powerpc64le/powerpc64/'
 .  endif # !defined(LOWER_ARCH)

Home | Main Index | Thread Index | Old Index