FS#47763 - [octave] please compile with Java support

Attached to Project: Arch Linux
Opened by Pascal Dupuis (_CdeMills_) - Friday, 15 January 2016, 08:17 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 25 February 2018, 12:08 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description: Octave package is not compiled with Java support

I need to process a lot of data in xslx files; I open them with the 'io' package, function 'xlsread', using the Apache POI interface. I rebuilt Octave with Java support, which is not that complicated but long. Maybe another package with a static java dependency should be created ?

Additional info:
* package version(s) octave 4.0.0-7
* config and/or log files etc.

Steps to reproduce:

At compile time, the 'configure' script only enable Java if there is an environment variable "JAVA_HOME" under which it can find "libjvm.so". To enable java, the steps are:
1) install it: pacman -Suy jdk8-openjdk
2) export JAVA_HOME=/usr/lib/jvm/java-8-openjdk
3) compile as usual

in PKGBUILD, this implies:
1) add 'jdk8-openjdk' to the dependencies
2) change the build step:

./configure --prefix=/usr --libexecdir=/usr/lib \

becomes

env JAVA_HOME=/usr/lib/jvm/java-8-openjdk ./configure --prefix=/usr --libexecdir=/usr/lib \


Regards

Pascal
This task depends upon

Closed by  Antonio Rojas (arojas)
Sunday, 25 February 2018, 12:08 GMT
Reason for closing:  Implemented
Additional comments about closing:  octave 4.2.1-9
Comment by Ashwin Vishnu (jadelord) - Saturday, 06 August 2016, 22:29 GMT
I attempted to modify the existing PKGBUILD following hints from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=octave-hg such that, java can be added under optdepends. (See attached).

However this cannot be a replacement solution, since archlinux supports both jre7 and jre8 at the moment. And there is no way to tell what the user may have in his system. A more logical and cleaner way would be to offer 2 separate packages like octave-jre7 and octave-jre8.
   PKGBUILD (2.4 KiB)

Loading...