Opened 10 years ago

Closed 3 years ago

#45502 closed enhancement (fixed)

git: Create -perl variant for a Perl-free install

Reported by: verwymeren@… Owned by: ci42
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: git

Description (last modified by larryv (Lawrence Velázquez))

git currently forces installation of the MacPorts perl port. Examining the git Makefile, it is possible to install git without Perl by defining NO_PERL (https://github.com/git/git/blob/v2.1.2/Makefile#L248).

Would it be possible to add a variant that eliminates the Perl dependency? The perl port pulls in a lot of additional dependencies, eliminating it would allow for a much shorter and smaller git installation.

Change History (5)

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to ciserlohn@…
Type: defectenhancement
Version: 2.3.2

In the future, please Cc the port maintainers (port info --maintainers git).

comment:2 in reply to:  description Changed 10 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)

How would this even work? Isn’t half of Git written in Perl?

comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Here's how it was handled in redhat: https://bugzilla.redhat.com/show_bug.cgi?id=1161251

comment:4 Changed 3 years ago by rveznaver (Robert Vežnaver)

Opened a PR on GitHub for anyone still interested: https://github.com/macports/macports-ports/pull/11164

comment:5 Changed 3 years ago by Robert Vežnaver <rveznaver@…>

Resolution: fixed
Status: newclosed

In 2db6583ddee7d9ed55498602e5ebb58bec9cd80e/macports-ports (master):

git: make perl optional

  • make perl an optional dependency except when +svn is selected
  • align perl branches with commit 96a5edbb2a667d1908886915cbd016bfdbc0a42d
  • default to macOS perl for diff-highlight if no perl is installed

Closes: #45502

Note: See TracTickets for help on using tickets.