Git development
 help / color / mirror / Atom feed
* Cygwin and git 1.5.0
@ 2007-03-03 18:22 Ramsay Jones
  0 siblings, 0 replies; 3+ messages in thread
From: Ramsay Jones @ 2007-03-03 18:22 UTC (permalink / raw)
  To: Junio C Hamano, GIT Mailing-list

Hi Junio,

At the end of last year I finally bought a new laptop (yay!). Much to my
surprise, I haven't yet got around to installing Linux (The Ubuntu live DVD
is the only one I have found which "works"; but it's so *slow* as to be
unusable, so I still don't know if all my h/w works with it).

However, almost the first thing I did was to install Cygwin, which I have been
using on windows since about beta-20 (back in the days of cygnus solutions).
Cygwin has its problems, but I could not use windows without it.

So naturally I tried building git on Cygwin (copying my git repo over from
my old Linux system). I have to say that, after some initial problems, it
went rather well. (hint: don't use a working directory backed up from Linux
on cygwin; "make clean" didn't - among other things!).

I recently upgraded git using the 1.5.0 tarball. (Yes, since I now have git on
windows, where I can access the internet, I could clone the git repo directly.
However, since I'm still on dial-up, I can't spare the bandwidth. Maybe I will
try shallow clone sometime.)

As far as git 1.5.0 is concerned, the build/test went with only minor problems.
I had to disable test t4016-diff-quote.sh, because it used tabs and LFs in filenames.
I note that Alex Riesen already sent you a patch to cover that, so I won't send
another one.

However, since I like to have "ALL_CFLAGS+= -Werror" in my config.mak file, I had
to get rid of the gcc warnings. This resulted in the following patch series:

[PATCH 1/6] Fix some "printf format" warnings.
[PATCH 2/6] Unset (comment out) NO_C99_FORMAT on Cygwin.
[PATCH 3/6] Fix a "label defined but unreferenced" warning.
[PATCH 4/6] Fix an "implicit function definition" warning.
[PATCH 5/6] Fix some "comparison is always true/false" warnings.
[PATCH 6/6] Fix a "pointer type missmatch" warning.

As I note in the [PATCH 2/6] email, I should have deleted that setting from the
Makefile, rather than commenting it out, but I didn't have the energy to re-do
all the commits/emails. ;-)

The patches are against 1.5.0 tarball which, hopefully, is not so long ago as to
make them impossible to apply. Also, I'm hoping that my mail client (thunderbird 1.5.0.2)
has not caused any whitespace damage. (I can resend as attachments if required).

Also, I noticed that some recent changes seem to have made NO_C99_FORMAT somewhat
redundant. I _suspect_ that the unconditional #include-ing of the C99 headers
<inttypes.h> and (therefore also) <stdint.h>, has made it necessary to use a
compiler/library combination which has pretty good, if not full, C99 support.
IOW, if it has those headers, it almost definitely supports the C99 printf format
specifiers. For example, my old Linux system would not be able to compile the
current git. (Has anybody tried on SunOS 5.8 and 5.9?)

This is not a problem, but I do wonder if it was a conscious decision.

All the Best,

Ramsay Jones

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Cygwin and git 1.5.0
@ 2007-03-03 18:31 Ramsay Jones
  2007-03-03 18:40 ` Johannes Schindelin
  0 siblings, 1 reply; 3+ messages in thread
From: Ramsay Jones @ 2007-03-03 18:31 UTC (permalink / raw)
  To: Junio C Hamano, GIT Mailing-list

Hi Junio,

At the end of last year I finally bought a new laptop (yay!). Much to my
surprise, I haven't yet got around to installing Linux (The Ubuntu live DVD
is the only one I have found which "works"; but it's so *slow* as to be
unusable, so I still don't know if all my h/w works with it).

However, almost the first thing I did was to install Cygwin, which I have been
using on windows since about beta-20 (back in the days of cygnus solutions).
Cygwin has its problems, but I could not use windows without it.

So naturally I tried building git on Cygwin (copying my git repo over from
my old Linux system). I have to say that, after some initial problems, it
went rather well. (hint: don't use a working directory backed up from Linux
on cygwin; "make clean" didn't - among other things!).

I recently upgraded git using the 1.5.0 tarball. (Yes, since I now have git on
windows, where I can access the internet, I could clone the git repo directly.
However, since I'm still on dial-up, I can't spare the bandwidth. Maybe I will
try shallow clone sometime.)

As far as git 1.5.0 is concerned, the build/test went with only minor problems.
I had to disable test t4016-diff-quote.sh, because it used tabs and LFs in filenames.
I note that Alex Riesen already sent you a patch to cover that, so I won't send
another one.

However, since I like to have "ALL_CFLAGS+= -Werror" in my config.mak file, I had
to get rid of the gcc warnings. This resulted in the following patch series:

[PATCH 1/6] Fix some "printf format" warnings.
[PATCH 2/6] Unset (comment out) NO_C99_FORMAT on Cygwin.
[PATCH 3/6] Fix a "label defined but unreferenced" warning.
[PATCH 4/6] Fix an "implicit function definition" warning.
[PATCH 5/6] Fix some "comparison is always true/false" warnings.
[PATCH 6/6] Fix a "pointer type missmatch" warning.

As I note in the [PATCH 2/6] email, I should have deleted that setting from the
Makefile, rather than commenting it out, but I didn't have the energy to re-do
all the commits/emails. ;-)

The patches are against 1.5.0 tarball which, hopefully, is not so long ago as to
make them impossible to apply. Also, I'm hoping that my mail client (thunderbird 1.5.0.2)
has not caused any whitespace damage. (I can resend as attachments if required).

Also, I noticed that some recent changes seem to have made NO_C99_FORMAT somewhat
redundant. I _suspect_ that the unconditional #include-ing of the C99 headers
<inttypes.h> and (therefore also) <stdint.h>, has made it necessary to use a
compiler/library combination which has pretty good, if not full, C99 support.
IOW, if it has those headers, it almost definitely supports the C99 printf format
specifiers. For example, my old Linux system would not be able to compile the
current git. (Has anybody tried on SunOS 5.8 and 5.9?)

This is not a problem, but I do wonder if it was a conscious decision.

All the Best,

Ramsay Jones

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

end of thread, other threads:[~2007-03-03 19:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-03 18:22 Cygwin and git 1.5.0 Ramsay Jones
  -- strict thread matches above, loose matches on Subject: below --
2007-03-03 18:31 Ramsay Jones
2007-03-03 18:40 ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox