pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Suppress an error occurs when buildlink is not present



details:   https://anonhg.NetBSD.org/pkgsrc/rev/78998111d50e
branches:  trunk
changeset: 407033:78998111d50e
user:      pho <pho%pkgsrc.org@localhost>
date:      Wed Jan 01 04:54:10 2020 +0000

description:
Suppress an error occurs when buildlink is not present

diffstat:

 mk/haskell.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 9fd80ae83004 -r 78998111d50e mk/haskell.mk
--- a/mk/haskell.mk     Wed Jan 01 04:51:32 2020 +0000
+++ b/mk/haskell.mk     Wed Jan 01 04:54:10 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: haskell.mk,v 1.7 2020/01/01 04:35:29 pho Exp $
+# $NetBSD: haskell.mk,v 1.8 2020/01/01 04:54:10 pho Exp $
 #
 # This Makefile fragment handles Haskell Cabal packages.
 # See: http://www.haskell.org/cabal/
@@ -150,7 +150,7 @@
 _HASKELL_PKG_BIN=      ${_GHC_PKG_BIN} # Expose to the outer scope.
 
 # Determine GHC version.
-_GHC_VERSION_CMD=      ${_GHC_BIN} -V | ${CUT} -d ' ' -f 8
+_GHC_VERSION_CMD=      ${_GHC_BIN} -V 2>/dev/null | ${CUT} -d ' ' -f 8
 _GHC_VERSION=          ${_GHC_VERSION_CMD:sh}
 _GHC_VERSION_FULL=     ghc-${_GHC_VERSION}
 _HASKELL_VERSION=      ${_GHC_VERSION_FULL} # Expose to the outer scope.



Home | Main Index | Thread Index | Old Index