LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-23-2023, 05:05 AM   #1
Johpin
Member
 
Registered: May 2020
Posts: 46

Rep: Reputation: Disabled
Build script of LibreOffice from slackbuilds.org won't make a package.


I tried to build LibreOffice 7.5.1.2 from slackbuilds.org for a Raspberry Pi 4B.

After about 12 hours of compilation it is almost ready, however the builing stopped with:

LibreOffice.SlackBuild: line 329: unexpected EOF while looking for matching `''

Below is a part of the LibreOffice.Slackbuild file with line numbers added:

320 # Only enable pyuno if requested
321 if [ "${PYUNO:-no}" == "yes" ]; then
322 # Use the system python if we have it, else use the python just built with LibreOffice
323 PYTHONEXE=$(which python3) || PYTHONEXE=$PKG/usr/lib$LIBDIRSUFFIX/$SRCNAM/program/python
324 PYSITEDIR=$($PYTHONEXE -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
325 mkdir -p $PKG/$PYSITEDIR
326 cat <<EOF >$PKG/$PYSITEDIR/pyuno.pth
327 import sys; sys.path.insert(0,'/usr/lib$LIBDIRSUFFIX/libreoffice/program')
328 EOF
329 chmod 0644 $PKG/$PYSITEDIR/pyuno.pth
330 fi
331
332 mkdir -p $PKG/etc/profile.d
333 sd_prog=/usr/lib$LIBDIRSUFFIX/libreoffice/program
334 cat <<EOF >$PKG/etc/profile.d/libreoffice.sh
335 export UNO_PATH=$sd_prog
336 export URE_BOOTSTRAP=vnd.sun.star.pathname:$sd_prog/fundamentalrc
337 export PATH=\${PATH}:$sd_prog
338 EOF
339 cat <<EOF >$PKG/etc/profile.d/libreoffice.csh
340 setenv UNO_PATH $sd_prog
341 setenv URE_BOOTSTRAP vnd.sun.star.pathname:$sd_prog/fundamentalrc
342 setenv PATH \${PATH}:$sd_prog
343 EOF
344 chmod 0755 $PKG/etc/profile.d/libreoffice.{csh,sh}
345


It has been build by "JAVA=no sh LibreOffice.SlackBuild", so UNOPY will not be used.

What should be adapted to the build script?
 
Old 03-23-2023, 10:54 PM   #2
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,732

Rep: Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396
You could try Alien Bob's libreoffice, see if you have better luck with his
https://us.slackware.nl/people/alien...s/libreoffice/

Last edited by Daedra; 03-23-2023 at 10:55 PM.
 
Old 03-24-2023, 01:08 AM   #3
chris.willing
Member
 
Registered: Jun 2014
Location: Sydney, Australia
Distribution: Slackware,LFS
Posts: 920

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
Quote:
Originally Posted by Johpin View Post
I tried to build LibreOffice 7.5.1.2 from slackbuilds.org for a Raspberry Pi 4B.

After about 12 hours of compilation it is almost ready, however the builing stopped with:

LibreOffice.SlackBuild: line 329: unexpected EOF while looking for matching `''

Below is a part of the LibreOffice.Slackbuild file with line numbers added:

[FONT="Courier New"] 320 # Only enable pyuno if requested
321 if [ "${PYUNO:-no}" == "yes" ]; then

...
...

It has been build by "JAVA=no sh LibreOffice.SlackBuild", so UNOPY will not be used.

What should be adapted to the build script?
PYUNO is not related to JAVA in any way that I'm aware of.

Line 329 is not normally exercised unless you have set PYUNO=yes when running the SlackBuild (it defaults to "no"). If you haven't explicitly set that, then there is probably some sort of string quoting error earlier on in the script - have you edited the SlackBuild in any way?

I've never tried building on a Raspberry Pi, so would be interested in applying any successful changes to the official SlackBuild.

chris
 
Old 03-24-2023, 05:14 AM   #4
Johpin
Member
 
Registered: May 2020
Posts: 46

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chris.willing View Post
If you haven't explicitly set that, then there is probably some sort of string quoting error earlier on in the script - have you edited the SlackBuild in any way?
As far as I know I did not edit it, but I must have opened it with nvi and saved it. The character M pops sometimes up when I want to write and close it. I must have removed this M and probably also a string. I will switch to elvis.

Quote:
Originally Posted by chris.willing View Post
I've never tried building on a Raspberry Pi, so would be interested in applying any successful changes to the official SlackBuild.
I build it again and now the package has been built successfully. Thanks for solving a problem I have introduced accidentally by myself.
 
  


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
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
LXer: Build Your Business Around LibreOffice, LibreOffice Certification Program Announced LXer Syndicated Linux News 0 05-07-2012 12:10 PM
Build error when running the SlackBuilds.org script for LMMS Crushing Belial Slackware 1 08-05-2009 05:01 PM
Use SlackBuilds.org or my own hosting to offer up SlackBuilds? hollywoodb Slackware 6 11-30-2006 08:56 PM

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

All times are GMT -5. The time now is 11:27 PM.

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