Unescaped left brace in regex is illegal here in regex; mark

作者:Unescaped left brace in regex is illegal here in regex; mark 来源:未知 2022-06-22 20:01   阅读:

一、解决方法:修改automake源代码#substitute_ac_subst_variables($TEXT)#-------------------------



一、解决方法:
    修改automake源代码
        # substitute_ac_subst_variables ($TEXT)
        # -------------------------------------
        # Replace any occurrence of ${FOO} in $TEXT by @FOO@ if FOO is an AC_SUBST
        # variable.
        sub substitute_ac_subst_variables
        {
          my ($text) = @_;
          # $text =~ s/\${([^ 	=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
          $text =~ s/\$[{]([^ 	=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
          return $text;
        }

二、跟踪信息:
    1. 查找source源:
        zengjf@zengjf:~/zengjf/fsl-release-bsp/sources$ grep -F '1{s/.* //;s/\.[0-9]+$//};q' * -r
        poky/meta/classes/autotools.bbclass:        AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]+$//};q'`
    2. 查找do_configure生成文件:
        zengjf@zengjf:~/zengjf/fsl-release-bsp/imx6q-x11/tmp$ grep -F '1{s/.* //;s/\.[0-9]+$//};q' * -r
        [...省略]
        work/cortexa9hf-neon-poky-linux-gnueabi/bzip2/1.0.6-r5/temp/run.do_configure.:        AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]+$//};q'`
        work/cortexa9hf-neon-poky-linux-gnueabi/libtool-cross/2.4.6-r0/temp/run.do_configure.:        AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]+$//};q'`
        work/x86_64-linux/gperf-native/3.0.4-r0/temp/run.do_configure.:        AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]+$//};q'`
        work/x86_64-linux/flex-native/2.6.0-r0/temp/run.do_configure.:        AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]+$//};q'`
        work/x86_64-linux/bison-native/3.0.4-r0/temp/run.do_configure.:        AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]+$//};q'`
        work/x86_64-linux/sqlite3-native/3_3.11.0-r0/temp/run.do_configure.9219:        AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]+$//};q'`
        work/x86_64-linux/mpfr-native/3.1.3-r0/temp/run.do_configure.:        AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]+$//};q'`
        work/x86_64-linux/pkgconfig-native/0.29+gitAUTOINC+5914edfe96-r0/temp/run.do_configure.:        AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]+$//};q'`
        work/x86_64-linux/attr-native/2.4.47-r0/temp/run.do_configure.4567:        AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]+$//};q'`
        work/x86_64-linux/util-macros-native/1_1.19.0-r0/temp/run.do_configure.:        AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]+$//};q'`
        work/x86_64-linux/gettext-native/0.19.6-r0/temp/run.do_configure.:        AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]+$//};q'`
        work/x86_64-linux/gmp-native/6.1.0-r0/temp/run.do_configure.:        AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]+$//};q'`
        work/x86_64-linux/xz-native/5.2.2-r0/temp/run.do_configure.:        AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]+$//};q'`
        work/x86_64-linux/libmpc-native/1.0.3-r0/temp/run.do_configure.:        AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]+$//};q'`
        work/x86_64-linux/libtool-native/2.4.6-r0/temp/run.do_configure.5196:        AUTOV=`automake --version | sed -e '1{s/.* //;s/\.[0-9]+$//};q'`
        zengjf@zengjf:~/zengjf/fsl-release-bsp/imx6q-x11/tmp$ 

分享给小伙伴们:
Unescaped left brace in regex is illegal here in regex; mark:如果本文侵犯了您的权利, 请联系本网立即做出处理,谢谢。
下一篇:没有了
Unescaped left brace in regex is illegal here in regex; mark相关文章