user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* thoughts on Git::Raw / libgit2?
@ 2020-06-16 21:40 Eric Wong
  2020-06-22 19:24 ` Konstantin Ryabitsev
  2020-09-19  9:50 ` Eric Wong
  0 siblings, 2 replies; 4+ messages in thread
From: Eric Wong @ 2020-06-16 21:40 UTC (permalink / raw)
  To: meta

Hey all,

First off, I have no intention of making Git::Raw (Perl libgit2
wrapper) or libgit2 a hard dependency.  It'll be an option if
available, like most of our dependencies.

Git::Raw is not packaged with CentOS 7.x; but cpan/cpanm is an
option.  It is in Debian 10.x as libgit-raw-perl, so I can
report bugs via Debian's BTS[*].

I only intend to use Git::Raw for blob retrievals as a separate
AF_UNIX SOCK_STREAM daemon similar to how we use
`git cat-file --batch/--batch-check'.

The socket/pipe interface works well for unpredictable seek
times on HDDs.  Using Git::Raw from an AF_UNIX SOCK_STREAM
daemon would allow us to save pipe buffers, and PIDs when
there's tens/hundreds of thousands of git repos involved.


[*] I have no intention of ever using a proprietary service for
    free software development.  Even if GitHub were free software,
    their terms-of-service is unacceptable to me.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: thoughts on Git::Raw / libgit2?
  2020-06-16 21:40 thoughts on Git::Raw / libgit2? Eric Wong
@ 2020-06-22 19:24 ` Konstantin Ryabitsev
  2020-06-25  4:31   ` Eric Wong
  2020-09-19  9:50 ` Eric Wong
  1 sibling, 1 reply; 4+ messages in thread
From: Konstantin Ryabitsev @ 2020-06-22 19:24 UTC (permalink / raw)
  To: Eric Wong; +Cc: meta

On Tue, Jun 16, 2020 at 09:40:51PM +0000, Eric Wong wrote:
> Git::Raw is not packaged with CentOS 7.x; but cpan/cpanm is an
> option.  It is in Debian 10.x as libgit-raw-perl, so I can
> report bugs via Debian's BTS[*].

FYI, even though lore.kernel.org runs on CentOS 7.x, most perl modules 
come from cpan -- so if your reluctance to use it is based on lore 
usage, that's not something we'd be particularly concerned about.

Best,
-K

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: thoughts on Git::Raw / libgit2?
  2020-06-22 19:24 ` Konstantin Ryabitsev
@ 2020-06-25  4:31   ` Eric Wong
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Wong @ 2020-06-25  4:31 UTC (permalink / raw)
  To: meta

Konstantin Ryabitsev <konstantin@linuxfoundation.org> wrote:
> On Tue, Jun 16, 2020 at 09:40:51PM +0000, Eric Wong wrote:
> > Git::Raw is not packaged with CentOS 7.x; but cpan/cpanm is an
> > option.  It is in Debian 10.x as libgit-raw-perl, so I can
> > report bugs via Debian's BTS[*].
> 
> FYI, even though lore.kernel.org runs on CentOS 7.x, most perl modules 
> come from cpan -- so if your reluctance to use it is based on lore 
> usage, that's not something we'd be particularly concerned about.

Thanks for the response.  lore is definitely a big factor of
consideration, but I would also like to make it easier for
others to mirror lore w/o needing CPAN.

Fwiw, CentOS 7.x does have libgit2-devel and Inline::C packaged;
so that's an option, too.

Given the announcement of Perl 7 today makes me a little
uneasy(*), I might be a bit more inclined to introduce more
functionality via Inline::C.


(*) Perl 7 will probably be less painful than the Python 3 or
    Ruby 1.9 transitions, but those are low bars.  Having "only"
    a ~decade-long support window for old Perl 5 stuff doesn't
    seem sufficient.  I guess distros and users (myself included)
    will need to do our part to keep things from breaking and
    possibly extend maintenance indefinitely.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: thoughts on Git::Raw / libgit2?
  2020-06-16 21:40 thoughts on Git::Raw / libgit2? Eric Wong
  2020-06-22 19:24 ` Konstantin Ryabitsev
@ 2020-09-19  9:50 ` Eric Wong
  1 sibling, 0 replies; 4+ messages in thread
From: Eric Wong @ 2020-09-19  9:50 UTC (permalink / raw)
  To: meta

I noped out of Git::Raw since their manpage explicitly stated
it's an unstable API.  So I'm using Inline::C for libgit2
support (we've been using Inline::C for years, now):

  https://public-inbox.org/meta/20200919093714.21776-1-e@80x24.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-19  9:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-16 21:40 thoughts on Git::Raw / libgit2? Eric Wong
2020-06-22 19:24 ` Konstantin Ryabitsev
2020-06-25  4:31   ` Eric Wong
2020-09-19  9:50 ` Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).