From 37e61aed6266e57c55708774743f5ae802bd0aeb Mon Sep 17 00:00:00 2001 From: Alex Dunn Date: Fri, 15 Jan 2016 10:27:55 -0800 Subject: [PATCH] build#install: install metafiles in buildpath This came up in https://github.com/Homebrew/homebrew-emacs/pull/158#issuecomment-172031003; `install_metafiles` is passed the current directory, which can be changed during installation by `Dir.chdir`. There may be cases where the metafiles are in a subdirectory, but my guess is those are rare and this is brittle and undocumented behavior anyway. --- Library/Homebrew/build.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb index f7187e8f34..d898b84e05 100644 --- a/Library/Homebrew/build.rb +++ b/Library/Homebrew/build.rb @@ -133,7 +133,7 @@ class Build Tab.create(formula, ENV.compiler, stdlibs.first, formula.build, formula.source_modified_time).write # Find and link metafiles - formula.prefix.install_metafiles Pathname.pwd + formula.prefix.install_metafiles formula.buildpath formula.prefix.install_metafiles formula.libexec if formula.libexec.exist? end end