Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/pcc lang/pcc: remove dependency on gmake
details: https://anonhg.NetBSD.org/pkgsrc/rev/b05b6fa2fd98
branches: trunk
changeset: 433660:b05b6fa2fd98
user: rillig <rillig%pkgsrc.org@localhost>
date: Sat Jun 06 21:24:14 2020 +0000
description:
lang/pcc: remove dependency on gmake
Building the package with bmake succeeded 10 times in a row. Without the
SUBST block, each build failed about 50% of the time.
diffstat:
lang/pcc/Makefile | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r af6f68f5a593 -r b05b6fa2fd98 lang/pcc/Makefile
--- a/lang/pcc/Makefile Sat Jun 06 20:56:41 2020 +0000
+++ b/lang/pcc/Makefile Sat Jun 06 21:24:14 2020 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.16 2018/04/30 10:41:35 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2020/06/06 21:24:14 rillig Exp $
DISTNAME= pcc-1.0.0
+PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= ftp://pcc.ludd.ltu.se/pub/pcc-releases/
MASTER_SITES+= http://pcc.ludd.ltu.se/ftp/pub/pcc-releases/
@@ -21,9 +22,22 @@
Linux-*-i386 Linux-*-powerpc
USE_TOOLS+= lex yacc
-# XXX For some reason building with bmake fails randomly.
-USE_TOOLS+= gmake
GNU_CONFIGURE= yes
+
+# On NetBSD 8.0 x86_64, pcc-1.0.0 fails with:
+# In file included from builtins.c:27:0:
+# pass1.h:46:22: fatal error: external.h: No such file or directory
MAKE_JOBS_SAFE= no
+# Do not rely on the timestamps of directories for resolving the
+# dependencies in the Makefiles.
+#
+# Without this, building with bmake sometimes only processes the cc/cc
+# directory, which is not enough since then the install phase cannot
+# find cpp.
+SUBST_CLASSES+= mk
+SUBST_STAGE.mk= pre-configure
+SUBST_FILES.mk= Makefile.in */Makefile.in
+SUBST_SED.mk= -e 's,: nonexistant$$,: .PHONY,'
+
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index