The problem is caused by following block within the shtool install function: # adjust the target file if [ ".$opt_e" != . ]; then sed='sed' OIFS="$IFS"; IFS="$ASC_NL"; set -- $opt_e; IFS="$OIFS" for e do sed="$sed -e '$e'" done
Here is was BASH does within the MySQL RPM build: s;@l_susr@;root;g s;@l_sgrp@;sys;g s;@l_suid@;0;g s;@l_sgid@;0;g s;@l_musr@;opkg;g s;@l_mgrp@;opkg;g s;@l_muid@;100;g s;@l_mgid@;100;g s;@l_rusr@;opkg-r;g s;@l_rgrp@;opkg-r;g s;@l_ruid@;101;g s;@l_rgid@;101;g s;@l_nusr@;opkg-n;g s;@l_ngrp@;opkg-n;g s;@l_nuid@;102;g s;@l_ngid@;102;g s;@l_prefix@;/opt/openpkg;g s;@l_prefix_static@;/opt/openpkg;g /<\/\{0,1\}with_bdb>/d /<\/\{0,1\}with_innobase>/d != . ] + sed=sed + OIFS=' ' + IFS=' ' + set -- 's;@l_susr@;root;g' 's;@l_sgrp@;sys;g' 's;@l_suid@;0;g' 's;@l_sgid@;0;g' 's;@l_musr@;opkg;g' 's;@l_mgrp@;opkg;g' 's;@l_muid@;100;g' 's;@l_mgid@;100;g' 's;@l_rusr@;opkg-r;g' 's;@l_rgrp@;opkg-r;g' 's;@l_ruid@;101;g' 's;@l_rgid@;101;g' 's;@l_nusr@;opkg-n;g' 's;@l_ngrp@;opkg-n;g' 's;@l_nuid@;102;g' 's;@l_ngid@;102;g' 's;@l_prefix@;/opt/openpkg;g' 's;@l_prefix_static@;/opt/openpkg;g' '/<\/\{0,1\}with_bdb>/d' '/<\/\{0,1 \}with_innobase>/d' + IFS=' compared with the IRIX /bin/sh: s;@l_susr@;root;g s;@l_sgrp@;sys;g s;@l_suid@;0;g s;@l_sgid@;0;g s;@l_musr@;opkg;g s;@l_mgrp@;opkg;g s;@l_muid@;100;g s;@l_mgid@;100;g s;@l_rusr@;opkg-r;g s;@l_rgrp@;opkg-r;g s;@l_ruid@;101;g s;@l_rgid@;101;g s;@l_nusr@;opkg-n;g s;@l_ngrp@;opkg-n;g s;@l_nuid@;102;g s;@l_ngid@;102;g s;@l_prefix@;/opt/openpkg;g s;@l_prefix_static@;/opt/openpkg;g /<\/\{0,1\}with_bdb>/d /<\/\{0,1\}with_innobase>/d' '!=' . ']' + sed=sed + OIFS= + IFS= + set -- s;@l_susr@;root;g s;@l_sgrp@;sys;g s;@l_suid@;0;g s;@l_sgid@;0;g s;@l_musr@;opkg;g s;@l_mgrp@;opkg;g s;@l_muid@;100;g s;@l_mgid@;100;g s;@l_rusr@;opkg-r;g s;@l_rgrp@;opkg-r;g s;@l_ruid@;101;g s;@l_rgid@;101;g s;@l_nusr@;opkg-n;g s;@l_ngrp@;opkg-n;g s;@l_nuid@;102;g s;@l_ngid@;102;g s;@l_prefix@;/opt/openpkg;g s;@l_prefix_static@;/opt/openpkg;g /< \/\0with_bdb>/d /<\/\1\with_bdb>/d /<\/\0with_innobase>/d /<\/\1 \with_innobase>/d + IFS= As you can see this will break the further SED execution. I did no further analysis but modified the OpenPKG shtool to use its BASH. Cheers, J"org ______________________________________________________________________ OpenPKG http://openpkg.org Developer Communication List openpkg-dev@openpkg.org