Package Details: scala3 3.5.2-3

Git Clone URL: https://aur.archlinux.org/scala-dotty.git (read-only, click to copy)
Package Base: scala-dotty
Description: The Scala 3 compiler, also known as Dotty.
Upstream URL: http://dotty.epfl.ch
Keywords: java jre jvm sbt
Licenses: Apache-2.0
Submitter: corvus_192
Maintainer: envolution
Last Packager: envolution
Votes: 14
Popularity: 0.020287
First Submitted: 2017-10-27 19:01 (UTC)
Last Updated: 2024-11-12 10:54 (UTC)

Dependencies (1)

Sources (1)

Latest Comments

1 2 3 Next › Last »

envolution commented on 2024-11-12 10:56 (UTC)

@rubin55 thanks for the help, updated with your suggestion - let me know if any issues

rubin55 commented on 2024-11-12 10:10 (UTC) (edited on 2024-11-12 10:17 (UTC) by rubin55)

@envolution there is one change missing (see upstream issue) that will make everything work again - the maven2 directory is erronuously not added to the package:

diff --git a/PKGBUILD b/PKGBUILD
index 6f8198b..c37a118 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ pkgname=(
   'scala3'
 )
 pkgver=3.5.2
-pkgrel=2
+pkgrel=3
 pkgdesc='The Scala 3 compiler, also known as Dotty.'
 arch=('any')
 url='http://dotty.epfl.ch'
@@ -20,6 +20,7 @@ sha256sums=('899de4f9aca56989ce337d8390fbf94967bc70c9e8420e79f375d1c2ad00ff99')
 package_scala3() {
   install -d    "${pkgdir}/usr/bin"        "${pkgdir}/usr/share/scala3/bin"
   cp      -r    "scala3-${pkgver}/lib"     "${pkgdir}/usr/share/scala3"
+  cp      -r    "scala3-${pkgver}/maven2"     "${pkgdir}/usr/share/scala3"
   install -m755 "scala3-${pkgver}/bin/"*   "${pkgdir}/usr/share/scala3/bin"
   install -m644 "scala3-${pkgver}/VERSION" "${pkgdir}/usr/share/scala3/VERSION"

Looking at the PKGBUILD now, I do think it is better to copy the entire archive output to /usr/share/scala3 instead of cherry-picking; this would avoid issues with future releases changing the layout of scala3_home.

I was also looking at @mbloms comment from 2020: "Some time in the future scala-dotty should be removed and the package base moved to scala3"; I do think that time has come :-).

envolution commented on 2024-11-12 03:58 (UTC)

@rubin55 - thanks, updated and will watch the issue report

rubin55 commented on 2024-11-11 21:27 (UTC)

Fwiw, I think upstream Scala 3.5.2 is broken. scalac does not seem to run normally and the jar files directory seems to be empty except for three manifest-only jars. I filed https://github.com/scala/scala3/issues/21926

rubin55 commented on 2024-11-11 20:58 (UTC) (edited on 2024-11-11 21:05 (UTC) by rubin55)

$ scala --version
/usr/bin/scala: line 40: /usr/share/scala3/VERSION: No such file or directory
Failed to extract Scala version from /usr/share/scala3/VERSION
diff --git a/PKGBUILD b/PKGBUILD
index fc70696..5ac4f5e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
 pkgbase=scala-dotty
 pkgname=('scala-dotty' 'scala3')
 pkgver=3.5.2
-pkgrel=1
+pkgrel=2
 pkgdesc='The Scala 3 compiler, also known as Dotty.'
 arch=('any')
 url='http://dotty.epfl.ch'
@@ -20,6 +20,7 @@ package_scala3() {
        install -d "${pkgdir}/usr/bin" "${pkgdir}/usr/share/scala3/bin"
        cp -r "${srcdir}/scala3-${pkgver}/lib" "${pkgdir}/usr/share/scala3"
        install -m755 "${srcdir}/scala3-${pkgver}/bin/"* "${pkgdir}/usr/share/scala3/bin"
+       install -m644 "${srcdir}/scala3-${pkgver}/VERSION" "${pkgdir}/usr/share/scala3/VERSION"

        # Scala 3 symlinks in /usr/bin
        ln -s "../share/scala3/bin/scala"  "${pkgdir}/usr/bin/scala3"

mk.arch commented on 2024-03-06 20:31 (UTC)

Building scala-dotty... ==> ERROR: PKGBUILD does not exist.

valsaven commented on 2023-06-19 06:45 (UTC)

@mbloms I sent you the patch for 3.3.0 via email. Please check when you have time

rubin55 commented on 2023-06-13 20:57 (UTC)

@mbloms: could you upgrade to 3.3.0?

mbloms commented on 2020-11-19 08:34 (UTC)

The intent with the latest update is that scala3 gives you Scala 3 as scala3 on the PATH.

scala-dotty provides symlinks dotr -> scala3 etc.

Some time in the future scala-dotty should be removed and the package base moved to scala3

If you want to be able to run scala3 as scala, you have to make your own alias or symlink.

Please tell me if you have issues or opinions on this.