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

Re: [PATCH 1/2] git_remote_cvs: Honor DESTDIR in the Makefile

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Aug 16, 2009, 21:21 UTC
Message-ID
<alpine.DEB.1.00.0908162316030.8306@pacific.mpi-cbg.de>
In-Reply-To
<20090816210300.GB23522@gmail.com>
Hi,
On Sun, 16 Aug 2009, David Aguilar wrote:
Show 31 quoted lines
> On Sun, Aug 16, 2009 at 10:55:29PM +0200, Johannes Schindelin wrote:
> 
> > On Sun, 16 Aug 2009, David Aguilar wrote:
> > 
> > > diff --git a/git_remote_cvs/Makefile b/git_remote_cvs/Makefile
> > > index 8dbf3fa..f52c096 100644
> > > --- a/git_remote_cvs/Makefile
> > > +++ b/git_remote_cvs/Makefile
> > > @@ -3,6 +3,15 @@
> > >  #
> > >  pysetupfile:=setup.py
> > >  
> > > +# Setup the DESTDIR for Python.
> > > +ifeq ($(DESTDIR),)
> > > +PYTHON_DESTDIR = /
> > 
> > Hmm.  I think this would break on msysGit.  Not that anybody worked on 
> > getting Python to compile on msysGit.
> > 
> > (Just to make sure you understand the issue: on msysGit, we set prefix to 
> > "" (and I think DESTDIR somehow ends up taking on the same value).  Now, 
> > when DESTDIR is set to "/" and something wants to be copied to 
> > $(DESTDIR)/something, the latter expands to //something, which tells MSys 
> > not to expand //something to the correct Windows path.
> 
> 
> I see.  Hmm.. setup.py is a real pain.
> 
> I'll see if we rework this so that we end up passing "" to
> --root instead of /.  I'm going to be gone for a few hours so
> probably won't be able to try it out until tonight.

Thinking about it a bit more: you might not need to do anything. I think that msysGit should move to prefix = /mingw anyway.

I hesitated to do that earlier, as all .perl and .sh scripts need MSys. But the Git .exe files are MinGW programs, so technically they belong into /mingw/bin/ anyway.

But the issue would only really become relevant if anybody supported Python on msysGit (and thereby git-remote-cvs, before that, we cannot make use of it).

Just a thing to keep in mind.

Ciao, Dscho

Previous: David AguilarNext: Johan Herland
Message 17 of 22 in “[RFCv3 0/4] CVS remote helper”
  1. Johan HerlandAug 12, 2009
  2. 1/4 Basic build infrastructure for Python scriptsJohan Herland, Aug 12, 2009
  3. 2/4 Add Python support library for CVS remote helperJohan Herland, Aug 12, 2009
  4. David AguilarAug 12, 2009
  5. Johan HerlandAug 12, 2009
  6. Sverre RabbelierAug 12, 2009
  7. Michael HaggertyAug 13, 2009
  8. Johan HerlandAug 13, 2009
  9. Junio C HamanoAug 13, 2009
  10. Johan HerlandAug 13, 2009
  11. Junio C HamanoAug 16, 2009
  12. 1/2 git_remote_cvs: Honor DESTDIR in the MakefileDavid Aguilar, Aug 16, 2009
  13. 2/2 git_remote_cvs: Use $(shell) in the MakefileDavid Aguilar, Aug 16, 2009
  14. David AguilarAug 16, 2009
  15. Johannes SchindelinAug 16, 2009
  16. David AguilarAug 16, 2009
  17. Johannes SchindelinAug 16, 2009
  18. Johan HerlandAug 17, 2009
  19. 1/2 git_remote_cvs: Honor DESTDIR in the MakefileDavid Aguilar, Aug 16, 2009
  20. 2/2 git_remote_cvs: Use $(shell) in the MakefileDavid Aguilar, Aug 16, 2009
  21. 3/4 Third draft of CVS remote helper programJohan Herland, Aug 12, 2009
  22. 4/4 Add simple selftests of git-remote-cvs functionalityJohan Herland, Aug 12, 2009

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.