Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Aug 2019 07:56:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 240033] www/gitea: depend on git-lite instead of full git
Message-ID:  <bug-240033-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240033

            Bug ID: 240033
           Summary: www/gitea: depend on git-lite instead of full git
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: nilsjohannsen@gmx.de
                CC: stb@lassitu.de
             Flags: maintainer-feedback?(stb@lassitu.de)

The port www/gitea depends on the full git port. The git port includes gui
parts whoese require python, so that git depends on python. Therefore the
memory footprint of gitea will become more than 250 MB in total.

But actually gitea only needs the essential git components whose will be
offered by the git-lite port. In that case only a few dependencies are left=
, so
that the memory footprint of gitea will be less than 120 MB in total.

Changing the dependency from git to git-lite follows more the idea of gitea=
 to
be very small and lightweight.
For small machines, embedded device or sometimes also for jails this memory
cares.

gitea depending on full git:
% pkg info -s --all | sort -hr -k2
python36-3.6.9 105MiB
gitea-1.9.1 70.2MiB
perl5-5.30.0 58.2MiB
git-2.22.1 31.8MiB
pcre-8.43_2 6.60MiB
curl-7.65.3 3.48MiB
readline-8.0.0 1.70MiB
p5-Net-SSLeay-1.85 1.05MiB
gettext-runtime-0.20.1 870KiB
ca_root_nss-3.45 813KiB
p5-IO-Socket-SSL-2.066 665KiB
expat-2.2.6_1 640KiB
libnghttp2-1.39.2 635KiB
p5-CGI-4.44 390KiB
p5-Mozilla-CA-20180117 257KiB
p5-HTML-Parser-3.72 185KiB
libffi-3.2.1_3 131KiB
p5-GSSAPI-0.28_1 127KiB
cvsps-2.1_2 110KiB
p5-Authen-SASL-2.16_1 95.8KiB
p5-Error-0.17027 64.6KiB
p5-Socket6-0.29 48.0KiB
p5-IO-Socket-INET6-2.72_1 29.5KiB
p5-HTML-Tagset-3.20_1 23.1KiB
indexinfo-0.3.1 20.6KiB
p5-Digest-HMAC-1.03_1 16.5KiB

gitea depending on git-lite:
% pkg info -s --all | sort -hr -k2
gitea-1.9.1 70.2MiB
git-lite-2.22.0 29.8MiB
pcre-8.43_1 6.60MiB
curl-7.65.1_1 3.48MiB
gettext-runtime-0.20.1 869KiB
ca_root_nss-3.45 813KiB
expat-2.2.6_1 640KiB
libnghttp2-1.39.2 635KiB
indexinfo-0.3.1 20.6KiB

I've already tried the functionality of gitea and it works fine so far with
only git-lite:
# doas portsnap fetch extract
# cd /usr/ports/www/gitea
# nvim Makefile
- RUN_DEPENDS=3D git:devel/git
+ RUN_DEPENDS=3D git:devel/git-lite
# make package
=3D> gitea-1.9.1.txz

The only disadvantage I've determined: git-lite conflicts with git.
Regards, Nils

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240033-7788>