Subject: pkg/29142: bsd.wrapper.mk rev. 1.13 breaks non-gcc compilers
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <grant@NetBSD.org>
List: pkgsrc-bugs
Date: 01/28/2005 13:15:01
>Number:         29142
>Category:       pkg
>Synopsis:       bsd.wrapper.mk rev. 1.13 breaks non-gcc compilers
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 28 13:15:00 +0000 2005
>Originator:     grant beattie
>Release:        SunOS 5.9
>Organization:
>Environment:
System: SunOS u10 5.9 Generic_117171-02 sun4u sparc SUNW,Ultra-5_10
Architecture: sparc
Machine: sun4u
>Description:
the changes in bsd.wrapper.mk rev. 1.13 break the ${CC} and ${CXX}
(and maybe other?) compiler variables, in that the variables are
assigned the values for gcc, not the selected compiler:

% grep PKGSRC_COMPILER /etc/mk.conf
PKGSRC_COMPILER=        sunpro
% bmake show-vars VARNAMES=CC PKG_PHASE=build
gcc
% bmake show-vars VARNAMES=CXX PKG_PHASE=build
g++

this causes packages to get confused about the compiler because the
value of ${CC}, ${CXX} is not the compiler being used.

WRAPPER_CC is being set to the wrong wrapper name:

% bmake show-vars VARNAMES=WRAPPER_CC PKG_PHASE=build
/tmp/pkgbuild/archivers/bzip2/work/.wrapper/bin/gcc

reverting bsd.wrapper.mk to revision 1.12 fixes the problem:

% bmake show-vars VARNAMES=CC PKG_PHASE=build
cc
% bmake show-vars VARNAMES=CXX PKG_PHASE=build
CC

>How-To-Repeat:
>Fix: