NetBSD Problem Report #48938
From www@NetBSD.org Sun Jun 22 15:20:55 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 20950A6531
for <gnats-bugs@gnats.NetBSD.org>; Sun, 22 Jun 2014 15:20:55 +0000 (UTC)
Message-Id: <20140622152053.9A586A6546@mollari.NetBSD.org>
Date: Sun, 22 Jun 2014 15:20:53 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: Fix lang/gcc45 on OS X Tiger PowerPC
X-Send-Pr-Version: www-1.0
>Number: 48938
>Category: pkg
>Synopsis: Fix lang/gcc45 on OS X Tiger PowerPC
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: sevan
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Jun 22 15:25:00 +0000 2014
>Closed-Date: Tue Jan 26 01:10:17 +0000 2016
>Last-Modified: Tue Jan 26 01:10:17 +0000 2016
>Originator: Sevan
>Release: pkgsrc-current 20/6/2014
>Organization:
>Environment:
Darwin 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
>Description:
Attached patch allows lang/gcc45 to build on OS X Tiger a PowerBook G4.
The patch sets the following:
1) Use DWARF2 as the multistage tests fail otherwise.
2) Don't build multilib support on a 32bit PowerPC system because 64bit binaries are not going to work.
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/gcc45/Makefile,v
retrieving revision 1.16
diff -u -r1.16 Makefile
--- Makefile 29 May 2014 23:36:42 -0000 1.16
+++ Makefile 22 Jun 2014 14:22:35 -0000
@@ -89,6 +89,14 @@
CONFIGURE_ARGS+= STRIP_FOR_TARGET=${TOOLS_PLATFORM.strip}
.endif
+.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
+CONFIGURE_ARGS+= --with-dwarf2
+.endif
+
+.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-powerpc)
+CONFIGURE_ARGS+= --disable-multilib
+.endif
+
CONFIGURE_ENV+= CONFIG_SHELL=${CONFIG_SHELL}
MAKE_ENV+= SHELL=${CONFIG_SHELL}
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->sevan
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Sun, 10 Jan 2016 19:53:00 +0000
Responsible-Changed-Why:
Sevan, want to commit this yourself? :)
State-Changed-From-To: open->closed
State-Changed-By: sevan@NetBSD.org
State-Changed-When: Tue, 26 Jan 2016 01:10:17 +0000
State-Changed-Why:
Changes commited by pho@ in r1.17 of lang/gcc45/Makefile
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.