From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Feb 8 21:40:38 2005 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91E1816A50C for ; Tue, 8 Feb 2005 21:40:37 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2ACFE43D5E for ; Tue, 8 Feb 2005 21:40:31 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j18LeVhD040820 for ; Tue, 8 Feb 2005 21:40:31 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j18LeVPv040819; Tue, 8 Feb 2005 21:40:31 GMT (envelope-from gnats) Resent-Date: Tue, 8 Feb 2005 21:40:31 GMT Resent-Message-Id: <200502082140.j18LeVPv040819@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Johan van Selst Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 030C516A4CE for ; Tue, 8 Feb 2005 21:31:59 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF79543D39 for ; Tue, 8 Feb 2005 21:31:57 +0000 (GMT) (envelope-from johans@stack.nl) Received: by mailhost.stack.nl (Postfix, from userid 65534) id CA8CB1F095; Tue, 8 Feb 2005 22:31:56 +0100 (CET) Received: from mud.stack.nl (mud.stack.nl [IPv6:2001:610:1108:5011:207:e9ff:fe14:b498]) by mailhost.stack.nl (Postfix) with ESMTP id AFE741F02C for ; Tue, 8 Feb 2005 22:31:55 +0100 (CET) Received: by mud.stack.nl (Postfix, from userid 801) id 0C64A171E4; Tue, 8 Feb 2005 22:32:15 +0100 (CET) Message-Id: <20050208213215.0C64A171E4@mud.stack.nl> Date: Tue, 8 Feb 2005 22:32:15 +0100 (CET) From: Johan van Selst To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/77278: lang/aleph: fix compilation on amd64 (and ia64) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Johan van Selst List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2005 21:40:38 -0000 >Number: 77278 >Category: ports >Synopsis: lang/aleph: fix compilation on amd64 (and ia64) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Feb 08 21:40:30 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Johan van Selst >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: System: FreeBSD mud.stack.nl 5.3-STABLE FreeBSD 5.3-STABLE #0: Mon Jan 31 22:31:14 CET 2005 root@mud.stack.nl:/usr/obj/usr/src/sys/mud i386 >Description: Problem: - cpu amd64 was not recognized - failed to link with static system library Fix: add amd64, remove unnecessary library I have no ia64 test machine, but it should run there as well. >How-To-Repeat: >Fix: This patch introduces three extra files/patch* files. cnf/mak/aleph-gcc-3.mak is changed to remove unused libsupc++ The others add definitions to recognize amd64 (no special handling required) diff -uNr aleph/files/patch-cnf_bin_aleph-guess aleph/files/patch-cnf_bin_aleph-guess --- aleph/files/patch-cnf_bin_aleph-guess Thu Jan 1 01:00:00 1970 +++ aleph/files/patch-cnf_bin_aleph-guess Tue Feb 8 21:55:35 2005 @@ -0,0 +1,10 @@ +--- cnf/bin/aleph-guess.orig Tue Feb 8 21:33:40 2005 ++++ cnf/bin/aleph-guess Tue Feb 8 21:33:37 2005 +@@ -113,6 +113,7 @@ + mips) proc_name=mips;; + mipsel) proc_name=mipsel;; + parisc64) proc_name=pa64;; ++ amd64) proc_name=amd64;; + ia64) proc_name=ia64;; + s390) proc_name=s390;; + esac diff -uNr aleph/files/patch-cnf_mak_aleph-gcc-3.mak aleph/files/patch-cnf_mak_aleph-gcc-3.mak --- aleph/files/patch-cnf_mak_aleph-gcc-3.mak Thu Jan 1 01:00:00 1970 +++ aleph/files/patch-cnf_mak_aleph-gcc-3.mak Tue Feb 8 21:55:22 2005 @@ -0,0 +1,11 @@ +--- cnf/mak/aleph-gcc-3.mak.orig Tue Feb 8 21:55:12 2005 ++++ cnf/mak/aleph-gcc-3.mak Tue Feb 8 21:43:13 2005 +@@ -43,7 +43,7 @@ ALPCPPVERS = 3 + # - compiler dependant libraries - + # ---------------------------------------------------------------------------- + +-ALPCPPLIBS = -lsupc++ ++ALPCPPLIBS = + + # ---------------------------------------------------------------------------- + # - platform dependant linking flags - diff -uNr aleph/files/patch-src_plt_acf_ccnf.cpp aleph/files/patch-src_plt_acf_ccnf.cpp --- aleph/files/patch-src_plt_acf_ccnf.cpp Thu Jan 1 01:00:00 1970 +++ aleph/files/patch-src_plt_acf_ccnf.cpp Tue Feb 8 21:55:23 2005 @@ -0,0 +1,37 @@ +--- src/plt/acf/ccnf.cpp.orig Tue Feb 8 21:37:05 2005 ++++ src/plt/acf/ccnf.cpp Tue Feb 8 21:38:33 2005 +@@ -41,6 +41,7 @@ + #define ALEPH_PROCTYPE_PA64 9 + #define ALEPH_PROCTYPE_IA64 10 + #define ALEPH_PROCTYPE_S390 11 ++#define ALEPH_PROCTYPE_AMD64 12 + + // recognized processor name + #define ALEPH_PROCNAME_IA "ia" +@@ -54,6 +55,7 @@ + #define ALEPH_PROCNAME_PA64 "pa64" + #define ALEPH_PROCNAME_IA64 "ia64" + #define ALEPH_PROCNAME_S390 "s390" ++#define ALEPH_PROCNAME_AMD64 "amd64" + + // force size type with S390 + #if defined(__s390__) +@@ -114,6 +116,9 @@ + // s390 + if (strcmp (proc, ALEPH_PROCNAME_S390) == 0) + return ALEPH_PROCTYPE_S390; ++ // amd64 ++ if (strcmp (proc, ALEPH_PROCNAME_AMD64) == 0) ++ return ALEPH_PROCTYPE_AMD64; + // unknown + return ALEPH_PROCTYPE_UNKNOWN; + } +@@ -228,6 +233,8 @@ + ALEPH_PROCTYPE_IA64); + fprintf (stdout, "#define ALEPH_PROCTYPE_S390 %d\n", + ALEPH_PROCTYPE_S390); ++ fprintf (stdout, "#define ALEPH_PROCTYPE_AMD64 %d\n", ++ ALEPH_PROCTYPE_AMD64); + fprintf (stdout, "\n"); + + // install the config names >Release-Note: >Audit-Trail: >Unformatted: