LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Broffice not compile on Slack64(multilib or no multilib);SlackBuild (http://www.linuxquestions.org/questions/slackware-14/broffice-not-compile-on-slack64-multilib-or-no-multilib-%3Bslackbuild-812794/)

afreitascs 06-07-2010 11:45 PM

Broffice not compile on Slack64(multilib or no multilib);SlackBuild
 
md5sum = b95383860da22d173a7f0374dbdb7c61
root@base2:/home/base2/openoffice131# tar zxvf broffice.org.tar.gz
broffice.org/
broffice.org/broffice.org.info
broffice.org/README
broffice.org/broffice.org.SlackBuild
broffice.org/slack-desc
broffice.org/doinst.sh
root@base2:/home/base2/openoffice131# cp BrOOo_3.1.1_LinuxX86-64_install_pt-BR.tar.gz broffice.org
root@base2:/home/base2/openoffice131# cd broffice.org
root@base2:/home/base2/openoffice131/broffice.org# chmod +x broffice.org.SlackBuild
root@base2:/home/base2/openoffice131/broffice.org# ./broffice.org.SlackBuild
tar (child): /home/base2/openoffice131/broffice.org/BrOOo_3.1.1_LinuxIntel_install_pt-BR.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
./broffice.org.SlackBuild: line 69: SOURCEDIR: unbound variable
root@base2:/home/base2/openoffice131/broffice.org# cd ..
root@base2:/home/base2/openoffice131# md5sum BrOOo_3.1.1_LinuxX86-64_install_pt-BR.tar.gz
b95383860da22d173a7f0374dbdb7c61 BrOOo_3.1.1_LinuxX86-64_install_pt-BR.tar.gz
root@base2:/home/base2/openoffice131#


Any idea thanks :-)

ps:Sorry, the links that appear not exist!

bathory 06-08-2010 02:02 AM

Hi,

Quote:

tar (child): /home/base2/openoffice131/broffice.org/BrOOo_3.1.1_LinuxIntel_install_pt-BR.tar.gz: Cannot open: No such file or directory
tar is looking for the above archive, while you have the 64bit (BrOOo_3.1.1_LinuxX86-64_install_pt-BR.tar.gz) version
I guess you should edit broffice.org.SlackBuild and use the correct arch.

afreitascs 06-08-2010 11:09 PM

Quote:

Originally Posted by bathory (Post 3996259)
Hi,

tar is looking for the above archive, while you have the 64bit (BrOOo_3.1.1_LinuxX86-64_install_pt-BR.tar.gz) version
I guess you should edit broffice.org.SlackBuild and use the correct arch.

Thank you for your replies bathory

Below is part of the original script SlackBuild

============================================
Code:

#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=broffice.org
VERSION=3.1.1
ARCH=${ARCH:-i586}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

# Work just for pt-BR. Other languages must use the OpenOffice.org slackbuild.
OOLANG="pt-BR" # Leave this alone
PKG_LANG=$(echo $OOLANG | sed s/-/_/)    # Leave this alone

# If you want to disable java support by removing executable permissions
# form OOo's java loader (this will not affect other apps), set this
# variable to "YES"  Default is "NO"
DISABLE_JAVA=${DISABLE_JAVA:-NO}

# Change source package name
if [ "$ARCH" = "x86_64" ]; then
  SRCARCH="X86-64"
  PKGARCH="$ARCH"
else
  SRCARCH="Intel"
  PKGARCH="i586"
fi

# Yes, I know there is a Slackware integration file in the desktop-integration
# directory, but it's worthless to us.  I'd prefer to do things correctly.

# Ignore this - it's just to get the toplevel directory name of the
# extracted tarball archive
SOURCEDIR=$(tar tzf $CWD/BrOOo_${VERSION}_Linux${SRCARCH}_install_${OOLANG}.tar.gz | head -1 | tr -d \/)

===========================================
If I change the lines as noted below, I get the tgz package, which installs and everything works, but I think it is not the most correct way to modify the script ...

Below, the modifications made by myself ...

==========================================

Code:

#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=broffice.org
VERSION=3.1.1
ARCH=${ARCH:x86_64} # <========== modified
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

# Work just for pt-BR. Other languages must use the OpenOffice.org slackbuild.
OOLANG="pt-BR" # Leave this alone
PKG_LANG=$(echo $OOLANG | sed s/-/_/)    # Leave this alone

# If you want to disable java support by removing executable permissions
# form OOo's java loader (this will not affect other apps), set this
# variable to "YES"  Default is "NO"
DISABLE_JAVA=${DISABLE_JAVA:-NO}

# Change source package name
#if [ "$ARCH" = "x86_64" ]; then # <========== modified
  SRCARCH="X86-64"
  PKGARCH="$ARCH"
#else# <========== modified
#  SRCARCH="Intel"# <========== modified
#  PKGARCH="i586"# <========== modified
#fi# <========== modified

# Yes, I know there is a Slackware integration file in the desktop-integration
# directory, but it's worthless to us.  I'd prefer to do things correctly.

# Ignore this - it's just to get the toplevel directory name of the
# extracted tarball archive
SOURCEDIR=$(tar tzf $CWD/BrOOo_${VERSION}_Linux${SRCARCH}_install_${OOLANG}.tar.gz | head -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
[ -z $SOURCEDIR ] && unset SOURCEDIR

================================================



Many thamks

afreitascs 06-10-2010 10:50 PM

I solved the script, replacing the line

ARCH=${ARCH:-i586}

using the script below (glue script)

Quote:

# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi

The original script is maintained by Edward Oda, and the script where I got the glue is maintained by Robby Workman

I'm not programmer or something similar, just a user of common Linux-Slackware.
If I did something I should not do, I'm sorry.

ps: Tested in Slack13.1 (32) and Slack13.1 (64)

Thanks :-)

eduoda 06-14-2010 07:16 AM

you dont have to edit the script, just set the ARCH when you run the script:

# ARCH=x86_64 ./broffice.org.SlackBuild

thanks for your feedback!


All times are GMT -5. The time now is 07:34 AM.