From: Jason Riedy <ejr@EECS.Berkeley.EDU>
To: Patrick Mauritz <oxygene@studentenbude.ath.cx>
Cc: git@vger.kernel.org
Subject: Re: patches
Date: Fri, 09 Sep 2005 15:25:22 -0700 [thread overview]
Message-ID: <25968.1126304722@lotus.CS.Berkeley.EDU> (raw)
In-Reply-To: <1125962642.15293.20.camel@divert>
And Patrick Mauritz writes:
-
- --- git-core-0.99.5.orig/convert-cache.c Wed Aug 17 09:55:00 2005
- +++ git-core-0.99.5/convert-cache.c Wed Aug 17 09:58:48 2005
- @@ -1,4 +1,5 @@
- #define _XOPEN_SOURCE /* glibc2 needs this */
- +#define __EXTENSIONS__ /* solaris needs this */
To be honest, the right place to handle both these
#defines is the Makefile. AIX needs its own set of
-Ds to turn on various standards. ugh. I'm sure
HP-UX needs even more magic, IRIX needs (is?) a dead
chicken, etc.
- +#ifndef __sun
[...]
- getdomainname(real_email+len, sizeof(real_email)-len);
[...]
- +#endif
getdomainname isn't declared, but it is in libnsl
(on Solaris 8, Sparc) and works just fine. Sun
documents sysinfo (2) as its replacement, but that
call is different on different platforms. I'd be
shocked if getdomainname disappeared from libnsl,
especially since the C++ include files declare it.
Whoops.
- +ifeq ($(shell uname -s),SunOS)
- + LIBS += -lsocket
- +endif
Traditionally, it's -lsocket -lnsl to cover all the
bases. Old SunOS4 -> SunOS5 porting annoyance. That
also lets getdomainname work.
The Makefile is generally insufficient for any platform
other than Linux with system-supplied support libraries.
Fixing that will take a good deal of work and probably
will involve putting a bunch of variable-defining makefile
fragments somewhere and including the "right" one. With
the right variable definitions, a user can over-ride any
of them from the make command...
In the meantime, my personal coping method is just to copy
the Makefile to Makefile.platform, edit it, and use make -f
Makefile.platform. I could be really cool and just use a
different git branch per platform, but I'm lazy.
Jason
next prev parent reply other threads:[~2005-09-09 22:25 UTC|newest]
Thread overview: 77+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-05 23:24 patches Patrick Mauritz
2005-09-08 2:06 ` patches Junio C Hamano
2005-09-08 10:11 ` patches Patrick Mauritz
2005-09-09 22:25 ` Jason Riedy [this message]
2005-09-12 5:39 ` [PATCH] getdomainname should be usable on SunOS with -lnsl Junio C Hamano
-- strict thread matches above, loose matches on Subject: below --
2025-04-02 6:43 patches Julia Lawall
2025-04-02 7:00 ` patches Samuel Abraham
2025-04-02 7:22 ` patches Julia Lawall
2025-04-02 7:30 ` patches Samuel Abraham
2025-04-02 7:15 ` patches Erick Karanja
2025-04-02 7:38 ` patches Julia Lawall
2025-03-21 13:35 patches Julia Lawall
[not found] ` <CAK=KnqQ4HmEVjWQZiv2xzVhLEwJMZxtWfKb51XyhVyBQOziYEg@mail.gmail.com>
[not found] ` <7a7648c5-2731-dc20-224-d5bb639b1c58@inria.fr>
[not found] ` <95e69530e3b03f56f4218b8c03a2ca520a0ae6bf.camel@gmail.com>
[not found] ` <8e95cbac-6b5d-f6fa-e0f5-4c4b42321cd2@inria.fr>
[not found] ` <CAK=KnqRsZdAq5FAJo4S0gQbs_PFAm0YrXdBwc-jA7-K1QJhGNg@mail.gmail.com>
[not found] ` <617cbba7-67a6-8ebd-bde8-e5e39a786d2@inria.fr>
[not found] ` <CAK=KnqS_PC-zKp0yjq4SBFicv+j+PYnpAkCRjpjeKb5OXjNeHQ@mail.gmail.com>
[not found] ` <721cf04a-5ef1-1829-54ca-96d07f498422@inria.fr>
[not found] ` <CAK=KnqRnHK=fma-s63ppm=vZEYhe7SWhKSB6H0cb8i69pUW7FA@mail.gmail.com>
[not found] ` <CAK=KnqTbWps0B6B+XgP9gY+Jy8ATJqz0Qb8kPMvyHb0wDkNSKA@mail.gmail.com>
2025-03-25 6:24 ` patches Julia Lawall
2025-03-25 6:27 ` patches erick karanja
2013-06-23 21:57 patches Peter Meerwald
2013-03-07 10:02 Patches Miles Rout
2013-03-07 12:07 ` Patches Daniel Mack
2012-06-14 18:12 Patches Peter Senna Tschudin
2012-06-14 21:27 ` Patches Rodney Baker
2012-06-14 21:43 ` Patches Randy Dunlap
2012-06-15 0:23 ` Patches Peter Senna Tschudin
2012-06-15 11:15 ` Patches Ezequiel Garcia
2012-06-15 16:15 ` Patches Randy Dunlap
2011-10-13 14:58 patches Sascha Hauer
2010-07-26 7:58 patches Maarten Vanraes
2010-07-14 0:05 patches Maarten Vanraes
[not found] ` <201007140205.35944.maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-07-21 11:33 ` patches Harald Hoyer
[not found] ` <4C46DAF1.1090603-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-07-21 15:18 ` patches Maarten Vanraes
[not found] ` <201007211718.28574.maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-07-26 7:42 ` patches Maarten Vanraes
2010-07-21 11:41 ` patches Harald Hoyer
[not found] ` <4C46DCD0.3020608-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-07-21 15:03 ` patches Maarten Vanraes
[not found] ` <201007211703.36797.maarten.vanraes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-07-21 15:13 ` patches Harald Hoyer
[not found] ` <4C470EAD.705-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-07-21 15:20 ` patches Maarten Vanraes
2009-10-22 21:39 Patches David Lanzendörfer
2009-10-22 21:44 ` Patches David Lanzendörfer
2009-11-05 19:59 ` Patches Michael 'Mickey' Lauer
2009-11-05 21:33 ` Patches Koen Kooi
2009-11-05 22:09 ` Patches Marcin Juszkiewicz
2009-11-05 22:42 ` Patches Michael 'Mickey' Lauer
2009-11-07 16:30 ` Patches Klaus 'mrmoku' Kurzmann
2009-11-08 12:13 ` Patches Michael 'Mickey' Lauer
2009-10-22 21:35 Patches David Lanzendörfer
2009-11-05 19:55 ` Patches Michael 'Mickey' Lauer
2008-08-08 19:03 Patches Morey Roof
2008-01-23 12:35 Patches Marco Gerards
2008-01-23 13:11 ` Patches Robert Millan
2007-11-26 2:27 patches J. Bruce Fields
2007-04-23 7:05 patches Gerrit Renker
2006-10-20 17:00 patches Michael Labuschke
2006-10-23 4:19 ` patches Neil Brown
2006-09-12 20:47 Patches Thomas Koeller
2006-09-13 12:27 ` Patches Ralf Baechle
2006-09-13 13:02 ` Patches Franck Bui-Huu
2004-07-30 1:19 patches David S. Miller
2004-07-30 1:24 ` patches Herbert Xu
2004-07-30 2:20 ` patches David S. Miller
2004-07-30 2:22 ` patches Herbert Xu
2004-07-30 1:26 ` patches Herbert Xu
2004-07-30 2:30 ` patches David S. Miller
2004-05-10 14:46 patches amine.baina
2004-05-10 9:21 Depend on CONFIG_AUDIT? Thomas Bleher
2004-05-10 12:10 ` Stephen Smalley
2004-05-10 14:56 ` patches amine.baina
2004-05-03 16:56 [patch] Add devnull initial SID to policy Stephen Smalley
2004-05-10 14:59 ` patches maxence.bernard
2004-05-10 14:39 ` patches Stephen Smalley
2004-01-19 16:23 patches Peter Gerbrandt
2002-08-30 21:38 Patches Russell King
2001-01-25 6:11 Patches Alan Cox
2001-01-25 10:08 ` Patches David Woodhouse
2001-01-25 14:59 ` Patches Mike A. Harris
2001-01-25 10:23 ` Patches David Woodhouse
2001-01-25 13:31 ` Patches Daniel Phillips
2001-01-25 13:41 ` Patches Chris Wedgwood
2001-01-25 20:22 ` Patches Thunder from the hill
2001-01-26 18:22 ` Patches Marc Mutz
2001-01-29 14:41 ` Patches Thunder from the hill
2001-01-25 13:42 ` Patches Jeff Garzik
2001-01-18 6:34 Patches Alan Cox
2000-07-08 0:17 Patches Ralf Baechle
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=25968.1126304722@lotus.CS.Berkeley.EDU \
--to=ejr@eecs.berkeley.edu \
--cc=git@vger.kernel.org \
--cc=oxygene@studentenbude.ath.cx \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.