tech-pkg archive

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

Re: SunOS 64-bit ABI bootstrap



Hi,

From: Jonathan Perkin <jperkin%joyent.com@localhost>, Date: Fri, 22 Jan 2016 13:39:40 +0000

> * On 2016-01-22 at 13:36 GMT, Ryo ONODERA wrote:
> 
>> I have gotten the following error on SmartOS.
>> Can anyone fix this problem?
> 
> This is a known issue at this time, affects a few other operating
> systems as well, and will be fixed by my patch proposed in the "Fixing
> MACHINE_ARCH" thread on this list.
> 
> I'm just waiting for enough feedback before committing the patch, as
> it touches quite a few areas.

Thanks for your quick response.

Do you have check list for your patch?
I have no idea what platform/architecture/OS have confirmed already.

By the way, if your patch will not be committed soon,
can I commit the following workaround?

Index: bootstrap/bootstrap
===================================================================
RCS file: /cvsroot/pkgsrc/bootstrap/bootstrap,v
retrieving revision 1.226
diff -u -r1.226 bootstrap
--- bootstrap/bootstrap	6 Jan 2016 17:59:58 -0000	1.226
+++ bootstrap/bootstrap	22 Jan 2016 13:47:42 -0000
@@ -847,7 +847,15 @@
 	idprog="/usr/xpg4/bin/id"
 	groupsprog="${idprog} -gn"
 	whoamiprog="${idprog} -un"
-	machine_arch=`uname -p | sed -e 's/i86pc/i386/'`
+  if [ "$abi" = "32" ]; then
+    machine_arch=`uname -p | sed -e 's/i86pc/i386/'`
+    set_machine_arch=yes
+    bmakexargs="MACHINE_ARCH=$machine_arch"
+  else
+    machine_arch=`uname -p | sed -e 's/i86pc/x86_64/'`
+    set_machine_arch=yes
+    bmakexargs="MACHINE_ARCH=$machine_arch"
+  fi
 	check_compiler=yes
 	;;
 UnixWare)

--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Home | Main Index | Thread Index | Old Index