pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/intercal lang/intercal: fix build on platforms wh...
details: https://anonhg.NetBSD.org/pkgsrc/rev/153087741722
branches: trunk
changeset: 771788:153087741722
user: dholland <dholland%pkgsrc.org@localhost>
date: Mon Dec 27 04:27:10 2021 +0000
description:
lang/intercal: fix build on platforms where sizeof(bool) != sizeof(int)
(Might not have actually failed on all such platforms, so bump PKGREVISION.)
diffstat:
lang/intercal/Makefile | 3 ++-
lang/intercal/distinfo | 4 ++--
lang/intercal/patches/patch-src_lexer.l | 14 +++++++++++++-
3 files changed, 17 insertions(+), 4 deletions(-)
diffs (56 lines):
diff -r ea51e4a4fe5f -r 153087741722 lang/intercal/Makefile
--- a/lang/intercal/Makefile Mon Dec 27 04:18:59 2021 +0000
+++ b/lang/intercal/Makefile Mon Dec 27 04:27:10 2021 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.16 2019/11/03 19:04:02 rillig Exp $
+# $NetBSD: Makefile,v 1.17 2021/12/27 04:27:10 dholland Exp $
#
DISTNAME= intercal-0.30
+PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://www.catb.org/~esr/intercal/
diff -r ea51e4a4fe5f -r 153087741722 lang/intercal/distinfo
--- a/lang/intercal/distinfo Mon Dec 27 04:18:59 2021 +0000
+++ b/lang/intercal/distinfo Mon Dec 27 04:27:10 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2021/10/26 10:51:38 nia Exp $
+$NetBSD: distinfo,v 1.14 2021/12/27 04:27:10 dholland Exp $
BLAKE2s (intercal-0.30.tar.gz) = 1e4b439f24f04e44b025329eb66deac44c72f3c83f6bc266a79773a84d44a660
SHA512 (intercal-0.30.tar.gz) = e82f52082a73e0eb6116026f78fdcc38369f54af828b9ed0d3ca6ed6c40550bfa81db4ca7c4d09015b5db5104a1c06229cfed52e1d202c3a7443f933fbcc0498
@@ -6,4 +6,4 @@
SHA1 (patch-aa) = b6f7d5e4a46361f5af3ce3e1a646bc70c5b01ca6
SHA1 (patch-ae) = bb28fb6edd30e5d3dd1c41b42a1784cadb9428b0
SHA1 (patch-ag) = faf03857ad487796879632749489ad33b8648ba2
-SHA1 (patch-src_lexer.l) = 351d5a984d2de5e3e1f062b21609580bce090e4c
+SHA1 (patch-src_lexer.l) = 8a93803080d68824820f2f90ff146c90d25bbddb
diff -r ea51e4a4fe5f -r 153087741722 lang/intercal/patches/patch-src_lexer.l
--- a/lang/intercal/patches/patch-src_lexer.l Mon Dec 27 04:18:59 2021 +0000
+++ b/lang/intercal/patches/patch-src_lexer.l Mon Dec 27 04:27:10 2021 +0000
@@ -1,7 +1,10 @@
-$NetBSD: patch-src_lexer.l,v 1.1 2017/01/04 12:52:40 jperkin Exp $
+$NetBSD: patch-src_lexer.l,v 1.2 2021/12/27 04:27:10 dholland Exp $
Ensure the local yywrap is used.
+Use the right type for "clclex"; otherwise the link fails on some
+platforms. (And on others, the behavior is probably undefined...)
+
--- src/lexer.l.orig 2010-09-01 22:29:25.000000000 +0000
+++ src/lexer.l
@@ -38,6 +38,7 @@ LICENSE TERMS
@@ -12,3 +15,12 @@
#ifndef yywrap
static int yywrap(void)
{
+@@ -68,7 +69,7 @@ int sparkearslev = 0;
+ By default, the C-INTERCAL meanings are used; the extern variable clclex
+ causes CLC-INTERCAL interpretations to be put on the ambiguous symbols.
+ Otherwise, mixing syntaxes freely is allowed. */
+-extern int clclex;
++extern bool clclex;
+
+ #ifdef FLEX_SCANNER
+ static char linebuf[YY_BUF_SIZE];
Home |
Main Index |
Thread Index |
Old Index