tech-pkg archive

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

pkgsrc on Linux/PowerPC64LE (Power8)



Hi,
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
about MACHINE_ARCH
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/bsd.pref.mk or just
stick with powerpc64le. I made this change because I thought it would
be better to keep the variants of architectures down.


Sevan

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

+.if ${MACHINE_ARCH} == "powerpc64"
+ABI?=          64
+LIBABISUFFIX?= 64
+.endif
+
 # 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/bsd.prefs.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.prefs.mk,v
retrieving revision 1.364
diff -u -r1.364 bsd.prefs.mk
--- mk/bsd.prefs.mk     29 Apr 2015 14:23:23 -0000      1.364
+++ mk/bsd.prefs.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)
 MACHINE_ARCH=          ${LOWER_ARCH}
 MAKEFLAGS+=            LOWER_ARCH=${LOWER_ARCH:Q}


Home | Main Index | Thread Index | Old Index