Package Details: scala3 3.6.2-4

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: 15
Popularity: 0.57
First Submitted: 2017-10-27 19:01 (UTC)
Last Updated: 2024-12-13 14:52 (UTC)

Dependencies (1)

Sources (1)

Latest Comments

1 2 3 Next › Last »

envolution commented on 2024-12-13 14:55 (UTC)

@rubin55 the package is called scala3, scala-dotty is just some backward compatible symlinks which you don't need to install - i reverted to an old PKGBUILD and bumped the version to fix the error you had

envolution commented on 2024-12-13 14:43 (UTC)

yes, they replaced the release after i deployed it, I did make note of their error with the package not following the standard root directory inclusion

rubin55 commented on 2024-12-13 13:27 (UTC) (edited on 2024-12-13 13:34 (UTC) by rubin55)

Hi, I see you updated the package to 3.6.2, and also the sha256sum, but, I'm getting another sum for the download: 690f278f88ff8465dd2e8cd314d6c507ad79fef9533e89051f858c8192b7856d; did upstream change the package? Or is something nevarious going on?

Secondly, I noticed you download the file now named as test; this is quite ambiguous as a source name :-).

Finally, did you consider changing the package name to scala3? I think dotty is not really a great name ever since the stable release of Scala version 3.x.

I also noticed that they changed the tar.gz layout again upstream. Here's a diff of the fixes:

diff --git a/PKGBUILD b/PKGBUILD
index 2ee88f7..aafbfb1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,19 +9,19 @@ pkgname=(
   'scala3'
 )
 pkgver=3.6.2
-pkgrel=3
+pkgrel=4
 pkgdesc='The Scala 3 compiler, also known as Dotty.'
 arch=('any')
 url='http://dotty.epfl.ch'
 license=('Apache-2.0')
 depends=('java-environment>=8')
-source=("test::https://github.com/lampepfl/dotty/releases/download/${pkgver}/scala3-${pkgver}.tar.gz")
-sha256sums=('9525b93f8b9488330ecbdb85df3046d3ef46c6760ac23248902c4d89194c5206')
+source=("https://github.com/lampepfl/dotty/releases/download/${pkgver}/scala3-${pkgver}.tar.gz")
+sha256sums=('690f278f88ff8465dd2e8cd314d6c507ad79fef9533e89051f858c8192b7856d')

 package_scala3() {
   install -d "${pkgdir}/usr/bin"
   install -d "${pkgdir}/usr/share/scala3"
-  cp -r "./"* "${pkgdir}/usr/share/scala3/"
+  cp -r "./scala3-${pkgver}/"* "${pkgdir}/usr/share/scala3/"
   chmod -R 755 "${pkgdir}/usr/share/scala3/bin/"*

   # Scala 3 symlinks in /usr/bin

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