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

incomplete package with git #4

Open
kaloprominat opened this issue Aug 21, 2014 · 4 comments
Open

incomplete package with git #4

kaloprominat opened this issue Aug 21, 2014 · 4 comments

Comments

@kaloprominat
Copy link
Contributor

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.

@kcrawford
Copy link

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.

@kaloprominat
Copy link
Contributor Author

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

@sheurich
Copy link

sheurich commented Feb 2, 2015

The @kaloprominat fork works perfectly (was having same issue with nspr/nss packaging). Any plan to pull these changes back into original?

@grahampugh
Copy link

+1 for the @kaloprominat fork. It made packaging up Grace (xmgrace) work a treat!

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

4 participants