mistydemeo / tigerbrew

Experimental fork of homebrew for PPC Macs on Tiger
Other
535 stars 128 forks source link

Error: Not a directory - /usr/local/opt/whatever-you-want #219

Closed chdiza closed 10 years ago

chdiza commented 10 years ago

After brew-update, I'm suddenly getting an error like that for almost every keg I have installed.

E.g., Error: Not a directory - /usr/local/opt/gmp

Except that in each such case, (a) it is a directory, and (b) it already exists from when Tigerbrew created it awhile back.

This has the faint whiff of Ruby 2.0 leaving us behind inadvertently.

chdiza commented 10 years ago

It's being especially weird re Git, which it claims "is not a valid keg" if I try brew unlink git.

chdiza commented 10 years ago

In the case of Git in particular, Tigerbrew is not creating /usr/local/opt/git even though it is linking the git in the cellar into the usual places. This causes Tigerbrew to believe that git is not linked.

mistydemeo commented 10 years ago

Can you run a command with --debug that would cause this, and paste the output?

chdiza commented 10 years ago

Sure, see below. I picked link because install won't be informative with the debug flag passed; on Tiger, the debug flag's inclusion causes immediate "suspicious installation failure" messages (I can't recall the issue num offhand, and TenFourFox is nearly unusably slow with github on a 12" powerbook G4.).

$ brew link --debug git

/usr/local/Library/brew.rb (Formulary::StandardLoader): loading /usr/local/Library/Formula/git.rb
Linking /usr/local/Cellar/git/2.0.4... 
ln -s ../Cellar/git/2.0.4/bin/gitk gitk
ln -s ../Cellar/git/2.0.4/bin/git-upload-pack git-upload-pack
ln -s ../Cellar/git/2.0.4/bin/git-upload-archive git-upload-archive
ln -s ../Cellar/git/2.0.4/bin/git-subtree git-subtree
ln -s ../Cellar/git/2.0.4/bin/git-shell git-shell
ln -s ../Cellar/git/2.0.4/bin/git-remote-hg git-remote-hg
ln -s ../Cellar/git/2.0.4/bin/git-remote-bzr git-remote-bzr
ln -s ../Cellar/git/2.0.4/bin/git-receive-pack git-receive-pack
ln -s ../Cellar/git/2.0.4/bin/git-cvsserver git-cvsserver
ln -s ../Cellar/git/2.0.4/bin/git git
ln -s ../../../Cellar/git/2.0.4/share/man/man7/gitworkflows.7 gitworkflows.7
ln -s ../../../Cellar/git/2.0.4/share/man/man7/gittutorial.7 gittutorial.7
ln -s ../../../Cellar/git/2.0.4/share/man/man7/gittutorial-2.7 gittutorial-2.7
ln -s ../../../Cellar/git/2.0.4/share/man/man7/gitrevisions.7 gitrevisions.7
ln -s ../../../Cellar/git/2.0.4/share/man/man7/gitnamespaces.7 gitnamespaces.7
ln -s ../../../Cellar/git/2.0.4/share/man/man7/gitglossary.7 gitglossary.7
ln -s ../../../Cellar/git/2.0.4/share/man/man7/gitdiffcore.7 gitdiffcore.7
ln -s ../../../Cellar/git/2.0.4/share/man/man7/gitcvs-migration.7 gitcvs-migration.7
ln -s ../../../Cellar/git/2.0.4/share/man/man7/gitcredentials.7 gitcredentials.7
ln -s ../../../Cellar/git/2.0.4/share/man/man7/gitcore-tutorial.7 gitcore-tutorial.7
ln -s ../../../Cellar/git/2.0.4/share/man/man7/gitcli.7 gitcli.7
ln -s ../../../Cellar/git/2.0.4/share/man/man5/gitweb.conf.5 gitweb.conf.5
ln -s ../../../Cellar/git/2.0.4/share/man/man5/gitrepository-layout.5 gitrepository-layout.5
ln -s ../../../Cellar/git/2.0.4/share/man/man5/gitmodules.5 gitmodules.5
ln -s ../../../Cellar/git/2.0.4/share/man/man5/gitignore.5 gitignore.5
ln -s ../../../Cellar/git/2.0.4/share/man/man5/githooks.5 githooks.5
ln -s ../../../Cellar/git/2.0.4/share/man/man5/gitattributes.5 gitattributes.5
ln -s ../../../Cellar/git/2.0.4/share/man/man3/private-Error.3 private-Error.3
ln -s ../../../Cellar/git/2.0.4/share/man/man3/Git::SVN::Utils.3 Git::SVN::Utils.3
ln -s ../../../Cellar/git/2.0.4/share/man/man3/Git::SVN::Ra.3 Git::SVN::Ra.3
ln -s ../../../Cellar/git/2.0.4/share/man/man3/Git::SVN::Prompt.3 Git::SVN::Prompt.3
ln -s ../../../Cellar/git/2.0.4/share/man/man3/Git::SVN::Memoize::YAML.3 Git::SVN::Memoize::YAML.3
ln -s ../../../Cellar/git/2.0.4/share/man/man3/Git::SVN::Fetcher.3 Git::SVN::Fetcher.3
ln -s ../../../Cellar/git/2.0.4/share/man/man3/Git::SVN::Editor.3 Git::SVN::Editor.3
ln -s ../../../Cellar/git/2.0.4/share/man/man3/Git::I18N.3 Git::I18N.3
ln -s ../../../Cellar/git/2.0.4/share/man/man3/Git.3 Git.3
ln -s ../../../Cellar/git/2.0.4/share/man/man1/gitweb.1 gitweb.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/gitremote-helpers.1 gitremote-helpers.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/gitk.1 gitk.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git.1 git.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-write-tree.1 git-write-tree.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-whatchanged.1 git-whatchanged.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-web--browse.1 git-web--browse.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-verify-tag.1 git-verify-tag.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-verify-pack.1 git-verify-pack.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-var.1 git-var.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-upload-pack.1 git-upload-pack.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-upload-archive.1 git-upload-archive.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-update-server-info.1 git-update-server-info.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-update-ref.1 git-update-ref.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-update-index.1 git-update-index.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-unpack-objects.1 git-unpack-objects.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-unpack-file.1 git-unpack-file.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-tag.1 git-tag.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-symbolic-ref.1 git-symbolic-ref.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-svn.1 git-svn.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-submodule.1 git-submodule.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-stripspace.1 git-stripspace.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-status.1 git-status.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-stash.1 git-stash.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-stage.1 git-stage.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-show.1 git-show.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-show-ref.1 git-show-ref.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-show-index.1 git-show-index.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-show-branch.1 git-show-branch.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-shortlog.1 git-shortlog.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-shell.1 git-shell.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-sh-setup.1 git-sh-setup.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-sh-i18n.1 git-sh-i18n.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-sh-i18n--envsubst.1 git-sh-i18n--envsubst.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-send-pack.1 git-send-pack.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-send-email.1 git-send-email.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-rm.1 git-rm.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-revert.1 git-revert.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-rev-parse.1 git-rev-parse.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-rev-list.1 git-rev-list.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-reset.1 git-reset.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-rerere.1 git-rerere.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-request-pull.1 git-request-pull.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-replace.1 git-replace.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-repack.1 git-repack.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-remote.1 git-remote.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-remote-testgit.1 git-remote-testgit.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-remote-fd.1 git-remote-fd.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-remote-ext.1 git-remote-ext.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-relink.1 git-relink.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-reflog.1 git-reflog.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-receive-pack.1 git-receive-pack.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-rebase.1 git-rebase.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-read-tree.1 git-read-tree.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-quiltimport.1 git-quiltimport.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-push.1 git-push.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-pull.1 git-pull.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-prune.1 git-prune.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-prune-packed.1 git-prune-packed.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-patch-id.1 git-patch-id.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-parse-remote.1 git-parse-remote.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-pack-refs.1 git-pack-refs.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-pack-redundant.1 git-pack-redundant.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-pack-objects.1 git-pack-objects.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-p4.1 git-p4.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-notes.1 git-notes.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-name-rev.1 git-name-rev.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-mv.1 git-mv.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-mktree.1 git-mktree.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-mktag.1 git-mktag.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-mergetool.1 git-mergetool.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-mergetool--lib.1 git-mergetool--lib.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-merge.1 git-merge.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-merge-tree.1 git-merge-tree.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-merge-one-file.1 git-merge-one-file.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-merge-index.1 git-merge-index.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-merge-file.1 git-merge-file.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-merge-base.1 git-merge-base.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-mailsplit.1 git-mailsplit.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-mailinfo.1 git-mailinfo.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-ls-tree.1 git-ls-tree.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-ls-remote.1 git-ls-remote.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-ls-files.1 git-ls-files.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-log.1 git-log.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-instaweb.1 git-instaweb.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-init.1 git-init.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-init-db.1 git-init-db.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-index-pack.1 git-index-pack.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-imap-send.1 git-imap-send.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-http-push.1 git-http-push.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-http-fetch.1 git-http-fetch.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-http-backend.1 git-http-backend.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-help.1 git-help.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-hash-object.1 git-hash-object.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-gui.1 git-gui.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-grep.1 git-grep.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-get-tar-commit-id.1 git-get-tar-commit-id.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-gc.1 git-gc.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-fsck.1 git-fsck.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-fsck-objects.1 git-fsck-objects.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-format-patch.1 git-format-patch.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-for-each-ref.1 git-for-each-ref.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-fmt-merge-msg.1 git-fmt-merge-msg.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-filter-branch.1 git-filter-branch.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-fetch.1 git-fetch.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-fetch-pack.1 git-fetch-pack.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-fast-import.1 git-fast-import.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-fast-export.1 git-fast-export.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-difftool.1 git-difftool.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-diff.1 git-diff.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-diff-tree.1 git-diff-tree.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-diff-index.1 git-diff-index.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-diff-files.1 git-diff-files.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-describe.1 git-describe.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-daemon.1 git-daemon.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-cvsserver.1 git-cvsserver.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-cvsimport.1 git-cvsimport.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-cvsexportcommit.1 git-cvsexportcommit.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-credential.1 git-credential.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-credential-store.1 git-credential-store.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-credential-cache.1 git-credential-cache.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-credential-cache--daemon.1 git-credential-cache--daemon.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-count-objects.1 git-count-objects.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-config.1 git-config.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-commit.1 git-commit.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-commit-tree.1 git-commit-tree.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-column.1 git-column.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-clone.1 git-clone.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-clean.1 git-clean.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-citool.1 git-citool.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-cherry.1 git-cherry.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-cherry-pick.1 git-cherry-pick.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-checkout.1 git-checkout.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-checkout-index.1 git-checkout-index.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-check-ref-format.1 git-check-ref-format.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-check-mailmap.1 git-check-mailmap.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-check-ignore.1 git-check-ignore.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-check-attr.1 git-check-attr.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-cat-file.1 git-cat-file.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-bundle.1 git-bundle.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-branch.1 git-branch.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-blame.1 git-blame.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-bisect.1 git-bisect.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-archive.1 git-archive.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-archimport.1 git-archimport.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-apply.1 git-apply.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-annotate.1 git-annotate.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-am.1 git-am.1
ln -s ../../../Cellar/git/2.0.4/share/man/man1/git-add.1 git-add.1
ln -s ../Cellar/git/2.0.4/share/gitweb gitweb
ln -s ../Cellar/git/2.0.4/share/gitk gitk
ln -s ../Cellar/git/2.0.4/share/git-gui git-gui
ln -s ../Cellar/git/2.0.4/share/git-core git-core
ln -s ../../Cellar/git/2.0.4/share/doc/git-doc git-doc
ln -s ../../../../Cellar/git/2.0.4/lib/perl5/site_perl/5.20.0/Git.pm Git.pm
ln -s ../../../../../Cellar/git/2.0.4/lib/perl5/site_perl/5.20.0/Git/SVN.pm SVN.pm
ln -s ../../../../../../Cellar/git/2.0.4/lib/perl5/site_perl/5.20.0/Git/SVN/Utils.pm Utils.pm
ln -s ../../../../../../Cellar/git/2.0.4/lib/perl5/site_perl/5.20.0/Git/SVN/Ra.pm Ra.pm
ln -s ../../../../../../Cellar/git/2.0.4/lib/perl5/site_perl/5.20.0/Git/SVN/Prompt.pm Prompt.pm
ln -s ../../../../../../Cellar/git/2.0.4/lib/perl5/site_perl/5.20.0/Git/SVN/Migration.pm Migration.pm
ln -s ../../../../../../../Cellar/git/2.0.4/lib/perl5/site_perl/5.20.0/Git/SVN/Memoize/YAML.pm YAML.pm
ln -s ../../../../../../Cellar/git/2.0.4/lib/perl5/site_perl/5.20.0/Git/SVN/Log.pm Log.pm
ln -s ../../../../../../Cellar/git/2.0.4/lib/perl5/site_perl/5.20.0/Git/SVN/GlobSpec.pm GlobSpec.pm
ln -s ../../../../../../Cellar/git/2.0.4/lib/perl5/site_perl/5.20.0/Git/SVN/Fetcher.pm Fetcher.pm
ln -s ../../../../../../Cellar/git/2.0.4/lib/perl5/site_perl/5.20.0/Git/SVN/Editor.pm Editor.pm
ln -s ../../../../../Cellar/git/2.0.4/lib/perl5/site_perl/5.20.0/Git/IndexInfo.pm IndexInfo.pm
ln -s ../../../../../Cellar/git/2.0.4/lib/perl5/site_perl/5.20.0/Git/I18N.pm I18N.pm
ln -s ../../../../Cellar/git/2.0.4/lib/perl5/site_perl/5.20.0/Error.pm Error.pm
ln -s ../../../../../../../Cellar/git/2.0.4/lib/perl5/site_perl/5.20.0/darwin-thread-multi-2level/auto/Git/.packlist .packlist
ln -s ../../../../Cellar/git/2.0.4/lib/perl5/5.20.0/darwin-thread-multi-2level/perllocal.pod perllocal.pod
Error: Not a directory - /usr/local/opt/git
/usr/lib/ruby/1.8/pathname.rb:864:in `unlink'
/usr/lib/ruby/1.8/pathname.rb:864:in `delete'
/usr/local/Library/Homebrew/keg.rb:314:in `optlink'
/usr/local/Library/Homebrew/keg.rb:304:in `link'
/usr/local/Library/Homebrew/cmd/link.rb:38:in `link'
/usr/local/Library/Homebrew/cmd/link.rb:33:in `lock'
/usr/local/Library/Homebrew/keg.rb:211:in `with_lock'
/usr/local/Library/Homebrew/keg.rb:211:in `lock'
/usr/local/Library/Homebrew/cmd/link.rb:33:in `link'
/usr/local/Library/Homebrew/cmd/link.rb:12:in `each'
/usr/local/Library/Homebrew/cmd/link.rb:12:in `link'
/usr/local/Library/brew.rb:125:in `send'
/usr/local/Library/brew.rb:125
mistydemeo commented 10 years ago

I have a hunch I know what's responsible. This is Tiger, right? Ruby 1.8.2 has a quite hilarious bug in the Pathname library; I worked around it but it may have gone awry in a merge.

chdiza commented 10 years ago

Yup, Tiger.

mistydemeo commented 10 years ago

Fixed, sorry about the delay!

Turns out some code was changed to call Pathname#delete, which is an alias for Pathname#unlink. I'd redefined unlink but hadn't added the alias, so the delete alias was pointing at the old buggy method instead of the fixed one.