<div dir="ltr"><div><div><div><pre>>On Sat, Aug 24, 2013 at 8:14 AM, Valdir Franco <<a href="http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users">chuck.mx at gmail.com</a>> wrote:
><i>> Hi.
</i>>><i>
</i>><i>>Trying install openoffice using slackbuild got an error, stopping script.
</i>>><i>
</i>><i>>SOURCEDIR: unbound variable
</i>>><i>
</i>><i>>Any hint on fixing it?
</i>>><i>
</i>>><i>
</i>>Yeah, download the <a href="http://openoffice.org">openoffice.org</a> tarball for your particular architecture
>and put it in the same folder as the openoffice.org.SlackBuild. The error
>is stating that $SOURCEDIR is not defined because it can't find the tarball.
>
>--Larry<br><br></pre>Hi, again.<br></div>I did download again, at least three times.<br></div>For me the file name is correct. Below is my screen, with dir contents e the script error.<br><br>------------------------------<br>
root@mrx:/home/marxz/Softwares/Apache OpenOffice/<a href="http://openoffice.org#">openoffice.org#</a> ls<br>OOo_3.3.0_Linux_x86-64_install-rpm-wJRE_en-US.tar.gz<br>README<br>doinst.sh<br>openoffice.org.SlackBuild*<br><a href="http://openoffice.org.info">openoffice.org.info</a><br>
slack-desc<br>root@mrx:/home/marxz/Softwares/Apache OpenOffice/<a href="http://openoffice.org#">openoffice.org#</a> ./openoffice.org.SlackBuild <br>OOo_3.3.0_Linux_x86-64_install-rpm-wJRE_en-US.tar.gz<br>./openoffice.org.SlackBuild: line 103: SOURCEDIR: unbound variable<br>
root@mrx:/home/marxz/Softwares/Apache OpenOffice/<a href="http://openoffice.org#">openoffice.org#</a> <br>------------------------------<br><br></div>I'm not a batch/script writing expert, but looks like is missing something in the script excerpt:<br>
<br>------------------------------<br># Check if we have the tarball<br>if [ ! -r $TARBALL ]; then<br> echo "$TARBALL not found"<br> exit 1<br>fi<br><br># Ignore this - it's just to get the toplevel directory name of the<br>
# extracted tarball archive<br>SOURCEDIR=$(tar tzf $CWD/$TARNAME 2>/dev/null | head -n 1 | tr -d \/)<br># If the above operation failed for some reason, unset SOURCEDIR so that<br># the "set -eu" below will cause us to bail out with an error <<<<<<<<------shouldn't be an "if" statement here?<br>
[ -z $SOURCEDIR ] && unset SOURCEDIR <<<<<------ I understand this line as a condition, but no loop command.....am I wrong?<br><br>set -eu<br><br>rm -rf $PKG<br>mkdir -p $TMP $PKG $OUTPUT<br>rm -rf $TMP/$SOURCEDIR<br>
<br># Extract tarball<br>tar xvf $CWD/$TARNAME -C $TMP<br>------------------------------<br> <br clear="all"><div><div><div><div>Thanks again...<br></div><div><br>-- <br>T+<br>[]´s<br>marx :-p
</div></div></div></div></div>