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

grantlee build failure #72

Open
giovariot opened this issue Feb 18, 2016 · 2 comments
Open

grantlee build failure #72

giovariot opened this issue Feb 18, 2016 · 2 comments

Comments

@giovariot
Copy link

Here is the error given:

==> Installing kdevelop from adymo/kde
==> Installing dependencies for adymo/kde/kdevelop: grantlee, strigi, doc
==> Installing adymo/kde/kdevelop dependency: grantlee
==> Downloading http://www.grantlee.org/downloads/grantlee-0.5.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/grantlee-0.5.1.tar.gz
==> cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/kde4 -Wdev --trace --debug-output
==> make
==> make install
Error: Empty installation

And here is the full output

<script src="https://gist.github.com/giovariot/288f7f851d884acd1169.js"></script>

gist: https://gist.github.com/giovariot/288f7f851d884acd1169

@xevix
Copy link

xevix commented Mar 31, 2016

This seems to be because Homebrew tests for an empty installation, and it's looking in /usr/local/Cellar/grantlee/0.5.1 which only gets so-called "metafiles" like AUTHORS and README. Homebrew doesn't count these as real files, and concludes nothing was installed and errors out.

Adding a dummy file in the formula to be installed would get around this.

@xevix
Copy link

xevix commented Mar 31, 2016

A hackish way to do this would be to manually disable this checking functionality in Homebrew itself.

# /usr/local/Library/Homebrew/keg.rb
def empty_installation?
  # HACK: ignore "empty installations"
  return false

  Pathname.glob("#{path}/**/*") do |file|
    next if file.directory?
    basename = file.basename.to_s
    next if Metafiles.copy?(basename)
    next if %w[.DS_Store INSTALL_RECEIPT.json].include?(basename)
    return false
  end

  true
end

https://github.com/Homebrew/homebrew/blob/master/Library/Homebrew/keg.rb#L153-L163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants