apache-lucene has 2 versions available for download and both would fail the build for Scilab 6.1.1
- Version 9.4.0 breaks the build: issue#16897: Scilab does not build against Lucene 9.4.0
configure: error: Could not find or use the Java package/jar lucene-core used by Lucene (looking for package org.apache.lucene.LucenePackage)
- Version 8.11.2 breaks the build: issue#16896: Scilab does not build against Lucene 8.11.2, however that got fixed recently and the Scilab @ branch 6.1 has that fixed.
However, apache-lucene
AUR package is using version 9.4.0
by default which requires:
- Patching apache-lucene to be at version 8.11.2
sed -i "s#9.4.0#8.11.2#g" PKGBUILD
sed -i "s#c1b8944b0a8d14ca30f643baaa53cb38778d869366d365a7b8c85f7619ebbd12#c1b8944b0a8d14ca30f643baaa53cb38778d869366d365a7b8c85f7619ebbd12#g" PKGBUILD
- Patching this repo to contain the fix#21829
--- PKGBUILD 2022-10-18 02:03:07.510159940 +0000
+++ PKGBUILD.latest 2022-10-18 01:52:53.606223616 +0000
@@ -6,7 +6,7 @@
# Contributor : bartus <scilab-aur@bartus.33mail.com>
pkgname=scilab
-pkgver=6.1.1
+pkgver=6.1
pkgrel=1
pkgdesc='A scientific software package for numerical computations.'
arch=('i686' 'x86_64')
@@ -26,7 +26,7 @@
makedepends=('java-environment=8' 'ant>=1.9.0'
'ocaml-findlib' 'ocaml-num' 'gcc-fortran'
'time')
-source=("${url}/download/${pkgver}/${pkgname}-${pkgver}-src.tar.gz"
+source=("https://gitlab.com/scilab/scilab/-/archive/6.1/scilab-6.1.tar.gz"
"${pkgname}-jogl-2.3.2.patch"
"${pkgname}-strict-jar.patch"
"${pkgname}-LD_LIBRARY_PATH.patch"
@@ -35,7 +35,7 @@
"libxml.patch"
"hdf5_18_api.patch"
)
-sha256sums=('e51347638bd385c276c930785a1f9f079ae7eaa78c62a0eca1dc7e6142434207'
+sha256sums=('178fc38af09a9b07a51db8bd70523d024f3337a82a5817dccf5cf8fd77ce4c8d'
'7b7b5609ee36b6f8d801eeb3899cd62cc889c2038e0e1616b7640f9b8a0424b0'
'38aa094951338fa1d267dc6f397552e175213b0f8ba7b35727c178607861f6dd'
'a39277cb8cfc3d7929c73ce6d707dc24e3df4b8d8f2d587f075efebda79ff4db'
@@ -45,7 +45,7 @@
'f781c2919a0c14be5deed3a8b8866addd8de1171a06aacb96ef1e19535d0988e')
prepare(){
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${srcdir}/${pkgname}-${pkgver}/scilab"
# https://codereview.scilab.org/#/c/17530/
patch -p2 < "${srcdir}"/${pkgname}-jogl-2.3.2.patch
@@ -64,7 +64,7 @@
}
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${srcdir}/${pkgname}-${pkgver}/scilab"
./configure \
--prefix=/usr \
@@ -90,7 +90,7 @@
}
package(){
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${srcdir}/${pkgname}-${pkgver}/scilab"
make DESTDIR="${pkgdir}" install
make DESTDIR="${pkgdir}" install-data install-html
Note: Unfortunately even building the latest Scilab 6.1 using lucene 8.11.2 failed as mentioned in issue#16898: Building Scilab fails on Arch Linux
Pinned Comments
bartus commented on 2022-03-14 10:36 (UTC)
Sorry lads, I'm at the Polish Ukraine border helping allocate refugees. Expect no update until this hell is over, wish us luck. Have no time nor access to my rig and AUR keys to test/post updates. If you have a patch, ping me on email - I'll add you as co-maintainer. Posted with my old script - https://github.com/bartoszek/aur-post
bartus commented on 2021-07-22 10:09 (UTC) (edited on 2021-07-22 10:10 (UTC) by bartus)
Please report issues and patches at https://github.com/bartoszek/AUR-scilab
eolianoe commented on 2017-05-03 12:22 (UTC) (edited on 2017-06-28 15:03 (UTC) by eolianoe)