git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Include local config before platform tweaks
@ 2006-09-05 22:00 Brian Gernhardt
  2006-09-05 22:13 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Gernhardt @ 2006-09-05 22:00 UTC (permalink / raw)
  To: git

Having config.mak included after the platform tweaks ignores NO_FINK  
or NO_DARWIN_PORTS in that file.  Simply including the config earlier  
fixes that.

Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
---
Makefile |    6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 7b3114f..81902d4 100644
--- a/Makefile
+++ b/Makefile
@@ -300,6 +300,9 @@ BUILTIN_OBJS = \
GITLIBS = $(LIB_FILE) $(XDIFF_LIB)
LIBS = $(GITLIBS) -lz
+-include config.mak.autogen
+-include config.mak
+
#
# Platform specific tweaks
#
@@ -403,9 +406,6 @@ ifneq (,$(findstring arm,$(uname_M)))
	ARM_SHA1 = YesPlease
endif
--include config.mak.autogen
--include config.mak
-
ifdef WITH_OWN_SUBPROCESS_PY
	PYMODULES += compat/subprocess.py
else

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

* Re: [PATCH] Include local config before platform tweaks
  2006-09-05 22:00 [PATCH] Include local config before platform tweaks Brian Gernhardt
@ 2006-09-05 22:13 ` Junio C Hamano
  2006-09-06  3:31   ` Shawn Pearce
  0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2006-09-05 22:13 UTC (permalink / raw)
  To: Brian Gernhardt; +Cc: git

Brian Gernhardt <benji@silverinsanity.com> writes:

> Having config.mak included after the platform tweaks ignores NO_FINK
> or NO_DARWIN_PORTS in that file.  Simply including the config earlier
> fixes that.

I vaguely recall that this was brought up before, and the
conclusion was that the include location is correct but the way
darwin bits were done was wrong.  I do not recall the details
but does anybody on the list know?

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

* Re: [PATCH] Include local config before platform tweaks
  2006-09-05 22:13 ` Junio C Hamano
@ 2006-09-06  3:31   ` Shawn Pearce
  2006-09-06  7:18     ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Shawn Pearce @ 2006-09-06  3:31 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Brian Gernhardt, git

Junio C Hamano <junkio@cox.net> wrote:
> Brian Gernhardt <benji@silverinsanity.com> writes:
> 
> > Having config.mak included after the platform tweaks ignores NO_FINK
> > or NO_DARWIN_PORTS in that file.  Simply including the config earlier
> > fixes that.
> 
> I vaguely recall that this was brought up before, and the
> conclusion was that the include location is correct but the way
> darwin bits were done was wrong.  I do not recall the details
> but does anybody on the list know?

I think we just need to move the NO_FINK stuff below the include;
like this:


diff --git a/Makefile b/Makefile
index 164dbcf..748907b 100644
--- a/Makefile
+++ b/Makefile
@@ -328,18 +333,6 @@ ifeq ($(uname_S),Darwin)
 	NEEDS_SSL_WITH_CRYPTO = YesPlease
 	NEEDS_LIBICONV = YesPlease
 	NO_STRLCPY = YesPlease
-	ifndef NO_FINK
-		ifeq ($(shell test -d /sw/lib && echo y),y)
-			BASIC_CFLAGS += -I/sw/include
-			BASIC_LDFLAGS += -L/sw/lib
-		endif
-	endif
-	ifndef NO_DARWIN_PORTS
-		ifeq ($(shell test -d /opt/local/lib && echo y),y)
-			BASIC_CFLAGS += -I/opt/local/include
-			BASIC_LDFLAGS += -L/opt/local/lib
-		endif
-	endif
 endif
 ifeq ($(uname_S),SunOS)
 	NEEDS_SOCKET = YesPlease
@@ -433,6 +426,21 @@ else
 	endif
 endif
 
+ifeq ($(uname_S),Darwin)
+	ifndef NO_FINK
+		ifeq ($(shell test -d /sw/lib && echo y),y)
+			BASIC_CFLAGS += -I/sw/include
+			BASIC_LDFLAGS += -L/sw/lib
+		endif
+	endif
+	ifndef NO_DARWIN_PORTS
+		ifeq ($(shell test -d /opt/local/lib && echo y),y)
+			BASIC_CFLAGS += -I/opt/local/include
+			BASIC_LDFLAGS += -L/opt/local/lib
+		endif
+	endif
+endif
+
 ifndef NO_CURL
 	ifdef CURLDIR
 		# This is still problematic -- gcc does not always want -R.

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

* Re: [PATCH] Include local config before platform tweaks
  2006-09-06  3:31   ` Shawn Pearce
@ 2006-09-06  7:18     ` Junio C Hamano
  2006-09-06 19:13       ` Brian Gernhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2006-09-06  7:18 UTC (permalink / raw)
  To: Brian Gernhardt; +Cc: git, Shawn Pearce

Shawn Pearce <spearce@spearce.org> writes:

> Junio C Hamano <junkio@cox.net> wrote:
>> Brian Gernhardt <benji@silverinsanity.com> writes:
>> 
>> > Having config.mak included after the platform tweaks ignores NO_FINK
>> > or NO_DARWIN_PORTS in that file.  Simply including the config earlier
>> > fixes that.
>> 
>> I vaguely recall that this was brought up before, and the
>> conclusion was that the include location is correct but the way
>> darwin bits were done was wrong.  I do not recall the details
>> but does anybody on the list know?
>
> I think we just need to move the NO_FINK stuff below the include;
> like this:

Thanks Shawn.  Brian does Shawn's patch work for you?

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

* Re: [PATCH] Include local config before platform tweaks
  2006-09-06  7:18     ` Junio C Hamano
@ 2006-09-06 19:13       ` Brian Gernhardt
  0 siblings, 0 replies; 5+ messages in thread
From: Brian Gernhardt @ 2006-09-06 19:13 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Shawn Pearce

On Sep 6, 2006, at 3:18 AM, Junio C Hamano wrote:

> Thanks Shawn.  Brian does Shawn's patch work for you?

Short answer: Yes

Long answer:
The patch from his e-mail failed (git apply: fatal: corrupt patch at  
line 27), but manually making the changes worked.  I didn't pull  
before applying that, so that's probably the problem there.

~~Brian

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

end of thread, other threads:[~2006-09-06 19:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-05 22:00 [PATCH] Include local config before platform tweaks Brian Gernhardt
2006-09-05 22:13 ` Junio C Hamano
2006-09-06  3:31   ` Shawn Pearce
2006-09-06  7:18     ` Junio C Hamano
2006-09-06 19:13       ` Brian Gernhardt

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).