diff --git a/Library/Formula/luarocks.rb b/Library/Formula/luarocks.rb index 9f54bcd612f7..ff18bee807c8 100644 --- a/Library/Formula/luarocks.rb +++ b/Library/Formula/luarocks.rb @@ -11,6 +11,9 @@ class Luarocks < Formula if build.include? 'with-luajit' depends_on 'luajit' + # luajit depends internally on lua being installed + # and is only 5.1 compatible, see #25954 + depends_on 'lua' elsif build.include? 'with-lua52' depends_on 'lua52' else