pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/compiler Provide a way to forcibly use the native G...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7c2e9530422f
branches:  trunk
changeset: 470956:7c2e9530422f
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Mar 13 19:08:37 2004 +0000

description:
Provide a way to forcibly use the native GCC by setting USE_NATIVE_GCC in
a package Makefile.  Also modify pkg_admin checks to drop stderr so that
errors aren't so verbose.

diffstat:

 mk/compiler/gcc.mk |  14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diffs (55 lines):

diff -r 1fa65da9cc8d -r 7c2e9530422f mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk        Sat Mar 13 18:54:37 2004 +0000
+++ b/mk/compiler/gcc.mk        Sat Mar 13 19:08:37 2004 +0000
@@ -1,10 +1,12 @@
-# $NetBSD: gcc.mk,v 1.59 2004/03/13 17:52:24 jlam Exp $
+# $NetBSD: gcc.mk,v 1.60 2004/03/13 19:08:37 jlam Exp $
 
 .if !defined(COMPILER_GCC_MK)
 COMPILER_GCC_MK=       defined
 
 .include "../../mk/bsd.prefs.mk"
 
+USE_NATIVE_GCC?=       no
+
 GCC_REQD+=     2.8.0
 
 # _GCC_DIST_VERSION is the highest version of GCC installed by the pkgsrc
@@ -76,7 +78,7 @@
 .      for _vers_ in ${GCC_REQD}
 .        if !empty(_GCC_PKG_SATISFIES_DEP:M[yY][eE][sS])
 _GCC_PKG_SATISFIES_DEP!=       \
-       if ${PKG_ADMIN} pmatch 'gcc>=${_vers_}' ${_pkg_}; then          \
+       if ${PKG_ADMIN} pmatch 'gcc>=${_vers_}' ${_pkg_} 2>/dev/null; then \
                ${ECHO} "YES";                                          \
        else                                                            \
                ${ECHO} "NO";                                           \
@@ -184,6 +186,10 @@
 .  endif
 .endif
 
+.if !empty(USE_NATIVE_GCC:M[yY][eE][sS])
+_USE_PKGSRC_GCC=       no
+.endif
+
 .if defined(_IGNORE_GCC)
 _USE_PKGSRC_GCC=       NO
 .endif
@@ -193,7 +199,7 @@
 .  if !empty(_IS_BUILTIN_GCC:M[yY][eE][sS])
 _GCC_TEST_DEPENDS=     gcc>=${_GCC_REQD}
 _USE_PKGSRC_GCC!=      \
-       if ${PKG_ADMIN} pmatch '${_GCC_TEST_DEPENDS}' ${_GCC_PKG}; then \
+       if ${PKG_ADMIN} pmatch '${_GCC_TEST_DEPENDS}' ${_GCC_PKG} 2>/dev/null; then \
                ${ECHO} "NO";                                           \
        else                                                            \
                ${ECHO} "YES";                                          \
@@ -207,7 +213,7 @@
 .if !defined(_NEED_NEWER_GCC)
 _PKGSRC_GCC_VERSION=   ${_GCC_PKGBASE}-${_GCC_DIST_VERSION}
 _NEED_NEWER_GCC!=      \
-       if ${PKG_ADMIN} pmatch '${_GCC_DEPENDS}' ${_PKGSRC_GCC_VERSION}; then \
+       if ${PKG_ADMIN} pmatch '${_GCC_DEPENDS}' ${_PKGSRC_GCC_VERSION} 2>/dev/null; then \
                ${ECHO} "NO";                                           \
        else                                                            \
                ${ECHO} "YES";                                          \



Home | Main Index | Thread Index | Old Index