Subject: pkg/23692: mk/compiler.mk
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <john@johnrshannon.com>
List: netbsd-bugs
Date: 12/08/2003 06:29:22
>Number: 23692
>Category: pkg
>Synopsis: compiler.mk does not know about the lang/gcc3-* pkgs
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Dec 08 13:30:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: John R. Shannon
>Release: NetBSD 1.6ZG
>Organization:
johnrshannon.com
>Environment:
System: NetBSD colleen.internal.johnrshannon.com 1.6ZG NetBSD 1.6ZG (KERNEL) #0: Mon Dec 8 02:18:23 MST 2003 root@colleen.internal.johnrshannon.com:/usr/obj/usr/src/sys/arch/i386/compile/KERNEL i386
Architecture: i386
Machine: i386
>Description:
There are two gcc3 compiler systems in pkgsrc: lang/gcc3 and
lang/gcc3-*. The second is a collection of pkgs, each of which
builds gcc3 for a single language. compiler.mk knows only
about the gcc3 pkg.
>How-To-Repeat:
>Fix:
I have implemented an extension to mk/compiler.mk to recognise
lang/gcc3-*. It recognized several new environment variables:
# GCC3_C
# Always use pkgsrc gcc3 from lang/gcc3-c as a C compiler.
#
# GCC3_C++
# Always use pkgsrc gcc3 from lang/gcc3-c++ as a C++ compiler.
#
# GCC3_ADA
# Always use pkgsrc gcc3 from lang/gcc3-ada as an Ada compiler.
#
# GCC3_F77
# Always use pkgsrc gcc3 from lang/gcc3-f77 as a Fortran compiler.
#
# GCC3_JAVA
# Always use pkgsrc gcc3 from lang/gcc3-java.
#
# GCC3_OBJC
# Always use pkgsrc gcc3 from lang/gcc3-objc.
#
To go with this update, I have provided buildlink2.mk files for each of
the gcc3-* pkgs.
https://www.johnrshannon.com/NetBSD/gcc3.buildlink2.stuff.tar.gz
In the file, the buildlink2.mk files have a suffix to indicate the pkg
they belong to; the suffix should be removed on installation.
>Release-Note:
>Audit-Trail:
>Unformatted: