Skip to content

git, subversion: fixes for system Perl#76964

Closed
Bo98 wants to merge 2 commits intoHomebrew:masterfrom
Bo98:git-svn
Closed

git, subversion: fixes for system Perl#76964
Bo98 wants to merge 2 commits intoHomebrew:masterfrom
Bo98:git-svn

Conversation

@Bo98
Copy link
Copy Markdown
Member

@Bo98 Bo98 commented May 10, 2021

  • Have you followed the guidelines for contributing?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install <formula>)?

Revision bump for Homebrew/brew#11286 and add fixes to PERL5LIB in git-svn when running on an OS without a system svn.

@BrewTestBot BrewTestBot added the perl Perl use is a significant feature of the PR or issue label May 10, 2021
@Bo98 Bo98 force-pushed the git-svn branch 2 times, most recently from 774d666 to 4984047 Compare May 10, 2021 14:24
@carlocab
Copy link
Copy Markdown
Member

Error: git: failed
An exception occurred within a child process:
  Minitest::Assertion: Expected /Authentication\ Required/ to match "/private/tmp/5FIxnS0quw/0001-Second-Commit.patch\n(mbox) Adding cc: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> from line 'From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>'\nNot using SSL_VERIFY_PEER due to out-of-date IO::Socket::SSL.\nTo use SSL please install IO::Socket::SSL with version>=2.007 at /System/Library/Perl/5.28/Net/SMTP.pm line 268.\n".

https://github.com/Homebrew/homebrew-core/pull/76964/checks?check_run_id=2546546538#step:7:82

@Bo98
Copy link
Copy Markdown
Member Author

Bo98 commented May 11, 2021

Probably fixed with Homebrew/brew#11360.

@moonfruit
Copy link
Copy Markdown
Contributor

moonfruit commented May 11, 2021

@Bo98, Can you apply the patch I mentioned in #76900?

This is used to build the subversion perl module for system perl only. And also build it on Apple Silicon.

@carlocab
Copy link
Copy Markdown
Member

Your patch probably needs to refer to /usr/bin/perl#{MacOS.preferred_perl_version} rather than just /usr/bin/perl.

@Bo98
Copy link
Copy Markdown
Member Author

Bo98 commented May 12, 2021

VERSIONER_PERL_VERSION should in theory cover that.

@moonfruit
Copy link
Copy Markdown
Contributor

subversion use homebrew's perl on not macOS, and git use perl in the PATH.
For macOS this will be fine, but I think this will make git-svn not working on not macOS?

git.rb:

    ENV["PERL_PATH"] = which("perl")
    on_macos do
      ENV["PERL_PATH"] = "/usr/bin/perl"
    end

subversion.rb:

    perl = Formula["perl"].opt_bin/"perl"
    on_macos do
      perl = "/usr/bin/perl"
    end

@Bo98
Copy link
Copy Markdown
Member Author

Bo98 commented May 12, 2021

Yeah I've been talking to the Linux folk about Perl on Linux. There is a desire not to have Git depend on Perl (since it's an extra dependency on a critical component that brew can rely on).

The approach I took here clearly didn't work because:

on_macos cannot include uses_from_macos.

@moonfruit
Copy link
Copy Markdown
Contributor

moonfruit commented May 12, 2021

I mean that on Linux git depends on perl in the PATH, and subversion depends on homebrew's perl.
These two may not the same. So maybe on Linux git-svn is not working.
I think we should let subversion on Linux also depends on perl in the PATH.

like this:

    perl = which("perl")
    on_macos do
      perl = "/usr/bin/perl"
    end

@Bo98
Copy link
Copy Markdown
Member Author

Bo98 commented May 12, 2021

Subversion already depends on brewed Perl on Linux so which("perl") will not change which Perl is used. Brewed Perl is kinda needed there since SVN builds native Perl modules and thus isn't compatible with versions of Perl not matching whatever it was built with.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 3, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale No recent activity label Jun 3, 2021
@github-actions github-actions bot closed this Jun 10, 2021
@gromgit gromgit mentioned this pull request Jun 20, 2021
@github-actions github-actions bot added the outdated PR was locked due to age label Jul 11, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated PR was locked due to age perl Perl use is a significant feature of the PR or issue stale No recent activity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants