diff options
author | 2017-07-24 16:50:37 +0200 | |
---|---|---|
committer | 2021-02-27 10:28:28 +0100 | |
commit | d120b3fadd78f3352d2a70ea39efc63c76973415 (patch) | |
tree | 004bffec682ddd711729e3459c1841980b93337a | |
parent | 9aa1498acb0841d4ce656319a4de5cc157b4e2ed (diff) | |
download | slackbuilds-latrace.tar.gz |
development/latrace: Patch for flex 2.6.x.latrace
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r-- | development/latrace/fix-scanner-config-for-flex-2.6.x.patch | 23 | ||||
-rw-r--r-- | development/latrace/latrace.SlackBuild | 3 |
2 files changed, 26 insertions, 0 deletions
diff --git a/development/latrace/fix-scanner-config-for-flex-2.6.x.patch b/development/latrace/fix-scanner-config-for-flex-2.6.x.patch new file mode 100644 index 0000000000..301f4c5a96 --- /dev/null +++ b/development/latrace/fix-scanner-config-for-flex-2.6.x.patch @@ -0,0 +1,23 @@ +--- src/config-flex.l.orig 2011-07-25 07:18:18.000000000 -0400 ++++ src/config-flex.l 2017-07-02 13:52:20.048382500 -0400 +@@ -106,19 +106,17 @@ OPTIONS { BEGIN(options); return OPTI + <options>"\n" { NEW_LINE(); } + <options>. { ; } + + %% + +-#ifndef yywrap +-int yywrap() ++int lt_config_wrap() + { + return 1; + /* XXX not to get the compiler 'not used' warning */ + yyunput(0, NULL); + input(); + } +-#endif + + void lt_config_error(const char *m) + { + printf("conf file [%s] line %d: %s\n", + lt_inc_stack(lt_config_sinc)->file, diff --git a/development/latrace/latrace.SlackBuild b/development/latrace/latrace.SlackBuild index 899601c4e5..bf2208d214 100644 --- a/development/latrace/latrace.SlackBuild +++ b/development/latrace/latrace.SlackBuild @@ -54,6 +54,9 @@ find -L . \ -type d -exec chmod 0755 {} \; -o \ -type f -exec chmod u+rw,go+r-w,a-s {} \; +# Thanks archlinux! +patch -p0 < $CWD/fix-scanner-config-for-flex-2.6.x.patch + autoconf CFLAGS="$SLKCFLAGS" \ |