* Re: status of libgit.a
2010-03-07 10:27 ` status of libgit.a Paul Menzel
@ 2010-03-07 12:18 ` Miklos Vajna
2010-03-07 14:27 ` Nguyen Thai Ngoc Duy
2010-03-07 13:26 ` Dmitry Potapov
2010-03-07 16:36 ` Johannes Schindelin
2 siblings, 1 reply; 5+ messages in thread
From: Miklos Vajna @ 2010-03-07 12:18 UTC (permalink / raw)
To: Paul Menzel; +Cc: git, Marc Oscar Singer, 407722
[-- Attachment #1: Type: text/plain, Size: 1136 bytes --]
On Sun, Mar 07, 2010 at 11:27:35AM +0100, Paul Menzel <pm.debian@googlemail.com> wrote:
> > You really need to talk to upstream if you want this libgit.a.
>
> could you please give an update on the status of libgit.a. For example
> cgit still could not be packaged yet for Debian [1] because of this bug
> [2].
>
> cgit is used by a lot of projects out there, so I am wondering if the
> current libgit.a can be released in its current state.
libgit.a is not a public library, so it will never have a stable
API/ABI. There is a libgit2 project which tries to do this, but it's far
from complete:
http://repo.or.cz/w/libgit2.git
> By the way, is there a web site/page for libgit.a?
No, there isn't.
I think the only sane solution is what Fedora does as well:
http://cvs.fedoraproject.org/viewvc/devel/cgit/
When cgit-1.2.3 is released, have a look at its Makefile, check what Git
version does it want and add the relevant Git source to the cgit source
package.
[ I remember Debian did not support having multiple upstream sources /
one source package, I hope this is no longer the situation. ;-) ]
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: status of libgit.a
2010-03-07 10:27 ` status of libgit.a Paul Menzel
2010-03-07 12:18 ` Miklos Vajna
@ 2010-03-07 13:26 ` Dmitry Potapov
2010-03-07 16:36 ` Johannes Schindelin
2 siblings, 0 replies; 5+ messages in thread
From: Dmitry Potapov @ 2010-03-07 13:26 UTC (permalink / raw)
To: Paul Menzel; +Cc: git, Marc Oscar Singer, 407722
On Sun, Mar 07, 2010 at 11:27:35AM +0100, Paul Menzel wrote:
>
> could you please give an update on the status of libgit.a. For example
> cgit still could not be packaged yet for Debian [1] because of this bug
> [2].
>
> cgit is used by a lot of projects out there, so I am wondering if the
> current libgit.a can be released in its current state.
>
> By the way, is there a web site/page for libgit.a?
libgit.a has never been meant to use outside of Git. It was created just
to assist with the building process, and there is no clear defined API.
So, using libgit.a outside of Git is no different than copying source
files and using them in another project.
AFAIK, there is no plan to create a stable API for the existing libgit.a
Another project (libgit2) started some time ago to create a Git library
with a stable API, but it does not share much code with Git, and so far
it provides only basic functionality and has very few contributors, who
are also busy with other projects. So, in no way it can be considered as
a replacement of existing libgit.a.
On the other hand, libgit.a includes plumbing functions, which may be
considered as stable API. So, if cgit uses only those functions just to
avoid fork(), it makes sense; but it should be done carefully, because
libgit.a can call exit() on error. It may be not a problem for cgit, but
it is just another reason why libgit.a cannot be considered as a general
purpose library that provides Git functionality...
Dmitry
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: status of libgit.a
2010-03-07 10:27 ` status of libgit.a Paul Menzel
2010-03-07 12:18 ` Miklos Vajna
2010-03-07 13:26 ` Dmitry Potapov
@ 2010-03-07 16:36 ` Johannes Schindelin
2 siblings, 0 replies; 5+ messages in thread
From: Johannes Schindelin @ 2010-03-07 16:36 UTC (permalink / raw)
To: Paul Menzel; +Cc: git, Marc Oscar Singer, 407722
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1409 bytes --]
Hi,
On Sun, 7 Mar 2010, Paul Menzel wrote:
> Am Donnerstag, den 19.02.2009, 09:24 +0000 schrieb Gerrit Pape:
> > On Wed, Feb 18, 2009 at 09:10:02AM -0800, Marc Oscar Singer wrote:
> > > Gerrit Pape wrote:
>
> […]
>
> > > >It depends on upstream. Back then, Junio asked to not provide such
> > > >a library package in Debian, and I respect that. There've been
> > > >some plans and effort to stabilize the lib in the past, but I'm not
> > > >sure about the status.
> > > >
> > > Would it be a compromise to provide libgit.a as a static library for
> > > until it stabilizes?
> >
> > That's not the compromise, that's the option, I don't know any plans
> > about a shared library. The git-core-dev package that was available
> > for short included such a static library.
> >
> > You really need to talk to upstream if you want this libgit.a.
>
> could you please give an update on the status of libgit.a.
There had been some people who worked towards a re-entrant libgit.a (read:
non-die()ing in library functions). But there were too many others, so
that effort stopped.
The most likely route for people needing libgit.a would be libgit2:
http://git.wiki.kernel.org/index.php/SoC2010Ideas#Complete_libgit2
> For example cgit still could not be packaged yet for Debian [1] because
> of this bug [2].
cgit should not depend on libgit.a, as it is linked statically anyway.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 5+ messages in thread