Homebrew-core: Error when `brew info gnupg`

Created on 20 Apr 2017  路  1Comment  路  Source: Homebrew/homebrew-core

Please always follow these steps:

  • [X] Confirmed this is a problem with only one, specific formula and not Homebrew/brew? If it's a general Homebrew/brew problem please file this issue at https://github.com/Homebrew/brew/issues/new
  • [X] Ran brew update and retried your prior step?
  • [X] Ran brew doctor, fixed as many issues as possible and retried your prior step?
  • [ ] Ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?
  • [X] If brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?

To help us debug your issue please explain:

  • What you were trying to do (and why)

brew info gnupg

  • What happened (include command output)

A parsing error is received and output is not as expected:

Error: gnupg: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:20: syntax error, unexpected tIDENTIFIER, expecting keyword_end deprecated_option "without-libusb-compat" => "without-libusb" ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:20: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' deprecated_option "without-libusb-compat" => "without-libusb" ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:20: syntax error, unexpected tIDENTIFIER, expecting keyword_end deprecated_option "without-libusb-compat" => "without-libusb" ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:20: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:22: syntax error, unexpected tIDENTIFIER, expecting keyword_end depends_on "pkg-config" => :build ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:22: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' depends_on "pkg-config" => :build ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:23: syntax error, unexpected tIDENTIFIER, expecting keyword_end depends_on "sqlite" => :build if MacOS.version == :mavericks ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:24: syntax error, unexpected tIDENTIFIER, expecting keyword_end depends_on "npth" ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:25: syntax error, unexpected tIDENTIFIER, expecting keyword_end depends_on "gnutls" ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:26: syntax error, unexpected tIDENTIFIER, expecting keyword_end depends_on "libgpg-error" ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:26: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:27: syntax error, unexpected tIDENTIFIER, expecting keyword_end depends_on "libgcrypt" ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:28: syntax error, unexpected tIDENTIFIER, expecting keyword_end depends_on "libksba" ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:29: syntax error, unexpected tIDENTIFIER, expecting keyword_end depends_on "libassuan" ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:30: syntax error, unexpected tIDENTIFIER, expecting keyword_end depends_on "pinentry" ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:31: syntax error, unexpected tIDENTIFIER, expecting keyword_end depends_on "gettext" ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:32: syntax error, unexpected tIDENTIFIER, expecting keyword_end depends_on "adns" ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:33: syntax error, unexpected tIDENTIFIER, expecting keyword_end depends_on "libusb" => :recommended ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:34: syntax error, unexpected tIDENTIFIER, expecting keyword_end depends_on "readline" => :optional ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:35: syntax error, unexpected tIDENTIFIER, expecting keyword_end depends_on "homebrew/fuse/encfs" => :optional ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:35: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' depends_on "homebrew/fuse/encfs" => :optional ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:48: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' args << "--disable-ccid-driver" if build.without? "libusb" ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:48: syntax error, unexpected tIDENTIFIER, expecting keyword_end args << "--disable-ccid-driver" if build.without? "libusb" ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:51: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' system "./configure", *args ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:51: syntax error, unexpected ',', expecting keyword_end system "./configure", *args ^ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gnupg.rb:102: syntax error, unexpected keyword_end, expecting end-of-input

  • What you expected to happen

normal info output describing formula

brew info gitlab-ci-multi-runner for example works as expected

  • Step-by-step reproduction instructions (by running brew install commands)

brew info gnupg

brew doctor
Your system is ready to brew.

brew config
HOMEBREW_VERSION: 1.1.13-28-ga26459020 ORIGIN: https://github.com/Homebrew/brew.git HEAD: a264590201dac1c03c10cfef8f50a41aa14ecd18 Last commit: 2 hours ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: efad6dd0bc877ba62e4e13992d15cf588f77c5f2 Core tap last commit: 13 days ago HOMEBREW_PREFIX: /usr/local HOMEBREW_REPOSITORY: /usr/local/Homebrew HOMEBREW_CELLAR: /usr/local/Cellar HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com CPU: quad-core 64-bit haswell Homebrew Ruby: 2.0.0-p648 Clang: 8.1 build 802 Git: 2.12.2 => /usr/local/bin/git Perl: /usr/local/bin/perl => /usr/local/Cellar/perl/5.24.1/bin/perl Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python2.7 Ruby: /usr/local/bin/ruby => /usr/local/Cellar/ruby/2.4.1_1/bin/ruby Java: 1.8.0_102 macOS: 10.12.4-x86_64 Xcode: 8.3.2 CLT: N/A X11: N/A

Please note we may immediately close your issue without comment if you do not fill out the issue template and provide ALL the requested information.

Most helpful comment

Run brew update-reset; brew update. Note this will overwrite any local changes you have made.

>All comments

Run brew update-reset; brew update. Note this will overwrite any local changes you have made.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

faraazkhan picture faraazkhan  路  3Comments

jakepetroules picture jakepetroules  路  3Comments

ralexx picture ralexx  路  4Comments

oli-laban picture oli-laban  路  3Comments

dredmorbius picture dredmorbius  路  3Comments