Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.98k stars 11.35k forks source link

Any way to make pkgutil --pkgs show OSXFuse com.github.osxfuse.pkg.[Core | PrefPane] #28298

Closed blogabe closed 10 years ago

blogabe commented 10 years ago

I have an issue similar to https://github.com/Homebrew/homebrew/issues/26211 in that I have an application, BoxCryptor, that depends on OSXFuse and does a check for com.github.psxfuse.pkg.Core (https://boxcryptor.desk.com/customer/portal/questions/5152141-osxfuse-installed-via-homebrew-not-recognised-by-boxcryptor).

Seems like most of the issues related to Homebrew and OSXFuse are related to the Mac compatibility layer - https://github.com/osxfuse/osxfuse/issues/114, https://github.com/Homebrew/homebrew/issues/25565, and https://github.com/Homebrew/homebrew/issues/26211 - but that is not related to this issue.

I'd prefer to install OSXFuse through Homebrew as opposed to the DMG or even brew cask because they will install into the /usr/local/lib and /usr/local/include directories shared with Homebrew as root. However, they do show the OSXFuse package installed upon executing pkgutil --pkgs | grep com.github.osxfuse.pkg.Core whereas a Homebrew install will not.

While in my case this is specific to BoxCryptor, there are other applications like SafeMonk and Homebrew formulae that depend on OSXFuse. It would be great to have one version installed that can be referenced by non-Homebrew and Homebrew dependencies alike without having to do anything kludgy and without having it write directly into /usr/local.

Is there any way to change the osxfuse.rb formula so that pkgutil recognizes a Homebrew installed OSXFuse and makes it available to other programs?

blogabe commented 10 years ago

Looks like along with following the caveats to sudo cp #{prefix}/Library/Filesystems/osxfusefs.fs /Library/Filesystems, you need to also sudo cp #{prefix}/Library/Framework/OSXFUSE.framework /Library/Framework. This resolved my issue with BoxCryptor recognizing the Homebrew installed OSXFuse.

blogabe commented 10 years ago

@bfleischer - would appreciate your input on the additional sudo cp for the Framework.

Would it be better to ln -s?