Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iomedico-beyer opened this issue Sep 29, 2022 · 6 comments
Milestone

Comments

@iomedico-beyer
Copy link

iomedico-beyer commented Sep 29, 2022

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.

@SethTisue SethTisue added this to the 2.12.18 milestone Sep 29, 2022
@SethTisue
Copy link
Member

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

@SethTisue
Copy link
Member

SethTisue commented Sep 30, 2022

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. 🤔

@iomedico-beyer
Copy link
Author

iomedico-beyer commented Sep 30, 2022

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
Copy link
Author

iomedico-beyer commented Sep 30, 2022

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
Copy link
Author

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 iomedico-beyer changed the title /usr/bin/scala missing since 2.12.16 /usr/bin/scala missing when trying to update from 2.12.15 to 2.12.16 or 2.12.17 rpm package Sep 30, 2022
@iomedico-beyer iomedico-beyer changed the title /usr/bin/scala missing when trying to update from 2.12.15 to 2.12.16 or 2.12.17 rpm package /usr/bin/scala missing when updated from 2.12.15 to 2.12.16 or 2.12.17 rpm package Sep 30, 2022
@iomedico-beyer iomedico-beyer changed the title /usr/bin/scala missing when updated from 2.12.15 to 2.12.16 or 2.12.17 rpm package /usr/bin/scala missing updating from 2.12.15 to 2.12.16 or 2.12.17 rpm package Sep 30, 2022
@iomedico-beyer iomedico-beyer changed the title /usr/bin/scala missing updating from 2.12.15 to 2.12.16 or 2.12.17 rpm package /usr/bin/scala missing updating from 2.12.15 to 2.12.16 or .17 rpm package Sep 30, 2022
@SethTisue
Copy link
Member

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

@SethTisue SethTisue modified the milestones: 2.12.18, Backlog Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants