NetBSD Problem Report #7808

Received: (qmail 7739 invoked from network); 18 Jun 1999 17:03:35 -0000
Message-Id: <199906181703.KAA02578@nooksack.ldc.cs.wwu.edu>
Date: Fri, 18 Jun 1999 10:03:30 -0700 (PDT)
From: cgd@netbsd.org
Reply-To: cgd@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: ONLY_FOR_PLATFORM doesn't work as it's used
X-Send-Pr-Version: www-1.0

>Number:         7808
>Category:       pkg
>Synopsis:       ONLY_FOR_PLATFORM doesn't work as it's used
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 18 10:05:00 +0000 1999
>Closed-Date:    Sun Jun 20 21:06:31 +0000 1999
>Last-Modified:  Sun Jun 20 21:12:20 +0000 1999
>Originator:     Chris Demetriou
>Release:        1.4, pkgsrc dated 19990618
>Organization:
>Environment:
NetBSD speedy 1.4 NetBSD 1.4 (SPEEDY) #18: Tue May 18 12:17:14 PDT 1999     cgd@speedy:/a/users/cgd/proj/netbsd/src-1-4-branch/sys/arch/i386/compile/SPEEDY i386

(also on alpha and other architectures.)
>Description:
Many packages in pkgsrc specify that they can only be run on specific
architectures by using {} globbing in ONLY_FOR_PLATFORM.  For an example
take a look at rev 1.10 of the www/communicator Makefile (which I just
fixed).  It spec'd ONLY_FOR_PLATFORM as:

ONLY_FOR_PLATFORM=      *-*-{i386,sparc}

I didn't update it for alpha the other day because I didn't notice it
(because it never failed, when I was trying to install on alpha).


>How-To-Repeat:
Find a package that doesn't work on your architecture but whose 
Makefile is broken in this way (find pkgsrc -name Makefile | xargs grep
'ONLY_FOR_PLATFORM.*{' should to 8-), and try to build it.

Note that you're not told that it's not supported on your architecture.
>Fix:
Either fix the makefiles to specify ONLY_FOR_PLATFORM as, for
example:

ONLY_FOR_PLATFORM=	*-*-i386 *-*-sparc

or fix the package makefile templates to cope properly.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: tron 
State-Changed-When: Sun Jun 20 14:06:31 PDT 1999 
State-Changed-Why:  
I fixed the makefiles. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.