pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/qemu add check and fail on gcc4, which canno...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/46f19cf254a3
branches:  trunk
changeset: 502463:46f19cf254a3
user:      dbj <dbj%pkgsrc.org@localhost>
date:      Fri Nov 04 21:05:51 2005 +0000

description:
add check and fail on gcc4, which cannot be used with this version of qemu

diffstat:

 emulators/qemu/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r ad68ae9bd04e -r 46f19cf254a3 emulators/qemu/Makefile
--- a/emulators/qemu/Makefile   Fri Nov 04 21:05:15 2005 +0000
+++ b/emulators/qemu/Makefile   Fri Nov 04 21:05:51 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2005/10/01 04:12:32 hubertf Exp $
+# $NetBSD: Makefile,v 1.19 2005/11/04 21:05:51 dbj Exp $
 #
 
 DISTNAME=              qemu-0.7.2
@@ -31,6 +31,14 @@
 # to build in the SSE code.
 BUILDLINK_TRANSFORM+=  rm-optarg:-march rm-optarg:-mcpu
 
+.include "../../mk/compiler.mk"
+
+# qemu cannot yet use gcc 4, see the faq/mailing lists
+# (hint: use gcc_select on darwin/macos to choose gcc 3.3 instead)
+.if !empty(CC_VERSION:Mgcc-4*)
+PKG_FAIL_REASON+=      "${PKGNAME} cannot use ${CC_VERSION}"
+.endif
+
 post-install:
        ${INSTALL_DATA} ${FILESDIR}/Makefile.multinode-NetBSD \
                ${PREFIX}/share/doc/qemu



Home | Main Index | Thread Index | Old Index