Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jun 2018 21:15:49 -0500
From:      Mahmoud Al-Qudsi <mqudsi@neosmart.net>
To:        freebsd-ports@freebsd.org
Subject:   Removing git dependencies on perl5 and python27
Message-ID:  <CACcTrKebiP4BCK6F6FaCV8wJggstcSxmSGv9d=iFzYdtaLn-sw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello list,

I'm probably not alone in considering git to be a core development tool,
perhaps just a notch or two below the C compiler. `git` and `sudo` are the =
two
packages I first install (after `pkg` itself) on any machine, and in many
cases that suffices to get a basic development environment going.

However, the git package currently brings in a host of unwanted dependencie=
s,
and I *believe* they can be done without.

This is the complete dependency graph for the git package [0] (generated wi=
th
the newly-minted pkg-graph [1]). It pulls in perl5 and python27, both sizea=
ble
packages and both not required to use git.

While git can be compiled without some of the additional dependencies such =
as
expat or pcre, this results in a "crippled" git lacking in some core featur=
es,
and requires special build-time definitions like NO_EXPAT or NO_PCRE passed=
 to
the git Makefile. The other dependencies like curl, pcre, and gettext are a=
lso
relatively small and typically part of even the most minimal system, but pe=
rl5
and python27 are full-blown runtimes for interpreted languages that have
fallen out of favor and have been successfully stripped from FreeBSD core (=
and
even many Linux distributions).

I'm sure these packages are not just there to have a good time and they ser=
ve
some purpose and enable a subset of the git functionality, but my question
here today is whether that functionality is worth its weight in dependencie=
s,
and whether the ports team is open to seeing the git package stripped of th=
ese
dependencies.

(Obviously the option of adding a "git-lite" package =C3=A0 la "vim-lite" a=
lso
exists, but I think it's fair to say that would be an ugly and unnecessary
compromise.)

[0]: https://goo.gl/hozu1b
[1]: https://github.com/neosmart/pkg-graph

Many thanks,

Mahmoud Al-Qudsi
NeoSmart Technologies



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACcTrKebiP4BCK6F6FaCV8wJggstcSxmSGv9d=iFzYdtaLn-sw>