diff options
author | Stefan Eßer <se@FreeBSD.org> | 2020-09-23 13:34:56 +0000 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 2020-09-23 13:34:56 +0000 |
commit | fde784537ab9a4f09946bbf0203efed97351d144 (patch) | |
tree | dfe50c84d8064c346ba263b9c9ef124375da9d62 /math/oleo/files/patch-src_posixtm.y | |
parent | - make /sbin/e2fsck and /sbin/fsck_ext2fs visible in pkg catalog/"pkg which", (diff) |
Fix build
The configure script ran into an infinite loop due to an optimization
that assumes multiplication of 2 positive numbers was always positive
(ignoring wrap-around). Pass "-fwrapv" to the configure script and build
the package with that option.
Two parsers are generated and both use the same global variables. Fix
the build with -fno-common by use of pre-processor macros that rename
the variables used in one of those source files. Passing -p to set a
non-conflicting prefix other than "yy" does not work with implicit
".c.y" rules and was therefore not applicable.
Notes
Notes:
svn path=/head/; revision=549724
Diffstat (limited to 'math/oleo/files/patch-src_posixtm.y')
-rw-r--r-- | math/oleo/files/patch-src_posixtm.y | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/math/oleo/files/patch-src_posixtm.y b/math/oleo/files/patch-src_posixtm.y index 30d8c75a2c53..80db8eaf0827 100644 --- a/math/oleo/files/patch-src_posixtm.y +++ b/math/oleo/files/patch-src_posixtm.y @@ -1,6 +1,18 @@ --- src/posixtm.y.orig 2000-07-22 06:13:16 UTC +++ src/posixtm.y -@@ -85,6 +85,7 @@ date : +@@ -40,6 +40,11 @@ char *alloca (); + #include <time.h> + + #define YYDEBUG 1 ++#define yychar yychar_posixtm ++#define yyerrflag yyerrflag_posixtm ++#define yylval yylval_posixtm ++#define yynerrs yynerrs_posixtm ++#define yyval yyval_posixtm + + /* Lexical analyzer's current scan position in the input string. */ + static char *curpos; +@@ -85,6 +90,7 @@ date : YYABORT; } } |