pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/pcc



Module Name:    pkgsrc
Committed By:   rillig
Date:           Sat Jun  6 21:24:14 UTC 2020

Modified Files:
        pkgsrc/lang/pcc: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/lang/pcc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/pcc/Makefile
diff -u pkgsrc/lang/pcc/Makefile:1.16 pkgsrc/lang/pcc/Makefile:1.17
--- pkgsrc/lang/pcc/Makefile:1.16       Mon Apr 30 10:41:35 2018
+++ pkgsrc/lang/pcc/Makefile    Sat Jun  6 21:24:14 2020
@@ -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 @@ ONLY_FOR_PLATFORM=   NetBSD-*-arm* NetBSD-
                        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