git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Makefile checks for DarwinPorts / Fink
@ 2006-07-21 14:58 Stefan Pfetzing
  2006-07-22 14:43 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Pfetzing @ 2006-07-21 14:58 UTC (permalink / raw)
  To: Git Mailing List

Hi,

while I was updating the DarwinPorts Portfile for git, I saw some
really suspicious lines in the Makefile of Git for DarwinPorts/Fink.

--- snip ---
        ## fink
        ifeq ($(shell test -d /sw/lib && echo y),y)
                ALL_CFLAGS += -I/sw/include
                ALL_LDFLAGS += -L/sw/lib
        endif
        ## darwinports
        ifeq ($(shell test -d /opt/local/lib && echo y),y)
                ALL_CFLAGS += -I/opt/local/include
                ALL_LDFLAGS += -L/opt/local/lib
        endif
--- snap ---

IMHO, Git should definetely not include /sw/include and /sw/lib, just
if it *exists*.

Think of a situation, when somebody has Fink and DarwinPorts installed
on one machine (possible). Then if you would build Git from
DarwinPorts, the git Makefile would link against Fink libraries! IMHO
the DarwinPorts / Fink build process should set LDFLAGS and CFLAGS
accordingly.

Also, maybe you want to create a DarwinPorts / Fink independent Mac OS
X pkg which contains Git and its deps.

I know this just appends to CFLAGS/LDFLAGS, but if for example
DarwinPorts has broken build-deps, then the Fink stuff would get
sucked in, and you would not notice. (on a box with both, DP and Fink
installed)

bye

Stefan

  --
       http://www.dreamind.de/
Oroborus and Debian GNU/Linux Developer.

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

end of thread, other threads:[~2006-07-24  6:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-21 14:58 Makefile checks for DarwinPorts / Fink Stefan Pfetzing
2006-07-22 14:43 ` Junio C Hamano
2006-07-22 16:19   ` Shawn Pearce
2006-07-23  5:45     ` Shawn Pearce
2006-07-23 13:00       ` Jakub Narebski
2006-07-24  4:28         ` Shawn Pearce
2006-07-24  6:43           ` Junio C Hamano

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