incomplete package with git
Hi ! Building pkg for git formula creates package without some necessary git resources. Packages contains dirs:
. └── usr └── local ├── Library ├── bin ├── etc ├── lib ├── libexec └── share
when git wants some other files:
Failed to perform checkout on agent: '/usr/local/bin/git init --bare' command failed. stdout: Initialized empty Git repository in /Users/teamcity/buildAgent/system/git/git-3DEC8E2F.git/ stderr: warning: templates not found /usr/local/Cellar/git/2.0.4/share/git-core/templates
Obviously, package should contain /usr/local/Cellar/git too.
Yes some packages are staticly linking agains paths in Cellar. I've run into this issue also with Ghostscript and ImageMagick.
If I do:
mkdir -p /usr/local/Cellar/ghostscript/${GHOSTSCRIPT_VERSION}/share/
ln -s /usr/local/share/ghostscript /usr/local/Cellar/ghostscript/${GHOSTSCRIPT_VERSION}/share/ghostscript
Then it works. And I have to create other directories and symlinks for ImageMagick.
It would be nice to not need the Cellar at all, but having a way to automatically create the Cellar directories and links would also help.
Btw, i forked this brew-pkg and modified it to include Cellar resources. Also added some related option as command line argument. You can check out my version here https://github.com/kaloprominat/brew-pkg
The @kaloprominat fork works perfectly (was having same issue with nspr/nss packaging). Any plan to pull these changes back into original?
+1 for the @kaloprominat fork. It made packaging up Grace (xmgrace) work a treat!