Subject: pkg/12949: PVM package ignores CFLAGS, CC, and misparses PKG_FC.
To: None <gnats-bugs@gnats.netbsd.org>
From: Thor Simon <tls@cs.stevens-tech.edu>
List: netbsd-bugs
Date: 05/15/2001 16:40:39
>Number:         12949
>Category:       pkg
>Synopsis:       PVM package ignores CFLAGS, CC, and misparses PKG_FC.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 15 13:40:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        20010510
>Organization:
The NetBSD Project
>Environment:
System: NetBSD breakup-bock.cs.stevens-tech.edu 1.5.1_ALPHA NetBSD 1.5.1_ALPHA (BOCK) #16: Wed Feb 28 16:55:59 EST 2001 root@amstel.cs.stevens-tech.edu:/usr/src/sys/arch/i386/compile/BOCK i386


>Description:
The "pvm" package misparses the value of the PKG_FC make variable, failing
to build if PKG_FC contains any whitespace (e.g. "f2c-f77 -O2").  It also
simply *ignores* the values of CC and CFLAGS.
	
>How-To-Repeat:
Set CC or CFLAGS and build pvm.  Or, set PKG_FC to "f2c-f77 -O2" and *try*
to build pvm -- it won't work.
>Fix:
Fix this package's build process so that CC and CFLAGS are not ignored, and
F2C-F77 isn't fed to a naive shell script that splodes if it contains
whitespace, even if it's quoted.

>Release-Note:
>Audit-Trail:
>Unformatted: