patch bash 4.2 succeed , but make test & run bash failed
I download the bash-4.2 and patched it (all pathes from 001~045) succeed。 but when I run 'make test' , lots of error showed root@ruby-mine:/data/source/bash/src/bash-4.2# mkdir patch root@ruby-mine:/data/source/bash/src/bash-4.2# cd patch root@ruby-mine:/data/source/bash/src/bash-4.2/patch# root@ruby-mine:/data/source/bash/src/bash-4.2/patch# rsync -a rsync://ftp.gnu.org/ftp/bash/bash-4.2-patches/* . root@ruby-mine:/data/source/bash/src/bash-4.2# cd /data/source/bash/src/bash-4.2 root@ruby-mine:/data/source/bash/src/bash-4.2# for i in {001..045} ; do patch -b -p0 -i patch/bash42-$i ; done root@ruby-mine:/data/source/bash/src/bash-4.2# ./configure --prefix=/usr/local/bash-4.2 root@ruby-mine:/data/source/bash/src/bash-4.2# make root@ruby-mine:/data/source/bash/src/bash-4.2# make test version: 4.2.45(1)-release versinfo: 4 2 45 1 release x86_64-unknown-linux-gnu HOSTTYPE = x86_64 OSTYPE = linux-gnu MACHTYPE = x86_64-unknown-linux-gnu Any output from any test, unless otherwise noted, indicates a possible anomaly run-alias run-appendop run-arith 214,215d213 < ./arith.tests: command substitution: line 290: syntax error near unexpected token `)' < ./arith.tests: command substitution: line 290: `printf "%o\n" $n) ))' 217,220c215,217 < ./arith.tests: command substitution: line 292: syntax error near unexpected token `)' < ./arith.tests: command substitution: line 292: `printf "%x\n" $n) ))' < ./arith.tests: command substitution: line 293: syntax error near unexpected token `)' < ./arith.tests: command substitution: line 293: `printf "%X\n" $n) ))' --- (omitted) < ./comsub1.sub: command substitution: line 16: syntax error near unexpected token `)' < ./comsub1.sub: command substitution: line 16: `esac)' < ./comsub1.sub: command substitution: line 19: syntax error near unexpected token `)' < ./comsub1.sub: command substitution: line 19: `esac)' < ./comsub1.sub: command substitution: line 22: syntax error near unexpected token `)' < ./comsub1.sub: command substitution: line 22: `esac)' < ./comsub1.sub: command substitution: line 25: syntax error near unexpected token `)' < ./comsub1.sub: command substitution: line 25: `esac)' < ./comsub1.sub: command substitution: line 28: syntax error near unexpected token `)' < ./comsub1.sub: command substitution: line 28: `echo a)' < ./comsub1.sub: command substitution: line 31: syntax error near unexpected token `)' < ./comsub1.sub: command substitution: line 31: `esac)' < ./comsub1.sub: command substitution: line 36: syntax error near unexpected token `)' < ./comsub1.sub: command substitution: line 36: `esac)' < ./comsub1.sub: command substitution: line 40: syntax error near unexpected token `)' < ./comsub1.sub: command substitution: line 40: `esac)' < ./comsub1.sub: command substitution: line 42: syntax error near unexpected token `)' < ./comsub1.sub: command substitution: line 42: `esac)' < ./comsub1.sub: command substitution: line 47: syntax error near unexpected token `)' < ./comsub1.sub: command substitution: line 47: `esac)' < ./comsub1.sub: command substitution: line 51: syntax error near unexpected token `)' < ./comsub1.sub: command substitution: line 51: `esac)' (omitted) root@ruby-mine:/data/source/bash/src/bash-4.2# echo $? 0 root@ruby-mine:/data/source/bash/src/bash-4.2# after 'make install' , I run the bash program ,and got this root@ruby-mine:/usr/local/bash-4.2/bin# ./bash bash: command substitution: line 25: syntax error near unexpected token `)' bash: command substitution: line 25: `SHELL=/bin/sh lesspipe)"' bash: command substitution: line 71: syntax error near unexpected token `)' bash: command substitution: line 71: `dircolors -b)"' root@ruby-mine:/usr/local/bash-4.2/bin#
回复: 转发:patch bash 4.2 succeed , but make test & run bash failed
I found that the bison package had not been installed . After I install it , the make test run succeed and not more errs tks ! :) -- 原始邮件 -- 发件人: "chet.ramey"; 发送时间: 2013年5月20日(星期一) 晚上9:36 收件人: "boblin"; 抄送: "chet.ramey"; "Bug-bash"; 主题: Re: 转发:patch bash 4.2 succeed , but make test & run bash failed On 5/19/13 11:21 AM, boblin wrote: > hi, chet > >I met a problem with patching the original bash 4.2 with all the patches > from 001 ~ 045 . > >the patch report succeed , but 'make test' shows many errors Patch 5 modifies parse.y but not y.tab.c and y.tab.h. It relies on make to recreate those files and correctly compute the dependencies. You should be able to get past this issue (I've never encountered it) by running bison -y -d parse.y rm builtins/evalstring.o builtins/libbuiltins.a make Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/ .