pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/wm/amiwm Ensure the local yywrap is used. Fixes build...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e827fe22771a
branches:  trunk
changeset: 356822:e827fe22771a
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Jan 05 09:40:00 2017 +0000

description:
Ensure the local yywrap is used.  Fixes build with newer flex.

diffstat:

 wm/amiwm/distinfo                 |   5 +++--
 wm/amiwm/patches/patch-ab         |   9 ++++++---
 wm/amiwm/patches/patch-kbdlexer.l |  14 ++++++++++++++
 3 files changed, 23 insertions(+), 5 deletions(-)

diffs (56 lines):

diff -r fcfc72b382a4 -r e827fe22771a wm/amiwm/distinfo
--- a/wm/amiwm/distinfo Thu Jan 05 09:39:02 2017 +0000
+++ b/wm/amiwm/distinfo Thu Jan 05 09:40:00 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2015/11/02 23:42:50 agc Exp $
+$NetBSD: distinfo,v 1.8 2017/01/05 09:40:00 jperkin Exp $
 
 SHA1 (amiwm0.20pl48.tar.gz) = 6cf5f7197403a9519ea1f3b272e67a8de4fdca43
 RMD160 (amiwm0.20pl48.tar.gz) = abb5922a84501a28a73684c9e056dba6ac6969b7
@@ -6,4 +6,5 @@
 Size (amiwm0.20pl48.tar.gz) = 141542 bytes
 SHA1 (patch-Makefile.in) = 8428fd6533ead1ebe955da4d7df6ba6673639f7d
 SHA1 (patch-aa) = 4927276af44a0c2257eb723959002eef90db6aaf
-SHA1 (patch-ab) = 047bd7f8c495a3d872c98515368f87131eea7162
+SHA1 (patch-ab) = 0079bf1da97dbf70ae3d7a215e2fec2ff0ffe797
+SHA1 (patch-kbdlexer.l) = 2608c0fa1c471110a589f9e34b94e461d681aa91
diff -r fcfc72b382a4 -r e827fe22771a wm/amiwm/patches/patch-ab
--- a/wm/amiwm/patches/patch-ab Thu Jan 05 09:39:02 2017 +0000
+++ b/wm/amiwm/patches/patch-ab Thu Jan 05 09:40:00 2017 +0000
@@ -1,12 +1,15 @@
-$NetBSD: patch-ab,v 1.1 2010/04/29 00:02:07 dholland Exp $
+$NetBSD: patch-ab,v 1.2 2017/01/05 09:40:00 jperkin Exp $
+
+Ensure the local yywrap is used.
 
---- lex.l~     1997-12-12 17:21:58.000000000 +0000
+--- lex.l.orig 1997-12-12 17:21:58.000000000 +0000
 +++ lex.l
-@@ -6,7 +6,7 @@ extern int ParseError;
+@@ -6,7 +6,8 @@ extern int ParseError;
  extern FILE *rcfile;
  #undef yyin
  #define yyin rcfile
 -#define yywrap() 1
++#undef yywrap
 +static int yywrap(void) { return 1; }
  extern int parse_keyword(char *);
  void fixup_string(char *, char *);
diff -r fcfc72b382a4 -r e827fe22771a wm/amiwm/patches/patch-kbdlexer.l
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/amiwm/patches/patch-kbdlexer.l Thu Jan 05 09:40:00 2017 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-kbdlexer.l,v 1.1 2017/01/05 09:40:00 jperkin Exp $
+
+Ensure the local yywrap is used.
+
+--- kbdlexer.l.orig    1998-03-15 19:46:16.000000000 +0000
++++ kbdlexer.l
+@@ -10,6 +10,7 @@ extern char *progname;
+ 
+ #ifdef FLEX_SCANNER
+ 
++#undef yywrap
+ #undef YY_INPUT
+ #define YY_INPUT(buf,result,size) ((result) = doinput((buf),(size)))
+ int doinput (char *buf, int size)



Home | Main Index | Thread Index | Old Index