ffmpeg-6: fix COMPONENT_REVISION
[oi-userland.git] / components / developer / flex / patches / 01-gnu-m4.patch
blob460d4174d350211e2994b6bb8d3e19b51d2ba8d7
1 Make sure that we always use /usr/gnu/bin/m4 rather than what is available
2 via the M4 environment variable or what's in the PATH environment variable.
4 These changes have been sent upstream. See email thread starting at:
6 https://sourceforge.net/p/flex/mailman/message/35103749/
8 --- flex-2.6.3/src/main.c.~1~ 2016-12-29 23:03:14.000000000 +0300
9 +++ flex-2.6.3/src/main.c 2017-03-14 19:31:53.967243261 +0300
10 @@ -341,6 +341,7 @@
12 /* Setup the filter chain. */
13 output_chain = filter_create_int(NULL, filter_tee_header, headerfilename);
14 +#ifndef __sun
15 if ( !(m4 = getenv("M4"))) {
16 char *slash;
17 m4 = M4;
18 @@ -380,6 +381,9 @@
21 filter_create_ext(output_chain, m4, "-P", 0);
22 +#else
23 + filter_create_ext(output_chain, "/usr/gnu/bin/m4", "-P", 0);
24 +#endif
25 filter_create_int(output_chain, filter_fix_linedirs, NULL);
27 /* For debugging, only run the requested number of filters. */