From: "Shawn O. Pearce" <spearce@spearce.org>
To: Stephan Beyer <s-beyer@gmx.net>
Cc: Dmitry Potapov <dpotapov@gmail.com>,
Junio C Hamano <gitster@pobox.com>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] shrink git-shell by avoiding redundant dependencies
Date: Fri, 18 Jul 2008 00:58:14 +0000 [thread overview]
Message-ID: <20080718005814.GA4155@spearce.org> (raw)
In-Reply-To: <20080718002620.GE8421@leksak.fem-net>
Stephan Beyer <s-beyer@gmx.net> wrote:
> >
> > +/* Stubs for functions that make no sense for git-shell. These stubs
> > + * are provided here to avoid linking in external redundant modules.
> > + */
> > +void release_pack_memory(size_t need, int fd){}
> > +void trace_argv_printf(const char **argv, const char *fmt, ...){}
> > +void trace_printf(const char *fmt, ...){}
>
> I don't really understand why this works.
> You redefine libgit.a functions here
On Solaris you cannot compile git with the Solaris compiler
and linker, as the linker will not put up with the duplicate
definition of these functions.
I told my co-worker who is taking over "that git stuff" from
me at day-job to post a message to the list, or look at the
Solaris manual pages and figure out what he needs to do in
the Makefile to get it to work right. Neither has happened
yet, and those day-job systems are the only Solaris boxen I
touch, so I won't be fixing it anytime soon myself.
I have to wonder why its important we avoid linking to
all of libgit.a here. So what if git-shell is a little
bigger? This is certainly not fully portable, and does
give warnings on some systems.
--
Shawn.
next prev parent reply other threads:[~2008-07-18 0:59 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-27 21:35 [PATCH] shrink git-shell by avoiding redundant dependencies Dmitry Potapov
2008-06-27 21:55 ` Junio C Hamano
2008-06-27 22:31 ` Dmitry Potapov
2008-06-27 22:34 ` Junio C Hamano
2008-07-18 0:26 ` Stephan Beyer
2008-07-18 0:58 ` Shawn O. Pearce [this message]
2008-07-18 1:04 ` [PATCH] Link git-shell only to a subset of libgit.a Stephan Beyer
2008-07-18 1:06 ` Shawn O. Pearce
2008-07-18 6:03 ` Dmitry Potapov
2008-07-18 10:55 ` Johannes Schindelin
2008-07-18 1:06 ` [PATCH] Remove function stubs in shell.c Stephan Beyer
2008-07-18 6:06 ` Dmitry Potapov
2008-07-18 5:59 ` [PATCH] shrink git-shell by avoiding redundant dependencies Dmitry Potapov
2008-06-28 14:51 ` Johannes Schindelin
2008-06-28 16:48 ` Dmitry Potapov
2008-06-28 17:31 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080718005814.GA4155@spearce.org \
--to=spearce@spearce.org \
--cc=dpotapov@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=s-beyer@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).