[Slackbuilds-users] installing openoffice 3.3.0 - building error

Valdir Franco chuck.mx at gmail.com
Sun Aug 25 21:03:34 UTC 2013


>On Sat, Aug 24, 2013 at 8:14 AM, Valdir Franco <chuck.mx at gmail.com <http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users>> wrote:

>*> Hi.*>>**>*>Trying install openoffice using slackbuild got an error, stopping script.*>>**>*>SOURCEDIR: unbound variable*>>**>*>Any hint on fixing it?*>>**>>**>Yeah, download the openoffice.org 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

Hi, again.
I did download again, at least three times.
For me the file name is correct. Below is my screen, with dir contents e
the script error.

------------------------------
root at mrx:/home/marxz/Softwares/Apache OpenOffice/openoffice.org# ls
OOo_3.3.0_Linux_x86-64_install-rpm-wJRE_en-US.tar.gz
README
doinst.sh
openoffice.org.SlackBuild*
openoffice.org.info
slack-desc
root at mrx:/home/marxz/Softwares/Apache
OpenOffice/openoffice.org#./openoffice.org.SlackBuild
OOo_3.3.0_Linux_x86-64_install-rpm-wJRE_en-US.tar.gz
./openoffice.org.SlackBuild: line 103: SOURCEDIR: unbound variable
root at mrx:/home/marxz/Softwares/Apache OpenOffice/openoffice.org#
------------------------------

I'm not a batch/script writing expert, but looks like is missing something
in the script excerpt:

------------------------------
# Check if we have the tarball
if [ ! -r $TARBALL ]; then
  echo "$TARBALL not found"
  exit 1
fi

# Ignore this - it's just to get the toplevel directory name of the
# extracted tarball archive
SOURCEDIR=$(tar tzf $CWD/$TARNAME 2>/dev/null | head -n 1 | tr -d \/)
# If the above operation failed for some reason, unset SOURCEDIR so that
# the "set -eu" below will cause us to bail out with an error
<<<<<<<<------shouldn't be an "if" statement here?
[ -z $SOURCEDIR ] && unset SOURCEDIR  <<<<<------ I understand this line as
a condition, but no loop command.....am I wrong?

set -eu

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
rm -rf $TMP/$SOURCEDIR

# Extract tarball
tar xvf $CWD/$TARNAME -C $TMP
------------------------------

Thanks again...

-- 
T+
[]´s
marx   :-p
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20130825/ac5a6568/attachment.html>


More information about the SlackBuilds-users mailing list