LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-07-2010, 11:45 PM   #1
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Rep: Reputation: 30
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!

Last edited by afreitascs; 06-07-2010 at 11:47 PM.
 
Old 06-08-2010, 02:02 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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.

Last edited by bathory; 06-08-2010 at 02:03 AM.
 
Old 06-08-2010, 11:09 PM   #3
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by bathory View Post
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

Last edited by afreitascs; 06-08-2010 at 11:14 PM.
 
Old 06-10-2010, 10:50 PM   #4
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Original Poster
Rep: Reputation: 30
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 :-)
 
Old 06-14-2010, 07:16 AM   #5
eduoda
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multilib slack64 wingevil Slackware 6 02-21-2010 07:53 PM
Partition Size for / in Slack64 Multilib Current damgar Slackware 8 01-13-2010 05:19 PM
printing from firefox with slack64 and multilib BCarey Slackware 3 01-11-2010 10:30 AM
slack64: help for repair AlienBobs multilib wingevil Slackware 14 10-29-2009 05:52 AM
libdrm from git - Slack64 multilib? kukibl Slackware 1 10-14-2009 03:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration