LinuxQuestions.org
Review your favorite Linux distribution.
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 12-16-2017, 04:10 PM   #1
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Rep: Reputation: 174Reputation: 174
openjdk from sbopkg won't build on current


I just installed slackware-current on a new machine a few days ago, and now I'm trying to install openjdk from sbopkg. It fails with:

configure: error: None of the following programs could be found on the PATH: fastjar jar

There were no dependencies noted on the openjdk package. What do I need to get past this?
 
Old 12-16-2017, 04:12 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
yes, it's a known problem since gcc-java is now removed in -current
 
1 members found this post helpful.
Old 12-16-2017, 05:25 PM   #3
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Original Poster
Rep: Reputation: 174Reputation: 174
Is there a way around it? Is gcc-java out for good?

I was really just wanting to build libreoffice, which lists openjdk as a requirement. I guess I could install a pre-compiled libreoffice binary.

Last edited by Z038; 12-16-2017 at 05:27 PM.
 
Old 12-16-2017, 06:20 PM   #4
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by Z038 View Post
I was really just wanting to build libreoffice, which lists openjdk as a requirement.
Alien Bob has pre-built packages for Libreoffice that work well on slackware-current.

http://www.slackware.com/~alien/slac...e/pkg/current/

http://www.slackware.com/~alien/slac...pkg64/current/

Last edited by hitest; 12-16-2017 at 06:22 PM. Reason: Addition
 
1 members found this post helpful.
Old 12-16-2017, 06:24 PM   #5
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
From the README:
Quote:
5. A number of Java Development Kits are suitable for building LibreOffice.
The default JDK for this SlackBuild is openjdk. Others may be chosen by
setting the JAVA environment variable when running the SlackBuild. Recognised
values are openjdk (the default, not explicitly required), openjdk8 and jdk
e.g. JAVA=jdk (to use SBo jdk package with Oracle binary version). Using an
alternate JDK will require presence of the appropriate package when building
LibreOffice. Since the apache-ant package is already required by openjdk,
hence openjdk8, its listing in the REQUIRES field is redundant in these cases.
However it remains listed to accomodate the case of JAVA=jdk, in which the
apache-ant package is needed to build LibreOffice.
Finally, setting JAVA=no will build LibreOffice without any Java support.
The simplest workaround at the moment is probably to use SBo's plain jdk (the Oracle binary repackaging) instead of openjdk.

chris
 
1 members found this post helpful.
Old 12-16-2017, 06:56 PM   #6
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Not true at all. In the case of libreoffice the simplest work around is to not build it with jdk support, its not required for most functionality. Personally I have never noticed any features missing from building libreoffice without jdk. The only required dependency for libreoffice on Slackware is perl-Archive-Zip. However you know this already and have simply disregarded it....
 
1 members found this post helpful.
Old 12-16-2017, 07:37 PM   #7
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
even with "JAVA=no" you must still modify the slackbuild to delete
Code:
    --with-system-poppler \
then it will build on current with JAVA=no or JAVA=jdk

HTH
John
 
3 members found this post helpful.
Old 12-16-2017, 07:37 PM   #8
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by orbea View Post
Not true at all. In the case of libreoffice the simplest work around is to not build it with jdk support, its not required for most functionality. Personally I have never noticed any features missing from building libreoffice without jdk. The only required dependency for libreoffice on Slackware is perl-Archive-Zip. However you know this already and have simply disregarded it....
The portion of the README previously quoted already mentions the possibility of building without a JDK. This is great feature of the SlackBuild system in general; that you can easily change any SlackBuild as you like to suit your particular needs.

However, for normal usage, I prefer SlackBuilds that by default produce functional packages rather than minimalist (simplistic?) packages.

chris

Last edited by chris.willing; 12-16-2017 at 08:12 PM.
 
Old 12-16-2017, 07:39 PM   #9
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by AlleyTrotter View Post
even with "JAVA=no" you must still modify the slackbuild to delete
Code:
    --with-system-poppler \
then it will build on current with JAVA=no or JAVA=jdk

HTH
John
Thanks for that extra info. I'll incorporate it into the next update.

chris
 
Old 12-16-2017, 08:05 PM   #10
heyjann
Member
 
Registered: Dec 2015
Posts: 102

Rep: Reputation: Disabled
Alien Bob has prebuilt libreoffice packages as noted before, but also openjdk if you need it.

http://bear.alienbase.nl/mirrors/peo...86_64/openjdk/
 
1 members found this post helpful.
Old 12-16-2017, 09:10 PM   #11
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Quote:
Originally Posted by chris.willing View Post
However, for normal usage, I prefer SlackBuilds that by default produce functional packages rather than minimalist (simplistic?) packages.

chris
1. Libreoffice is perfectly functional without jdk.
2. Libreoffice is perfectly functional without avahi.
3. Libreoffice provides its own python3 implementation so that using the system python3 is entirely optional.
4. You are missing maybe a dozen + other optional dependencies that are available on SBo already.

I offered my libreoffice script to SBo a while before yours was accepted and it was rejected because they did not need two libreoffice scripts. Since this is no longer true I really do not appreciate that users keep tripping over your incomplete script you have refused to fix or that you managed to sneak your script in without anyone ever contacting me...
 
Old 12-17-2017, 01:36 AM   #12
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by orbea View Post
1. Libreoffice is perfectly functional without jdk.
2. Libreoffice is perfectly functional without avahi.
3. Libreoffice provides its own python3 implementation so that using the system python3 is entirely optional.
4. You are missing maybe a dozen + other optional dependencies that are available on SBo already.
I'm unsure of the point you're trying to make with this list - too many options included or not enough?

As already explained (or check the README), several user options determine inclusion (or not) of a particular JDK in the build.

Avahi is not included by default. As explained in the README, use "AVAHI=yes" if you want it included.

The python3 that LO can itself provide is sometimes not suitable, causing conflicts with any external applications trying to communicate with LibreOffice via the UNO bridge. Using a system python3 for both LibreOffice and the external application(s) prevents this problem. Perhaps this type of communication with external applications is not a feature that you personally use.

Quote:
Originally Posted by orbea View Post
I offered my libreoffice script to SBo a while before yours was accepted and it was rejected because they did not need two libreoffice scripts. Since this is no longer true I really do not appreciate that users keep tripping over your incomplete script you have refused to fix or that you managed to sneak your script in without anyone ever contacting me...
I guess this is the real reason for the ongoing harping, across so many LibreOffice related threads, about options you don't agree with. I'm sorry you feel mistreated but assure you there was never any plot to "sneak" my script into SBo.

For those interested in @orbea's version of how things should be, it's at https://notabug.org/orbea/Slackbuild...ce/libreoffice

chris
 
2 members found this post helpful.
Old 12-17-2017, 10:57 AM   #13
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Original Poster
Rep: Reputation: 174Reputation: 174
I built Libreoffice with JAVA=no and with "--with-system-poppler " removed from the slackbuild script. It worked great. I'm not sure what I might be missing without that option and without Java, but I'm not worried about it. Libreoffice is working properly and doing what I need it to do.

Thank you chris.willing for the slackbuild, and thank you AlleyTrotter for pointing out the option that needed to be remove when building with JAVA=no.

I'm marking this solved. I'm still curious about why gcc-java was removed from current, but I'm guessing it's been discussed in other threads and I can find it if I want.

Last edited by Z038; 12-17-2017 at 11:00 AM.
 
2 members found this post helpful.
Old 12-17-2017, 01:08 PM   #14
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Z038 View Post
I'm still curious about why gcc-java was removed from current, but I'm guessing it's been discussed in other threads and I can find it if I want.
Because gcc developers removed it with gcc7.

Quote:
As of GCC 7, the GCC Java frontend and associated libjava runtime library have been removed from GCC. The information on this page is kept here for reference but only applies to GCC 6 and earlier.

SOURCE:https://gcc.gnu.org/wiki/GCJ
 
1 members found this post helpful.
  


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] ledger-cli slackbuild won't build against Boost in current navigium Slackware 3 08-24-2021 08:52 AM
[SOLVED] spice-gtk on slackware current won't build TarFile Slackware 14 04-11-2016 12:29 PM
Icecat won't build in latest current slackass Slackware 9 04-29-2015 04:34 PM
[SOLVED] zoneminder-1.25.0 won't build in slackware64-current buckprivatemil Slackware 3 07-19-2013 08:07 PM
SBOPKG(8) not list/show/build dependencies of SlackBuild scripts to build Slackware p xavi_slacky Slackware 3 06-13-2013 07:53 PM

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

All times are GMT -5. The time now is 07:26 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