NetBSD Problem Report #30144
From juan@xtrarom.org Thu May 5 18:12:17 2005
Return-Path: <juan@xtrarom.org>
Received: from xtrarom.org (91.Red-80-32-6.pooles.rima-tde.net [80.32.6.91])
by narn.netbsd.org (Postfix) with ESMTP id 11A9D63B116
for <gnats-bugs@gnats.NetBSD.org>; Thu, 5 May 2005 18:12:17 +0000 (UTC)
Message-Id: <20050505181210.E47FA16970@xtrarom.org>
Date: Thu, 5 May 2005 20:12:10 +0200 (CEST)
From: juan@xtrarom.org
Reply-To: juan@xtrarom.org
To: gnats-bugs@netbsd.org
Subject: USE_LANGUAGES has always defined 'c'
X-Send-Pr-Version: 3.95
>Number: 30144
>Category: pkg
>Synopsis: USE_LANGUAGES has always defined 'c'
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 05 18:13:00 +0000 2005
>Closed-Date: Sat Oct 07 19:03:56 +0000 2006
>Last-Modified: Sat Oct 07 19:03:56 +0000 2006
>Originator: Juan RP
>Release: NetBSD 3.99.3
>Organization:
>Environment:
System: NetBSD Nocturno 3.99.3 NetBSD 3.99.3 (Nocturno) #22: Thu May 5 04:51:13 CEST 2005 juan@Nocturno:/home/juan/build/obj/sys/arch/i386/compile/Nocturno i386
Architecture: i386
Machine: i386
>Description:
This code on pkgsrc/mk/compiler.mk ignores the empty
value from USE_LANGUAGES:
# Always require a C compiler for proper compiler detection.
USE_LANGUAGES?= c
.if empty(USE_LANGUAGES:Mc)
USE_LANGUAGES:= c ${USE_LANGUAGES}
.endif
The compiler wrappers for the 'c' language are always
created even with USE_LANGUAGES empty.
Not really a problem on modern computers, but maybe
in slow architectures this might be slow.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: Roland Illig <roland.illig@gmx.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/30144
Date: Mon, 06 Jun 2005 11:13:07 +0200
What about this?
USE_LANGUAGES?= c
# Always require a C compiler for proper compiler detection.
.if empty(USE_LANGUAGES:Mc) && !empty(USE_LANGAGES:Mc++)
USE_LANGUAGES:= c ${USE_LANGUAGES}
.endif
Roland
State-Changed-From-To: open->closed
State-Changed-By: reed@netbsd.org
State-Changed-When: Sat, 07 Oct 2006 19:03:56 +0000
State-Changed-Why:
Looks like this is fixed by rillig in mk/compiler.mk 1.53.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.