Package Details: graal-bin 1.0.0_rc10-1

Git Clone URL: https://aur.archlinux.org/graal-bin.git (read-only)
Package Base: graal-bin
Description: Universal virtual machine for running applications written in a variety of languages (JVM-based, LLVM-based, or other)
Upstream URL: https://www.graalvm.org/
Licenses: custom
Conflicts: graal
Provides: graal, java-environment=8, java-runtime=8
Submitter: lucaswerkmeister
Maintainer: lucaswerkmeister
Last Packager: lucaswerkmeister
Votes: 13
Popularity: 1.990751
First Submitted: 2018-05-02 22:30
Last Updated: 2018-12-07 22:48

Required by (1000)

Sources (1)

Latest Comments

lucaswerkmeister commented on 2018-12-07 22:50

graaljs RC10 requires function expressions to be parenthesized 1, so the test script now becomes:

#!/usr/lib/jvm/java-8-graal/jre/languages/R/bin/Rscript --polyglot
jsPlus = eval.polyglot('js', '(function(s1, s2) { return s1 + s2; })')
pythonPlus = eval.polyglot('python', 'lambda s1, s2: s1 + s2')
rubyOne = eval.polyglot('ruby', '1')
pythonOne = eval.polyglot('python', '1')
rOne = 1
print(pythonPlus(jsPlus(rubyOne, pythonOne), rOne))

lucaswerkmeister commented on 2018-10-22 10:32

By the way, if anyone wants to take over this package in the future – here’s the script I use to test new package versions after building and locally installing them, before pushing them to AUR:

#!/usr/lib/jvm/java-8-graal/jre/languages/R/bin/Rscript --polyglot
jsPlus = eval.polyglot('js', 'function(s1, s2) { return s1 + s2; }')
pythonPlus = eval.polyglot('python', 'lambda s1, s2: s1 + s2')
rubyOne = eval.polyglot('ruby', '1')
pythonOne = eval.polyglot('python', '1')
rOne = 1
print(pythonPlus(jsPlus(rubyOne, pythonOne), rOne))

If all the packages still work, this should print:

[1] 3

lucaswerkmeister commented on 2018-09-10 20:14

@arb12: I know. The package had already been flagged out-of-date hours earlier. There’s really no need to comment on it as well. (It’s updated now, along with fastr-bin, truffleruby-bin and graalpython-bin, of course.)

arp12 commented on 2018-09-10 17:37

RC6 is available

lucaswerkmeister commented on 2018-07-27 21:36

Note: LibreOffice is apparently not compatible with the Java provided by this package. If you get the following error:

/usr/lib/libreoffice/program/soffice.bin: symbol lookup error: /usr/lib/libharfbuzz.so.0: undefined symbol: FT_Face_GetCharVariantIndex

then you need to configure LibreOffice to use a different Java. Unfortunately, just switching the default Java with archlinux-java isn’t enough for this, since LibreOffice seems to cache the default Java location. The following steps worked for me:

  1. Switch the default Java to java-10-openjdk (pacman -S jre10-openjdk; archlinux-java set java-10-openjdk).
  2. Remove the file ~/.config/libreoffice/4/user/config/javasettings_Linux_X86_64.xml (which I found by grepping ~/.config for “graal”).
  3. Launch LibreOffice. This will regenerate the file mentioned above, this time referring to Java 10.
  4. At this point, you can switch the default Java back to java-8-graal, and LibreOffice will continue to use Java 10.

lucaswerkmeister commented on 2018-06-15 09:36

Okay, finally updated. (Sorry it took so long – I was having some unrelated makepkg problems.)

lucaswerkmeister commented on 2018-06-07 08:55

Thanks for the patch @char101, that makes my life a bit simpler :) I’d like to credit you as the git author of the commit to update PKGBUILD, should I use any particular name or email address?

char101 commented on 2018-06-07 04:37

rc2 is available

diff --git a/PKGBUILD b/PKGBUILD
index 8bb6b3b..2113e01 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 pkgname_=graal
 pkgname=${pkgname_}-bin
-pkgver_=1.0.0-rc1
+pkgver_=1.0.0-rc2
 pkgver=${pkgver_/-/_}
 pkgrel=1
 pkgdesc='Universal virtual machine for running applications written in a variety of languages (JVM-based, LLVM-based, or other)'
@@ -17,11 +17,11 @@ provides=('java-environment=8' "$pkgname_")
 conflicts=("$pkgname_")
 install="$pkgname.install"
 source=("https://github.com/oracle/$pkgname_/releases/download/vm-${pkgver_}/graalvm-ce-${pkgver_}-linux-amd64.tar.gz")
-sha256sums=('08474e5b934e44f515df6c0449289b20b26990a9fc45fe0a58901d181117e009')
+sha256sums=('3f0175db4271a230777e21cf5ecc718a1e19bc7c4d2669af6b6c69605a21ff94')

 package() {
-    cd "${pkgname_}vm-${pkgver_}"
+    cd "${pkgname_}vm-ce-${pkgver_}"
     mkdir -p "$pkgdir/usr/lib/jvm/java-8-graal/"
     cp -a -t "$pkgdir/usr/lib/jvm/java-8-graal/" *
-    install -Dm644 GraalCE_license_3rd_party_license.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/"
 }