Skip to content

incomplete package with git #4

Open

Description

@kaloprominat

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.

Activity

  1. kcrawford commented on Oct 31, 2014

    @kcrawford

    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.

  2. kaloprominat commented on Nov 5, 2014

    @kaloprominat
    ContributorAuthor

    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

  3. sheurich commented on Feb 2, 2015

    @sheurich

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

  4. grahampugh commented on Feb 4, 2015

    @grahampugh

    +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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions