diff options
Diffstat (limited to 'dev-util/ragel/files/ragel-7.0.4-link-colm-properly.patch')
-rw-r--r-- | dev-util/ragel/files/ragel-7.0.4-link-colm-properly.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-util/ragel/files/ragel-7.0.4-link-colm-properly.patch b/dev-util/ragel/files/ragel-7.0.4-link-colm-properly.patch new file mode 100644 index 000000000000..f5f12ec4491a --- /dev/null +++ b/dev-util/ragel/files/ragel-7.0.4-link-colm-properly.patch @@ -0,0 +1,51 @@ +From: Jan Engelhardt <jengelh@inai.de> +Date: 2021-04-27 18:22:18.718396764 +0200 + +ragel just completely lacks a block to support system colm. + +--- + configure.ac | 14 ++++++++------ + src/Makefile.am | 2 +- + 2 files changed, 9 insertions(+), 7 deletions(-) + +Index: ragel-7.0.4/configure.ac +=================================================================== +--- ragel-7.0.4.orig/configure.ac ++++ ragel-7.0.4/configure.ac +@@ -51,14 +51,16 @@ AC_ARG_WITH(colm, + LIBFSM_LA="$withval/lib/libfsm.la" + COLM_SHARE="$withval/share" + ], +- [] ++ [ ++ COLM=/usr/bin/colm ++ COLM_WRAP=/usr/bin/colm-wrap ++ CPPFLAGS="-I/usr/include/aapl $CPPFLAGS" ++ LIBCOLM_LA=-lcolm ++ LIBFSM_LA=-lfsm ++ COLM_SHARE='${datadir}/colm' ++ ] + ) + +-AC_CHECK_FILES( +- [$COLM], +- [], +- [AC_ERROR([colm is required to build ragel])] +-) + AC_SUBST(COLM) + AC_SUBST(COLM_WRAP) + AC_SUBST(COLM_SHARE) +Index: ragel-7.0.4/src/Makefile.am +=================================================================== +--- ragel-7.0.4.orig/src/Makefile.am ++++ ragel-7.0.4/src/Makefile.am +@@ -39,7 +39,7 @@ nodist_ragel_SOURCES = \ + parse.c rlreduce.cc + + ragel_LDADD = $(LIBFSM_LA) $(LIBCOLM_LA) libragel.la +-ragel_DEPENDENCIES = $(LIBFSM_LA) $(LIBCOLM_LA) libragel.la ++ragel_DEPENDENCIES = libragel.la + + BUILT_SOURCES = \ + version.h \ + |