[Resolved] Error in version detection


(Franklin Yu) #1

When I do

brew install bison openssl readline libffi

it says

Warning: bison is a keg-only and another version is linked to opt.
Use `brew install --force` if you want to install this version
Warning: openssl is a keg-only and another version is linked to opt.
Use `brew install --force` if you want to install this version
Warning: readline is a keg-only and another version is linked to opt.
Use `brew install --force` if you want to install this version
Warning: libffi is a keg-only and another version is linked to opt.
Use `brew install --force` if you want to install this version

When I add the --force flag to brew install it gives

Warning: bison-3.0.4 already installed, it's just not linked.
Warning: openssl-1.0.2k already installed, it's just not linked.
Warning: readline-7.0.3_1 already installed, it's just not linked.
Warning: libffi-3.2.1 already installed, it's just not linked.

which seems to solve it. After that running

brew install bison openssl readline libffi

again, I still see the "another version in opt" warning. The symbolic links at /usr/local/opt have always been pointing to the correct Kegs.

Note: I found these Formulae when installing custom Ruby.

updates

Fix is merged; wait for it to be stable.


(Mike McQuaid) #2

Can you see if you can make this reproducible i.e. brew uninstall --force them and run a series of commands to reproduce this behaviour? Thanks!


(Franklin Yu) #3

I can reproduce it with

brew uninstall --force bison
brew install bison
brew install bison

Second install gives

Warning: bison is a keg-only and another version is linked to opt.
Use `brew install --force` if you want to install this version

I suspect this is related to all Keg-only Formulae. Any other example of Keg-only Formula for me to verify this?


(Mike McQuaid) #4

This looks like just bad messaging, I’ll take a look.


(Benyamin Pm) #5

same issue with openssl


(Franklin Yu) #6

It’s merged to master, but not yet stable.