[Slapt-get-user] re: slapt-get 0.9.9b

Peter Santoro psantoro at att.net
Thu Sep 23 15:15:50 EDT 2004


I think there may be a problem with the doinst.sh in this release.  It 
uses the sed -i option, which works ok in slackware 10.0 (sed version 
4.0.9), but bombs in slackware 9.1 (sed version 3.02).  The man page for 
sed in slackware 9.1 doesn't show a -i or -r option, but the -r option 
doesn't seem to cause a problem.  If my understanding of this script is 
correct, here's a potential fix:


if [ ! -d etc/slapt-get ]; then mkdir -p etc/slapt-get;fi; if [ -f 
etc/slapt-getrc -a ! -f etc/slapt-get/slapt-getrc ]; then mv 
etc/slapt-getrc etc/slapt-get/slapt-getrc;fi; if [ ! -f 
etc/slapt-get/slapt-getrc ]; then mv etc/slapt-get/slapt-getrc.new 
etc/slapt-get/slapt-getrc; else tmp=`mktemp /tmp/temp.XXXXXX` ; sed -re 
's/(See 
\/usr\/doc\/slapt\-get\-).*(\/example\.slapt\-getrc)/\10.9.9b\2/' 
/etc/slapt-get/slapt-getrc > $tmp ; mv $tmp /etc/slapt-get/slapt-getrc ; 
diff -q etc/slapt-get/slapt-getrc etc/slapt-get/slapt-getrc.new 
 >/dev/null 2>&1 && rm etc/slapt-get/slapt-getrc.new; fi;
( cd usr/lib ; rm -rf libslapt.so )
( cd usr/lib ; ln -sf libslapt-0.9.9b.so libslapt.so )





More information about the Slapt-get-user mailing list