Skip to content

Perl files aren't writeable #61

Closed
Closed

Description

@joshaber

So I figured out why updates are broken.

On macOS, we have to remove a quarantine attribute from newly downloaded files. That requires that the files be owner-writable.

But it turns out the following files aren't writable, for whatever reason. They were in a previous version of git-kitchen-sink, but no mas.

git/lib/perl5/site_perl/Git/I18N.pm
git/lib/perl5/site_perl/Git/IndexInfo.pm
git/lib/perl5/site_perl/Git/SVN/Editor.pm
git/lib/perl5/site_perl/Git/SVN/Fetcher.pm
git/lib/perl5/site_perl/Git/SVN/GlobSpec.pm
git/lib/perl5/site_perl/Git/SVN/Log.pm
git/lib/perl5/site_perl/Git/SVN/Memoize/YAML.pm
git/lib/perl5/site_perl/Git/SVN/Migration.pm
git/lib/perl5/site_perl/Git/SVN/Prompt.pm
git/lib/perl5/site_perl/Git/SVN/Ra.pm
git/lib/perl5/site_perl/Git/SVN/Utils.pm
git/lib/perl5/site_perl/Git/SVN.pm
git/lib/perl5/site_perl/Git.pm

So at minimum, we need to chmod these files so they're writable. But I'm wondering if we even need these? It kinda looks like they're a Perl API that we wouldn't care about. So maybe we can just throw a NO_PERL=1 on the build script?

@shiftkey 💰 for your thoughts?

Activity

  1. self-assigned this
    on Jan 20, 2017
  2. shiftkey commented on Jan 20, 2017

    @shiftkey
    Member

    @joshaber confirmed when building Git (at least on macOS):

    $ ls -l /tmp/build/git/lib/perl5/site_perl/Git/      
    total 160
    -r--r--r--   1 shiftkey  wheel   1974 31 Jan  2016 I18N.pm
    -r--r--r--   1 shiftkey  wheel    644 31 Jan  2016 IndexInfo.pm
    drwxr-xr-x  11 shiftkey  wheel    374 20 Jan 10:17 SVN
    -r--r--r--   1 shiftkey  wheel  71719 10 Dec 17:18 SVN.pm
    $ ls -l /tmp/build/git/lib/perl5/site_perl/Git/SVN/
    total 200
    -r--r--r--  1 shiftkey  wheel  16945 10 Dec 17:18 Editor.pm
    -r--r--r--  1 shiftkey  wheel  18575 10 Dec 17:18 Fetcher.pm
    -r--r--r--  1 shiftkey  wheel   1798  9 Apr  2016 GlobSpec.pm
    -r--r--r--  1 shiftkey  wheel   9564 31 Jan  2016 Log.pm
    drwxr-xr-x  3 shiftkey  wheel    102 20 Jan 10:17 Memoize
    -r--r--r--  1 shiftkey  wheel   8145 10 Dec 17:18 Migration.pm
    -r--r--r--  1 shiftkey  wheel   5319 31 Jan  2016 Prompt.pm
    -r--r--r--  1 shiftkey  wheel  19351 18 Feb  2016 Ra.pm
    -r--r--r--  1 shiftkey  wheel   4586 31 Jan  2016 Utils.pm
    

    A chmod would probably be fine, but perhaps we can build Git without requiring Perl altogether:

    # Define NO_PERL if you do not want Perl scripts or libraries at all.
    

    I'll do a diff of the built output and see what else this drops.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions