Package Details: scala-sources 2.13.15-3

Git Clone URL: https://aur.archlinux.org/scala.git (read-only, click to copy)
Package Base: scala
Description: Scala sources
Upstream URL: https://www.scala-lang.org
Licenses: Apache-2.0
Replaces: scala-src
Submitter: arojas
Maintainer: isomarcte
Last Packager: isomarcte
Votes: 9
Popularity: 0.72
First Submitted: 2023-04-01 17:29 (UTC)
Last Updated: 2024-10-04 16:23 (UTC)

Dependencies (3)

Required by (1)

Sources (2)

Latest Comments

1 2 Next › Last »

gonsolo commented on 2024-10-04 16:40 (UTC)

@isomarcte Cool, thanks!

isomarcte commented on 2024-10-04 16:23 (UTC)

@gonsolo @mdedetrich this should be fixed now.

isomarcte commented on 2024-10-04 16:04 (UTC)

@gonsolo @mdedetrich I'm very sorry for the broken build, pushing a fix now.

gonsolo commented on 2024-10-04 16:00 (UTC)

Then it's probably best to link like it's done before pkgrel 2: From 15820c0905d921760d20057d2af4aa59dee94e2f Mon Sep 17 00:00:00 2001 From: Gon Solo gonsolo@gmail.com Date: Fri, 4 Oct 2024 17:58:10 +0200 Subject: [PATCH] Fix links.

---
 PKGBUILD | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 84e2261..e69184e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ pkgbase=scala
 pkgname=(scala scala-docs scala-sources)
 pkgver=2.13.15
 # shellcheck disable=SC2034
-pkgrel=2
+pkgrel=4
 pkgdesc='A Java-interoperable language with object-oriented and functional features'
 # shellcheck disable=SC2034
 arch=('any')
@@ -61,11 +61,11 @@ package_scala() {
   cp -r "${srcdir}/scala-${pkgver}/build/pack/lib" "${pkgdir}/usr/share/scala/"
   install -m755 "${srcdir}/scala-${pkgver}/build/pack/bin/"{fsc,scala,scalac,scalap,scaladoc} "${pkgdir}/usr/share/scala/bin"

-  ln -s "${srcdir}/scala-${pkgver}/build/share/scala/bin/fsc" "${pkgdir}/usr/bin/fsc"
-  ln -s "${srcdir}/scala-${pkgver}/build/share/scala/bin/scala" "${pkgdir}/usr/bin/scala"
-  ln -s "${srcdir}/scala-${pkgver}/build/share/scala/bin/scalac" "${pkgdir}/usr/bin/scalac"
-  ln -s "${srcdir}/scala-${pkgver}/build/share/scala/bin/scalap" "${pkgdir}/usr/bin/scalap"
-  ln -s "${srcdir}/scala-${pkgver}/build/share/scala/bin/scaladoc" "${pkgdir}/usr/bin/scaladoc"
+  ln -s "../share/scala/bin/fsc" "${pkgdir}/usr/bin/fsc"
+  ln -s "../share/scala/bin/scala" "${pkgdir}/usr/bin/scala"
+  ln -s "../share/scala/bin/scalac" "${pkgdir}/usr/bin/scalac"
+  ln -s "../share/scala/bin/scalap" "${pkgdir}/usr/bin/scalap"
+  ln -s "../share/scala/bin/scaladoc" "${pkgdir}/usr/bin/scaladoc"
 }

 package_scala-docs() {
-- 
2.46.2

mdedetrich commented on 2024-10-04 13:15 (UTC) (edited on 2024-10-04 14:03 (UTC) by mdedetrich)

@gonsolo, that diff doesn't solve the issue because the fundamental issue is that the symbolic link is pointing to the build cache i.e.

lrwxrwxrwx      - root  4 Oct 16:00 fsc -> /home/mdedetrich/.cache/yay/scala/src/scala-2.13.15/build/pack/bin/fsc
lrwxrwxrwx      - root  4 Oct 16:00 scala -> /home/mdedetrich/.cache/yay/scala/src/scala-2.13.15/build/pack/bin/scala
lrwxrwxrwx      - root  4 Oct 16:00 scalac -> /home/mdedetrich/.cache/yay/scala/src/scala-2.13.15/build/pack/bin/scalac
lrwxrwxrwx      - root  4 Oct 16:00 scaladoc -> /home/mdedetrich/.cache/yay/scala/src/scala-2.13.15/build/pack/bin/scaladoc
.rwxr-xr-x    45M root 12 Sep 08:12 scalafmt
lrwxrwxrwx      - root  4 Oct 16:00 scalap -> /home/mdedetrich/.cache/yay/scala/src/scala-2.13.15/build/pack/bin/scalap
.rwxr-xr-x   960k root 24 Sep 12:14 scalar

The symbolic link should instead be pointing to the actual installation location which is /usr/share/scala/bin

gonsolo commented on 2024-10-03 18:45 (UTC) (edited on 2024-10-03 19:08 (UTC) by gonsolo)

Installing from yay doesn't work:

file /usr/bin/scala
/usr/bin/scala: broken symbolic link to /home/.../.cache/yay/scala/src/scala-2.13.15/build/share/scala/bin/scala

Installing with makepkg doesn't work:

file /usr/bin/scala
/usr/bin/scala: broken symbolic link to /home/.../src/arch/scala/src/scala-2.13.15/build/share/scala/bin/scala

This patch is needed:

From 1f4f9cdf5dc2a79f69f83f3551423e99dae8c212 Mon Sep 17 00:00:00 2001
From: Gon Solo <gonsolo@gmail.com>
Date: Thu, 3 Oct 2024 21:07:08 +0200
Subject: [PATCH] Fix.

---
 PKGBUILD | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 84e2261..8f31cf1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ pkgbase=scala
 pkgname=(scala scala-docs scala-sources)
 pkgver=2.13.15
 # shellcheck disable=SC2034
-pkgrel=2
+pkgrel=3
 pkgdesc='A Java-interoperable language with object-oriented and functional features'
 # shellcheck disable=SC2034
 arch=('any')
@@ -61,11 +61,11 @@ package_scala() {
   cp -r "${srcdir}/scala-${pkgver}/build/pack/lib" "${pkgdir}/usr/share/scala/"
   install -m755 "${srcdir}/scala-${pkgver}/build/pack/bin/"{fsc,scala,scalac,scalap,scaladoc} "${pkgdir}/usr/share/scala/bin"

-  ln -s "${srcdir}/scala-${pkgver}/build/share/scala/bin/fsc" "${pkgdir}/usr/bin/fsc"
-  ln -s "${srcdir}/scala-${pkgver}/build/share/scala/bin/scala" "${pkgdir}/usr/bin/scala"
-  ln -s "${srcdir}/scala-${pkgver}/build/share/scala/bin/scalac" "${pkgdir}/usr/bin/scalac"
-  ln -s "${srcdir}/scala-${pkgver}/build/share/scala/bin/scalap" "${pkgdir}/usr/bin/scalap"
-  ln -s "${srcdir}/scala-${pkgver}/build/share/scala/bin/scaladoc" "${pkgdir}/usr/bin/scaladoc"
+  ln -s "${srcdir}/scala-${pkgver}/build/pack/bin/fsc" "${pkgdir}/usr/bin/fsc"
+  ln -s "${srcdir}/scala-${pkgver}/build/pack/bin/scala" "${pkgdir}/usr/bin/scala"
+  ln -s "${srcdir}/scala-${pkgver}/build/pack/bin/scalac" "${pkgdir}/usr/bin/scalac"
+  ln -s "${srcdir}/scala-${pkgver}/build/pack/bin/scalap" "${pkgdir}/usr/bin/scalap"
+  ln -s "${srcdir}/scala-${pkgver}/build/pack/bin/scaladoc" "${pkgdir}/usr/bin/scaladoc"
 }

 package_scala-docs() {
-- 
2.46.2

xyproto commented on 2023-07-02 22:09 (UTC)

@isomarcte I'm planning to move this package back to [extra], if you don't mind.

isomarcte commented on 2023-04-23 18:37 (UTC)

@mnd999 I'm not sure. I noticed the change when running an update on my system and adopted the package, but I don't have context on why it got moved.

mnd999 commented on 2023-04-14 07:35 (UTC) (edited on 2023-04-14 07:35 (UTC) by mnd999)

Why did this move to AUR? Should definitely still be in the main packages.

mindbound commented on 2023-04-12 15:25 (UTC)

@isomarcte Thank you! That worked.