git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCHES] CURLDIR support, more usable cmd-rename.sh

From
Junio C Hamano <junkio@cox.net>
Date
Sep 19, 2005, 16:34 UTC
Message-ID
<7vhdchqan8.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<1127139079.781.9.camel@divert>
Patrick Mauritz <oxygene@studentenbude.ath.cx> writes:
> diff -ur git-core-0.99.7.orig//Makefile git-core-0.99.7/Makefile
> --- git-core-0.99.7.orig//Makefile	Mon Sep 19 12:43:04 2005
> +++ git-core-0.99.7/Makefile	Mon Sep 19 12:45:45 2005

Why not a patch from either git or cogito or stgit ;-)? Anyway, thanks for your patch.

> -CFLAGS = -g -O2 -Wall
> +CFLAGS = -g -O2

Not relevant to the current topic as far as I can tell (unless your non-standard curl include files trip under -Wall).

Show 15 quoted lines
> +ifdef CURLDIR
> +CFLAGS+=-I$(CURLDIR)/include
> +endif
>  ALL_CFLAGS = $(CFLAGS) $(PLATFORM_DEFINES) $(DEFINES)
>  
>  prefix = $(HOME)
> @@ -261,7 +264,11 @@
>  git-ssh-pull: rsh.o fetch.o
>  git-ssh-push: rsh.o
>  
> +ifdef CURLDIR
> +git-http-fetch: LIBS += -L$(CURLDIR)/lib -R$(CURLDIR)/lib -lcurl
> +else
>  git-http-fetch: LIBS += -lcurl
> +endif

I do not have any objections to helping installations where CURL is installed somewhere nonstandard, but if that is the case I am wondering if assuming that they are all in the same directory hierarchy covers enough. CURLDIR=/usr/local/ would be OK and CURLDIR=/opt/curl/ would be as well with this patch, so this probably is fine. Installations without ld.so.conf need -R, but is it safe to always force -R like this?

Also I wonder if we need similar customization for openssl stuff, but that is a separate topic.

Show 9 quoted lines
> --- cmd-rename.sh~	Mon Sep 19 12:53:40 2005
> +++ git-core-0.99.7/cmd-rename.sh	Mon Sep 19 12:53:58 2005
> @@ -4,7 +4,9 @@
>  while read old new
>  do
>  	rm -f "$d/$old"
> +	if [ -x "$d/$new" ]; then
>  	ln -s "$new" "$d/$old"
> +	fi
No questions about this part.  Thanks for the fix.
Previous: Matthias UrlichsNext: Patrick Mauritz
Message 5 of 7 in “[PATCHES] CURLDIR support, more usable cmd-rename.sh”
  1. Patrick MauritzSep 19, 2005
  2. Petr BaudisSep 19, 2005
  3. Patrick MauritzSep 19, 2005
  4. Matthias UrlichsSep 19, 2005
  5. Junio C HamanoSep 19, 2005
  6. Patrick MauritzSep 19, 2005
  7. Junio C HamanoSep 20, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.