bug icon indicating copy to clipboard operation
bug copied to clipboard

/usr/bin/scala missing updating from 2.12.15 to 2.12.16 or .17 rpm package

Open iomedico-beyer opened this issue 3 years ago • 6 comments

Reproduction steps

scala -version # => Scala code runner version 2.12.15
wget https://downloads.lightbend.com/scala/2.12.16/scala-2.12.16.rpm
yum install scala-2.12.16.rpm
/usr/bin/scala # => file not found
scala # => file not found

or

scala -version # => Scala code runner version 2.12.15
wget https://downloads.lightbend.com/scala/2.12.17/scala-2.12.17.rpm
yum install scala-2.12.17.rpm
/usr/bin/scala # => file not found
scala # => file not found

observed on CentOS Linux release 7.4.1708

Problem

After updating from Scala 2.12.15 to 2.12.16 or 2.12.17, there is no more scala in /usr/bin/ or any other default bin path.

iomedico-beyer avatar Sep 29 '22 09:09 iomedico-beyer

Is the same true for 2.13.x (currently 2.13.9)?

SethTisue avatar Sep 29 '22 15:09 SethTisue

I wondered whether the root cause might be found in https://github.com/scala/scala or in https://github.com/scala/scala-dist

In the scala-dist repo, git diff v2.12.15 v2.12.16 shows nothing changing but the copyright year.

In scala/scala, I don't see anything in the output of the same command that seems like a likely culprit. 🤔

SethTisue avatar Sep 30 '22 01:09 SethTisue

Is the same true for 2.13.x (currently 2.13.9)?

yum remove scala -y
scala -version # => file not found
yum install scala-2.12.15.rpm -y
scala -version # => Scala code runner version 2.12.15
wget https://downloads.lightbend.com/scala/2.13.9/scala-2.13.9.rpm
yum install scala-2.13.9.rpm -y
scala -version # => file not found

So, yes. Also missing in 2.13.9.

One moment: Looks like the problem only occurs on update!

yum remove scala -y
yum install scala-2.13.9.rpm -y
scala -version # => Scala code runner version 2.13.9

iomedico-beyer avatar Sep 30 '22 05:09 iomedico-beyer

Looks like the problem only occurs on update.

Also true for 2.12.x:

yum remove scala -y
yum install scala-2.12.17.rpm -y
scala -version # => Scala code runner version 2.12.17

So maybe this is my fault? Is removal mandatory before updating?

iomedico-beyer avatar Sep 30 '22 06:09 iomedico-beyer

So maybe this is my fault? Is removal mandatory before updating?

However, this is not needed with the deb package on Ubuntu:

scala -version # => Scala code runner version 2.12.15
wget https://downloads.lightbend.com/scala/2.12.17/scala-2.12.17.deb
sudo dpkg -i scala-2.12.17.deb
scala -version # => Scala code runner version 2.12.17

iomedico-beyer avatar Sep 30 '22 06:09 iomedico-beyer

I'm not able to account for the behavior you're observing.

SethTisue avatar Oct 08 '22 12:10 SethTisue