Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 2008 20:23:22 GMT
From:      "Pedro F. Giffuni" <pfgshield-freebsd@yahoo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/125614: devel/bin86 add support for amd64
Message-ID:  <200807142023.m6EKNMP6033539@www.freebsd.org>
Resent-Message-ID: <200807142030.m6EKU4cr066395@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         125614
>Category:       ports
>Synopsis:       devel/bin86 add support for amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 14 20:30:04 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Pedro F. Giffuni
>Release:        6.3-Release
>Organization:
>Environment:
FreeBSD kakumen.cable.net.co 6.3-RELEASE FreeBSD 6.3-RELEASE #10: Sat Jan 19 01:13:55 COT 2008     root@kakumen.cable.net.co:/usr/src/sys/amd64/compile/SMP  amd64

>Description:
Build on amd64, ripped with minor edition from some posting from Ken Moffat in a linux group.

>How-To-Repeat:

>Fix:
diff -ruN bin86.orig/Makefile bin86/Makefile
--- bin86.orig/Makefile	2008-07-14 14:12:05.000000000 -0500
+++ bin86/Makefile	2008-07-14 14:42:35.000000000 -0500
@@ -19,7 +19,7 @@
 PORTDOCS=	ChangeLog README README-0.4
 MAN1=		as86.1 ld86.1
 
-ONLY_FOR_ARCHS=	i386
+ONLY_FOR_ARCHS=	i386 amd64
 
 PLIST_FILES+=	${BINS:C/..\//bin\//g}
 
diff -ruN bin86.orig/files/patch-ld_ld_c bin86/files/patch-ld_ld_c
--- bin86.orig/files/patch-ld_ld_c	2008-07-14 14:12:05.000000000 -0500
+++ bin86/files/patch-ld_ld_c	2008-07-14 14:59:25.000000000 -0500
@@ -1,9 +1,11 @@
---- ld/ld.c.orig	Wed Dec 30 12:20:50 1998
-+++ ld/ld.c	Thu Oct 19 17:04:00 2000
-@@ -2,6 +2,7 @@
+--- ld/ld.c.orig	2004-01-21 16:17:09.000000000 -0500
++++ ld/ld.c	2008-07-14 14:56:28.000000000 -0500
+@@ -2,6 +2,9 @@
  
  /* Copyright (C) 1994 Bruce Evans */
  
++#include <errno.h>
++
 +#undef BUGCOMPAT
  #include "syshead.h"
  #include "const.h"
diff -ruN bin86.orig/files/patch-ld_x86_aout_h bin86/files/patch-ld_x86_aout_h
--- bin86.orig/files/patch-ld_x86_aout_h	1969-12-31 19:00:00.000000000 -0500
+++ bin86/files/patch-ld_x86_aout_h	2008-07-14 15:06:18.000000000 -0500
@@ -0,0 +1,12 @@
+--- ld/x86_aout.h.orig	2008-07-14 15:03:10.000000000 -0500
++++ ld/x86_aout.h	2008-07-14 15:04:55.000000000 -0500
+@@ -12,6 +12,9 @@
+ #if defined(i386) || defined(__BCC__) || defined(MSDOS)
+ typedef long Long;
+ #define __OUT_OK 1
++#elif __amd64__
++typedef int Long;
++#define __OUT_OK 1
+ #else
+ typedef char Long[4];
+ #endif


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807142023.m6EKNMP6033539>