Subject: pkg/19305: Make pkgsrc/net/tinyfugue respect $CC and $CFLAGS
To: None <gnats-bugs@gnats.netbsd.org>
From: None <sketch@rd.bbc.co.uk>
List: netbsd-bugs
Date: 12/06/2002 11:56:17
>Number:         19305
>Category:       pkg
>Synopsis:       Make pkgsrc/net/tinyfugue respect $CC and $CFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 06 11:57:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Perkin
>Release:        Today's CVS
>Organization:
British Broadcasting Corporation
>Environment:
SunOS sunf25 5.7 Generic_106541-16 sun4u sparc SUNW,Ultra-5_10
>Description:
tinyfugue pkgsrc doesn't pass down or use $CC nor $CFLAGS, so defaults
to gcc and -O.  This is suboptimal on e.g. Solaris machines using Sun
Workshop compiler "cc", especially if gcc does not exist.
>How-To-Repeat:

>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/tinyfugue/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile    2001/05/16 15:39:10     1.7
+++ Makefile    2002/12/06 19:53:39
@@ -17,5 +17,6 @@
 INSTALL_TARGET=        ${MAKE_ARGS} install
 
 MAKE_ARGS=     TFVER=${DISTNAME:S/^tf-//}
+MAKE_ENV=      CC=${CC} CFLAGS=${CFLAGS}
 
 .include "../../mk/bsd.pkg.mk"
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/net/tinyfugue/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo    2001/05/16 15:39:11     1.3
+++ distinfo    2002/12/06 19:53:39
@@ -2,5 +2,5 @@
 
 SHA1 (tf-40s1.tar.gz) = 89ee75d0d8501dd7fe5440c81cf9b294e5ccf746
 Size (tf-40s1.tar.gz) = 349239 bytes
-SHA1 (patch-ab) = f6a691a2d6f1555da2adacb419b0f63316ab5b9a
+SHA1 (patch-ab) = c5f724e5f035129a05d6c1301e8ec93d08ea3192
 SHA1 (patch-ac) = fddc7d415ca8716be1fc45c95a5b5e6888cbf1ae
Index: patches/patch-ab
===================================================================
RCS file: /cvsroot/pkgsrc/net/tinyfugue/patches/patch-ab,v
retrieving revision 1.3
diff -u -r1.3 patch-ab
--- patches/patch-ab    1998/08/07 11:11:01     1.3
+++ patches/patch-ab    2002/12/06 19:53:39
@@ -29,3 +29,14 @@
  
  
  ### Flags.
+@@ -109,8 +112,8 @@
+ # If unixmake told you to set CC=cc, be sure to uncomment the line below
+ # by removing the leading "#".
+ 
+-# CC=cc
+-# CCFLAGS="-g"
++CC=${CC}
++CCFLAGS=${CFLAGS}
+ 
+ 
+ ### Stripping.
>Release-Note:
>Audit-Trail:
>Unformatted: