0
I've php70-xdebug
package and I did the following steps:
- Edited formula by
brew edit php70-xdebug
Then replaced the following line:
url "https://pecl.php.net/get/xdebug-2.5.5.tgz"
with:
url "https://github.com/xdebug/xdebug/archive/master.zip"
- Run reinstall by:
brew reinstall php70-xdebug --build-from-source
However it fails with:
Error: invalid attribute for formula 'homebrew/php/php70-xdebug': version (nil)
/usr/local/Homebrew/Library/Homebrew/formula.rb:252:in `validate_attributes!'
/usr/local/Homebrew/Library/Homebrew/formula.rb:199:in `initialize'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-php/Abstract/abstract-php-extension.rb:20:in `initialize'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:88:in `new'
/usr/local/Homebrew/Library/Homebrew/formulary.rb:88:in `get_formula'
I've seen that there is a reference to build.head
in the following line:
Dir.chdir "xdebug-#{version}" unless build.head?
which suggest it's possible to build with HEAD, but I'm not sure how.
What would be a proper way of reinstalling php70-xdebug
from the source using the latest HEAD?
https://github.com/Homebrew/homebrew-php/blob/master/Formula/php70-xdebug.rb does not specify a version … is that even valid? – slhck – 2017-08-01T20:26:12.077
@slhck I believe
version
is automatically fetched based on the providedurl
, when I changed theurl
without having version in it, Homebrew started to complain about the missing version. – kenorb – 2017-08-01T20:33:42.033