Skip to contentSkip to conversation

Quick merge status updates.

PATCH In review Junio C Hamano 6 participants 27 messages Jun 15, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

I'm planning to do 1.4.1 soonish from what's currently in "next" (fixes already in "master" plus format-patch updates and some more tests). I am waiting for a confirmation that Johannes's cvsimport fix posted earlier on the list does work, or maybe Martin would come up with an alternative. I think then we are good for a release.

Immediately after 1.4.1 happens, I would like to pull in "Git.xs/Git.pm" series by Pasky into "next". After that settles I'd pull in the diff options rewrite by Timo.

For some time, "pu" was left in the state that does not to pass the testsuite, but I've fixed what's minimally needed (the breakage was mostly from the diff options rewrite). People who regularly follow "next" on platforms other than i386 or x86-64 Linux might want to try out tonight's "pu" to make sure "Git.xs/Git.pm" series works on their box before it hits "next". Breakage there would stop your "git pull" working, so this is somewhat important.

Thanks.

#1 lore raw
Quoted 8 lines · Junio C Hamano

For some time, "pu" was left in the state that does not to pass the testsuite, but I've fixed what's minimally needed (the breakage was mostly from the diff options rewrite). People who regularly follow "next" on platforms other than i386 or x86-64 Linux might want to try out tonight's "pu" to make sure "Git.xs/Git.pm" series works on their box before it hits "next". Breakage there would stop your "git pull" working, so this is somewhat important.

PowerPC 32-bit, G3, Fedora Core 5, gcc 4.1.1, perl 5.8.8, pu branch (f5d33e0b4eaa4083b455118a7be473defb61f137)

Warnings:

quote.c: In function 'sq_quote_buf':
quote.c:34: warning: value computed is not used quote.c:37: warning: value computed is not used combine-diff.c: In function 'diff_tree_combined':
combine-diff.c:844: warning: assignment makes integer from pointer without a cast
In file included
from /usr/lib/perl5/5.8.8/ppc-linux-thread-multi/CORE/perl.h:756,

                 from Git.xs:15:

/usr/lib/perl5/5.8.8/ppc-linux-thread-multi/CORE/embed.h:4195:1:
warning: "die" redefined
Git.xs:11:1: warning: this is the location of the previous definition

I'm very concerned about the combine-diff.c warning. The warning seems to be legitimate and I don't see an obvious fix. The offending line comes from 3969cf7db1a13a78f3b7a36d8c1084bbe0a53459 ("Fix some more diff options changes"):

show_log_first = rev->loginfo;

The testsuite passes, but "git-pull" is indeed broken:

$ git-pull
Can't locate Git.pm in @INC (@INC
contains: /usr/lib/perl5/site_perl/5.8.8/ppc-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/ppc-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/ppc-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/ppc-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/ppc-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/ppc-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/ppc-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/ppc-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/ppc-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/ppc-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/ppc-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/ppc-linux-thread-multi /usr/lib/perl5/vend
 or_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/ppc-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /home/proski/bin/git-fmt-merge-msg line 10.
BEGIN failed--compilation aborted at /home/proski/bin/git-fmt-merge-msg
line 10.

Git.pm is installed into /home/proski/lib/perl5/site_perl/5.8.8/ppc-linux-thread-multi/

Speaking of x86_64 (also Fedora Core 5, gcc 4.1.1, perl 5.8.8), git doesn't even build:

In file included
from /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/perl.h:756,

                 from Git.xs:15:

/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/embed.h:4195:1:
warning: "die" redefined
Git.xs:11:1: warning: this is the location of the previous definition Running Mkbootstrap for Git ()
chmod 644 Git.bs
rm -f blib/arch/auto/Git/Git.so
gcc -shared Git.o -o blib/arch/auto/Git/Git.so ../libgit.a \
-lz -lcrypto \

/usr/bin/ld: ../libgit.a(exec_cmd.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
../libgit.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [blib/arch/auto/Git/Git.so] Error 1
make[1]: Leaving directory `/usr/local/src/git/perl'
make: *** [all] Error 2

The build succeeds if I use following:
make CFLAGS='-g -O2 -Wall -fPIC'

The testsuite passes. git-pull is also broken with a similar error message. Git.pm is installed into /home/proski/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/

Signature · 2 lines
Regards,
Pavel Roskin
#2 lore raw
Quoted 2 lines · Pavel Roskin

PowerPC 32-bit, G3, Fedora Core 5, gcc 4.1.1, perl 5.8.8, pu branch (f5d33e0b4eaa4083b455118a7be473defb61f137)

Thanks.

Quoted 5 lines

Warnings:

quote.c: In function 'sq_quote_buf':
quote.c:34: warning: value computed is not used
quote.c:37: warning: value computed is not used

Thanks. I think these are dealt with Jeff King's patches.

Quoted 3 lines

combine-diff.c: In function 'diff_tree_combined':
combine-diff.c:844: warning: assignment makes integer from pointer without a cast

Thanks. The fix is actually simple (two paragraphs below).

Quoted 6 lines

In file included
from /usr/lib/perl5/5.8.8/ppc-linux-thread-multi/CORE/perl.h:756,

                 from Git.xs:15:

/usr/lib/perl5/5.8.8/ppc-linux-thread-multi/CORE/embed.h:4195:1:
warning: "die" redefined
Git.xs:11:1: warning: this is the location of the previous definition

I've seen this but haven't looked into it. Pasky?

Quoted 6 lines

I'm very concerned about the combine-diff.c warning. The warning seems to be legitimate and I don't see an obvious fix. The offending line comes from 3969cf7db1a13a78f3b7a36d8c1084bbe0a53459 ("Fix some more diff options changes"):

show_log_first = rev->loginfo;

This is saying "If rev->loginfo is pointing at some string, we are going to show the log message first and then output from the diff machinery (otherwise rev->loginfo has NULL)". I'll rephrase it to read as:

	show_log_first = !!rev->loginfo;
Quoted 5 lines

The testsuite passes, but "git-pull" is indeed broken:

$ git-pull
Can't locate Git.pm in @INC (@INC
contains: /usr/lib/perl5/site_perl/5.8.8/ppc-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/ppc-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/ppc-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/ppc-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/ppc-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/ppc-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/ppc-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/ppc-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/ppc-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/ppc-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/ppc-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/ppc-linux-thread-multi /usr/lib/perl5/ve

ndor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/ppc-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /home/proski/bin/git-fmt-merge-msg line 10.

Quoted 5 lines

BEGIN failed--compilation aborted at /home/proski/bin/git-fmt-merge-msg line 10.

Git.pm is installed into /home/proski/lib/perl5/site_perl/5.8.8/ppc-linux-thread-multi/

The same problem with the last paragraph.

Quoted 2 lines

Speaking of x86_64 (also Fedora Core 5, gcc 4.1.1, perl 5.8.8), git doesn't even build:

	$ git grep -A1 -e 'Define USE_PIC" pu:Makefile

in other words:

USE_PIC=YesPlease make

Quoted 3 lines

The testsuite passes. git-pull is also broken with a similar error message. Git.pm is installed into /home/proski/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/

I suspect this is either FC perl-dev package is broken (I doubt it) or your installation procedure is pecurilar (much more likely). I pass the same set of prefix, bindir and friends to "make" and "make install" and do not see the problem.

#3 lore raw
Quoted 4 lines · Junio C Hamano

I suspect this is either FC perl-dev package is broken (I doubt it) or your installation procedure is pecurilar (much more likely). I pass the same set of prefix, bindir and friends to "make" and "make install" and do not see the problem.

I think my Perl 5.8.8 is "too new". "man perlfunc" says about "use":

"Imports some semantics into the current package from the named module, generally by aliasing certain subroutine or variable names into your package. It is exactly equivalent to

      BEGIN { require Module; import Module LIST; }

except that Module must be a bareword."

I think the BEGIN block has priority over other statements. My solution was to put the @INC change in the BEGIN block as well.

This patch is working for me:

git-fmt-merge-msg.perl +1 -1
index e8fad02..1b23fa1 100755
@@ -5,7 +5,7 @@ #
 # Read .git/FETCH_HEAD and make a human readable merge message
 # by grouping branches and tags together to form a single line.
 
-unshift @INC, '@@INSTLIBDIR@@';
+BEGIN { unshift @INC, '@@INSTLIBDIR@@'; }
 use strict;
 use Git;
 use Error qw(:try);
Signature · 2 lines
Regards,
Pavel Roskin
#4 lore raw
Quoted 4 lines · Pavel Roskin

I think my Perl 5.8.8 is "too new". "man perlfunc" says about "use":
...
I think the BEGIN block has priority over other statements. My solution was to put the @INC change in the BEGIN block as well.

Actually I do use 5.8.8 and everything you quoted makes perfect sense, -- in fact now I do not know *why* it did _not_ break for me without the BEGIN {} block, especially I do not have any PERL* environment variable to point at anywhere under $HOME.

Thanks for the fix.

#5 lore raw
In reply to Pavel Roskin

Dear diary, on Wed, Jun 28, 2006 at 12:05:03PM CEST, I got a letter where Pavel Roskin <[email protected]> said that...

Quoted 10 lines

I think the BEGIN block has priority over other statements. My solution was to put the @INC change in the BEGIN block as well.

This patch is working for me:

git-fmt-merge-msg.perl +0 -0
index e8fad02..1b23fa1 100755

git-fmt-merge-msg.perl # · line 11

Quoted 8 lines
git-fmt-merge-msg.perl +1 -1
@@ -5,7 +5,7 @@ #
 # Read .git/FETCH_HEAD and make a human readable merge message
 # by grouping branches and tags together to form a single line.
 
-unshift @INC, '@@INSTLIBDIR@@';
+BEGIN { unshift @INC, '@@INSTLIBDIR@@'; }
 use strict;
 use Git;
 use Error qw(:try);

I feel that it is time for another stupid question of mine - why can't you just use lib?

	use lib ('@@INSTLIBDIR@@');

Looks a lot better than some @INC unshifting, and it should be equivalent.

Let's pour in to the confusion:

The unshifting was introduced w/o BEGIN{} in

	From: Junio C Hamano <[email protected]>
	Subject: Re: [PATCH 01/12] Introduce Git.pm (v4)
	Date:   Sat, 24 Jun 2006 04:57:31 -0700

but that patch is not in pu anymore while the description of the new patch implicitly refers to it, which made it all a bit confusing.

So the purpose of the original patch was to make it play nicely with $PERLLIB, but unshifting helps nothing, since:

There's default @INC
Perl spots PERLLIB and unshifts @INC We then unshift @INC too, taking precedence

So didn't the original patch rather want to do push?

	$ PERL5LIB=perl perl -le "BEGIN { unshift @INC, '/home/xpasky/lib/perl5/site_perl/5.8.8/i686-linux'; } use Git; print Git::hash_object('blob','Makefile');"
	17842a3657ae8e5b4fd3ddfeb69268a4b94cb97a
	$ PERL5LIB=perl perl -le "use Git; print Git::hash_object('blob','Makefile');"
	syntax error at perl/Git.pm line 44, near "h>"

(after inserting random junk to perl/Git.pm)

Signature · 4 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Snow falling on Perl. White noise covering line noise.
Hides all the bugs too. -- J. Putnam
#6 lore raw
Quoted 6 lines · Petr Baudis

So the purpose of the original patch was to make it play nicely with $PERLLIB, but unshifting helps nothing, since:

There's default @INC
Perl spots PERLLIB and unshifts @INC We then unshift @INC too, taking precedence

I tried this:

0. check out the branch that has the Perly git ("pu"). build and install normally to have a perfectly working version accessible on your usual $PATH.

1. apply the patch [1] below to make it use "use lib" instead of

    "unshift".

2. break perl/Git.pm being built to pretend we introduced a bug in the work in progress by applying the patch [2] below.

3. without installing the broken Git.pm, run "make test", and see a test that uses "git pull" and needs to create a true merge succeed. It tells me that everything including perl/Git.pm is GOOD, and I'd find the breakage only after installing and running the test again.

If you make the freshly built script to say "use lib" to use Git.pm and its friends from the installed location, it defeats the attempt by test-lib.sh to override it to test what we freshly built -- the use of "unshift @INC" is to work that around and is parallel to the way Python stuff works around the same problem.

[Footnotes]
*1* "use lib" patch.

git-fmt-merge-msg.perl +1 -1
index 1b23fa1..3a42950 100755
@@ -5,7 +5,7 @@ #
 # Read .git/FETCH_HEAD and make a human readable merge message
 # by grouping branches and tags together to form a single line.
 
-BEGIN { unshift @INC, '@@INSTLIBDIR@@'; }
+use lib '@@INSTLIBDIR@@';
 use strict;
 use Git;
 use Error qw(:try);

*2* "break Git.pm" patch.

perl/Git.pm +1 -0
index b4ee88b..34b4f12 100644
@@ -6,6 +6,7 @@ Git - Perl interface to the Git version 
 
 
 package Git;
+syntax error -- kill me
 
 use strict;
 
#7 lore raw

Dear diary, on Sun, Jul 02, 2006 at 11:33:47PM CEST, I got a letter where Junio C Hamano <[email protected]> said that...

Quoted 9 lines

I tried this:

0. check out the branch that has the Perly git ("pu"). build and install normally to have a perfectly working version accessible on your usual $PATH.

1. apply the patch [1] below to make it use "use lib" instead of

    "unshift".
Quoted 8 lines

2. break perl/Git.pm being built to pretend we introduced a bug in the work in progress by applying the patch [2] below.

3. without installing the broken Git.pm, run "make test", and see a test that uses "git pull" and needs to create a true merge succeed. It tells me that everything including perl/Git.pm is GOOD, and I'd find the breakage only after installing and running the test again.

So, just to clarify and make sure we understand each other perfectly, you claim that when skipping (1), (3) _does_ FAIL for you? Because it really doesn't for me and I can't see how could it ever fail without installing the broken version first.

Signature · 4 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Snow falling on Perl. White noise covering line noise.
Hides all the bugs too. -- J. Putnam
#8 lore raw
Quoted 20 lines · Petr Baudis

Dear diary, on Sun, Jul 02, 2006 at 11:33:47PM CEST, I got a letter where Junio C Hamano <[email protected]> said that...

Quoted 9 lines

I tried this:

0. check out the branch that has the Perly git ("pu"). build and install normally to have a perfectly working version accessible on your usual $PATH.

1. apply the patch [1] below to make it use "use lib" instead of

    "unshift".
Quoted 8 lines

2. break perl/Git.pm being built to pretend we introduced a bug in the work in progress by applying the patch [2] below.

3. without installing the broken Git.pm, run "make test", and see a test that uses "git pull" and needs to create a true merge succeed. It tells me that everything including perl/Git.pm is GOOD, and I'd find the breakage only after installing and running the test again.

Quoted 4 lines

So, just to clarify and make sure we understand each other perfectly, you claim that when skipping (1), (3) _does_ FAIL for you? Because it really doesn't for me and I can't see how could it ever fail without installing the broken version first.

Gaah. You are right.

PERL5LIB does not seem to just do a push (and that was I thought why unshift was a way to defeat it) but do something more evil.

With this:

git-fmt-merge-msg.perl +2 -0
index 1b23fa1..5d1ae44 100755
@@ -6,9 +6,11 @@ # Read .git/FETCH_HEAD and make a human 
 # by grouping branches and tags together to form a single line.
 
 BEGIN { unshift @INC, '@@INSTLIBDIR@@'; }
+use lib '@@INSTLIBDIR@@';
 use strict;
 use Git;
 use Error qw(:try);
+print STDERR "\@INC is @INC\n";
 
 my $repo = Git->repository();
 

It spits this out:

@INC is /home/junio/git-pu/lib/perl/5.8.8 /opt/git/git.git/t/../perl/blib/lib /opt/git/git.git/t/../perl/blib/arch/auto/Git /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .

So "BEGIN { unshift }" is JUST AS WRONG as "use lib".

I thought we killed this showstopper and was hoping now the series is mergeable to "next" but apparently not yet X-<.

Sigh....

#9 lore raw
Quoted 9 lines · Junio C Hamano

Gaah. You are right.

PERL5LIB does not seem to just do a push (and that was I thought why unshift was a way to defeat it) but do something more evil.
...
I thought we killed this showstopper and was hoping now the series is mergeable to "next" but apparently not yet X-<.

Sigh....

Yuck; that means we would need to have something evil like this.

-- >8 --
Perly Git: make sure we do test the freshly built one.

We could BEGIN { push @INC, '@@INSTLIBDIR@@'; } but that is not a good idea for normal execution. The would prevent a workaround for a user who is trying to override an old, faulty Git.pm installed on the system path with a newer version installed under $HOME/.

---

git-fmt-merge-msg.perl +5 -1
index 1b23fa1..a9805dd 100755
@@ -5,7 +5,11 @@ #
 # Read .git/FETCH_HEAD and make a human readable merge message
 # by grouping branches and tags together to form a single line.
 
-BEGIN { unshift @INC, '@@INSTLIBDIR@@'; }
+BEGIN {
+	unless (exists $ENV{'RUNNING_GIT_TESTS'}) {
+		unshift @INC, '@@INSTLIBDIR@@';
+	}
+}
 use strict;
 use Git;
 use Error qw(:try);
git-mv.perl +5 -1
index a604896..5134b80 100755
@@ -6,7 +6,11 @@ #
 # This file is licensed under the GPL v2, or a later version
 # at the discretion of Linus Torvalds.
 
-BEGIN { unshift @INC, '@@INSTLIBDIR@@'; }
+BEGIN {
+	unless (exists $ENV{'RUNNING_GIT_TESTS'}) {
+		unshift @INC, '@@INSTLIBDIR@@';
+	}
+}
 use warnings;
 use strict;
 use Getopt::Std;
t/test-lib.sh +2 -1
index fba0c51..298c6ca 100755
@@ -206,8 +206,9 @@ PYTHON=`sed -e '1{
 	PYTHONPATH=$(pwd)/../compat
 	export PYTHONPATH
 }
+RUNNING_GIT_TESTS=YesWeAre
 PERL5LIB=$(pwd)/../perl/blib/lib:$(pwd)/../perl/blib/arch/auto/Git
-export PERL5LIB
+export PERL5LIB RUNNING_GIT_TESTS
 test -d ../templates/blt || {
 	error "You haven't built things yet, have you?"
 }
#10 lore raw
Quoted 1 line · Junio C Hamano

Yuck; that means we would need to have something evil like this.

That's just disgusting.

How about a _much_ simpler approach.

Just make it do

	BEGIN { push ENV{'GIT_PERL_EXEC_DIR'}; }

And then simply _require_ that the setup code sets up GIT_PERL_EXEC_DIR.

Which is usually simple enough to do. For git.c, something like this will do it, other places you can reach things through can have something similar.

Linus

---

git.c +1 -0
index ca8961f..e8f25ee 100644
@@ -294,6 +294,7 @@ int main(int argc, const char **argv, ch
 		prepend_to_path(exec_path, strlen(exec_path));
 	exec_path = git_exec_path();
 	prepend_to_path(exec_path, strlen(exec_path));
+	setenv(exec_path, "GIT_PERL_EXEC_DIR", 0);
 
 	while (1) {
 		/* See if it's an internal command */
#11 lore raw
Quoted 5 lines · Linus Torvalds
Quoted 1 line · Junio C Hamano

Yuck; that means we would need to have something evil like this.

That's just disgusting.

Quoted 7 lines

How about a _much_ simpler approach.

Just make it do

	BEGIN { push ENV{'GIT_PERL_EXEC_DIR'}; }

And then simply _require_ that the setup code sets up GIT_PERL_EXEC_DIR.

No, we are not mucking with /usr/bin but are talking about a directory for platform specific Perl libraries, which we need to ask Perl at build-time.

And the standard way to say that is to do:

	use lib '@@INSTLIBDIR@@';

but that always prepends the directory to the search path, and the ugly stuff is to allow test scripts to override it when needed.

#12 lore raw
In reply to Petr Baudis
Quoted 10 lines · Petr Baudis

Dear diary, on Wed, Jun 28, 2006 at 12:05:03PM CEST, I got a letter where Pavel Roskin <[email protected]> said that...

I feel that it is time for another stupid question of mine - why can't you just use lib?

	use lib ('@@INSTLIBDIR@@');

Looks a lot better than some @INC unshifting, and it should be equivalent.

I honestly have no idea. I think whatever gets you closer to the satisfaction of the "three conditions" should be used.

Signature · 2 lines
Regards,
Pavel Roskin
#13 lore raw
In reply to Junio C Hamano

Hi,

Quoted 2 lines · Junio C Hamano

Immediately after 1.4.1 happens, I would like to pull in "Git.xs/Git.pm" series by Pasky into "next".

Earlier, you said that this is primarily for gitweb, not so much for the core of git. But...

Quoted 2 lines

Breakage there would stop your "git pull" working, so this is somewhat important.

May I respectfully offer my objection? This is the _heart_ of git. You do not want to muck around with this.

I am not opposed to a sane interface between Perl and git, but please please PLEASE do not make such an important part of git dependent on Git.pm. (Somehow I have the impressions there are echoes here.)

Ciao,
Dscho

#14 lore raw

Hi,

on my iBook, make in pu outputs:

GIT_VERSION = 1.4.1.rc1.gf5d3
* new build flags or prefix

(cd perl && /usr/bin/perl Makefile.PL \
     PREFIX='/Users/gene099' \
     DEFINE=' -I/sw/include -DSHA1_HEADER='\''<openssl/sha.h>'\'' 

-DNO_STRCASESTR -DNO_STRLCPY -DGIT_VERSION='\''"1.4.1.rc1.gf5d3"'\''' \
LIBS=' -L/sw/lib -lz -liconv -lcrypto -lssl')
Can't locate Devel/PPPort.pm in @INC (@INC contains:
/System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl .) at Makefile.PL line 29. BEGIN failed--compilation aborted at Makefile.PL line 29.
make: *** [perl/Makefile] Error 2

FWIW all Perl scripts in git, except git-send-email, work here.

Ciao,
Dscho

#15 lore raw
Quoted 18 lines · Johannes Schindelin

Hi,

on my iBook, make in pu outputs:

GIT_VERSION = 1.4.1.rc1.gf5d3
* new build flags or prefix

(cd perl && /usr/bin/perl Makefile.PL \
     PREFIX='/Users/gene099' \
     DEFINE=' -I/sw/include -DSHA1_HEADER='\''<openssl/sha.h>'\'' 

-DNO_STRCASESTR -DNO_STRLCPY -DGIT_VERSION='\''"1.4.1.rc1.gf5d3"'\''' \
LIBS=' -L/sw/lib -lz -liconv -lcrypto -lssl')
Can't locate Devel/PPPort.pm in @INC (@INC contains:
/System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl .) at Makefile.PL line 29. BEGIN failed--compilation aborted at Makefile.PL line 29.
make: *** [perl/Makefile] Error 2

Quoted 1 line

FWIW all Perl scripts in git, except git-send-email, work here.

I suspect git-fmt-merge-msg doesn't, and perhaps git-mv.

#16 lore raw

Hi,

Quoted 20 lines · Junio C Hamano
Quoted 18 lines · Johannes Schindelin

Hi,

on my iBook, make in pu outputs:

GIT_VERSION = 1.4.1.rc1.gf5d3
* new build flags or prefix

(cd perl && /usr/bin/perl Makefile.PL \
     PREFIX='/Users/gene099' \
     DEFINE=' -I/sw/include -DSHA1_HEADER='\''<openssl/sha.h>'\'' 

-DNO_STRCASESTR -DNO_STRLCPY -DGIT_VERSION='\''"1.4.1.rc1.gf5d3"'\''' \
LIBS=' -L/sw/lib -lz -liconv -lcrypto -lssl')
Can't locate Devel/PPPort.pm in @INC (@INC contains:
/System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl .) at Makefile.PL line 29. BEGIN failed--compilation aborted at Makefile.PL line 29.
make: *** [perl/Makefile] Error 2

Quoted 3 lines
Quoted 1 line

FWIW all Perl scripts in git, except git-send-email, work here.

I suspect git-fmt-merge-msg doesn't, and perhaps git-mv.

Last time I checked, git-mv worked (couple of weeks ago). And if I am not mistaken, git-fmt-merge-msg is needed when git-pull does not fast forward? I definitely successfully merged on my iBook, IIRC last time was last week.

BTW: Devel/PPPort.pm is introduced by this line in perl/Git.xs:

Quoted 1 line

#include "ppport.h"

Ciao,
Dscho

#17 lore raw

PATCH 1/1 Git.pm: Avoid ppport.h

In reply to Johannes Schindelin

Hi,

Dear diary, on Wed, Jun 28, 2006 at 09:39:46AM CEST, I got a letter where Johannes Schindelin <[email protected]> said that...

Quoted 7 lines

on my iBook, make in pu outputs:

GIT_VERSION = 1.4.1.rc1.gf5d3
* new build flags or prefix

(cd perl && /usr/bin/perl Makefile.PL \
     PREFIX='/Users/gene099' \
     DEFINE=' -I/sw/include -DSHA1_HEADER='\''<openssl/sha.h>'\'' 
Quoted 8 lines

-DNO_STRCASESTR -DNO_STRLCPY -DGIT_VERSION='\''"1.4.1.rc1.gf5d3"'\''' \
LIBS=' -L/sw/lib -lz -liconv -lcrypto -lssl')
Can't locate Devel/PPPort.pm in @INC (@INC contains:
/System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl .) at Makefile.PL line 29. BEGIN failed--compilation aborted at Makefile.PL line 29.
make: *** [perl/Makefile] Error 2

ow, Devel::PPPort might not be around all the way back to 5.6.0. What
is your Perl version, BTW?

->8-

This makes us not include ppport.h which seems not to give us anything real anyway; it is useful for checking for portability warts but since Devel::PPPort is a portability wart itself, we shouldn't require it for build. You can check for portability problems by calling make check in perl/.

---

 perl/Git.xs      |    2 --
 perl/Makefile.PL |   10 +++++-----
 2 files changed, 5 insertions(+), 7 deletions(-)
perl/Git.xs +0 -2
index cb23261..51bfac3 100644
@@ -15,8 +15,6 @@ #include "EXTERN.h"
 #include "perl.h"
 #include "XSUB.h"
 
-#include "ppport.h"
-
 #undef die
 
 
perl/Makefile.PL +5 -5
index 25ae54a..97ee9af 100644
@@ -5,6 +5,11 @@ sub MY::postamble {
 instlibdir:
 	@echo '$(INSTALLSITEARCH)'
 
+check:
+	perl -MDevel::PPPort -le 'Devel::PPPort::WriteFile(".ppport.h")' && \
+	perl .ppport.h --compat-version=5.6.0 Git.xs && \
+	rm .ppport.h
+
 MAKE_FRAG
 }
 
@@ -24,8 +29,3 @@ WriteMakefile(
 	MYEXTLIB        => '../libgit.a',
 	INC             => '-I. -I..',
 );
-
-
-use Devel::PPPort;
-
--s 'ppport.h' or Devel::PPPort::WriteFile();
Signature · 4 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Snow falling on Perl. White noise covering line noise.
Hides all the bugs too. -- J. Putnam
#18 lore raw

Re: [PATCH] Git.pm: Avoid ppport.h

Hi,

Quoted 2 lines · Petr Baudis

ow, Devel::PPPort might not be around all the way back to 5.6.0. What
is your Perl version, BTW?

This is perl, v5.6.0 built for darwin

Quoted 3 lines

This makes us not include ppport.h which seems not to give us anything real anyway; it is useful for checking for portability warts but since Devel::PPPort is a portability wart itself, we shouldn't require it for build.

Why do people introduce a "portability enhancer" like that? This is soo dumb.

Well, your patch helped. Now the error is somewhere else:

mkdir blib
mkdir blib/lib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/Git
mkdir blib/lib/auto
mkdir blib/lib/auto/Git
mkdir blib/man3
cp private-Error.pm blib/lib/Error.pm
cp Git.pm blib/lib/Git.pm
/usr/bin/perl -I/System/Library/Perl/darwin -I/System/Library/Perl /System/Library/Perl/ExtUtils/xsubpp -typemap /System/Library/Perl/ExtUtils/typemap Git.xs > Git.xsc && mv Git.xsc Git.c
Error: 'const char *' not in typemap in Git.xs, line 69
Error: 'const char *' not in typemap in Git.xs, line 79
make: *** [Git.c] Error 1

It seems like my typemap starts like this:

-- snip --
# $Header: /cvs/Darwin/src/live/perl/perl/lib/ExtUtils/typemap,v 1.2 2002/03/14
08:58:22 zarzycki Exp $

# basic C types
int                     T_IV
unsigned                T_UV
unsigned int            T_UV
long                    T_IV
unsigned long           T_UV
short                   T_IV
unsigned short          T_UV
char                    T_CHAR
unsigned char           T_U_CHAR
char *                  T_PV
unsigned char *         T_PV
caddr_t                 T_PV
wchar_t *               T_PV
wchar_t                 T_IV
bool_t                  T_IV
size_t                  T_IV
ssize_t                 T_IV
time_t                  T_NV
-- snap --

So, no "const char *". See next mail for a minimal patch. The warning (IIRC that was mentioned already on the list) still persists:

cc -c -I. -I.. -g -pipe -pipe -fno-common -no-cpp-precomp -flat_namespace
-DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -Os -DVERSION=\"0.01\"
-DXS_VERSION=\"0.01\" -I/System/Library/Perl/darwin/CORE -I/sw/include -DSHA1_HEADER='<openssl/sha.h>' -DNO_STRCASESTR -DNO_STRLCPY -DGIT_VERSION='"1.4.1.g3b26"' Git.c
In file included from /System/Library/Perl/darwin/CORE/perl.h:500,

                 from Git.xs:15:

/System/Library/Perl/darwin/CORE/embed.h:156:1: warning: "die" redefined Git.xs:11:1: warning: this is the location of the previous definition

Ciao,
Dscho

#19 lore raw

Re: [PATCH] Git.pm: Avoid ppport.h

Quoted 6 lines · Johannes Schindelin
Quoted 3 lines

This makes us not include ppport.h which seems not to give us anything real anyway; it is useful for checking for portability warts but since Devel::PPPort is a portability wart itself, we shouldn't require it for build.

Why do people introduce a "portability enhancer" like that? This is soo dumb.

I think that statement is a bit too harsh.

My understanding is that it's more for use by developers working with later version to produce portability headers, so used that way it is very sane. From its manual page:

How to use ppport.h

Don't direct the users of your module to download "Devel::PPPort". They are most probably no XS writers. Also, don't make ppport.h optional. Rather, just take the most recent copy of ppport.h that you can find (e.g. by generating it with the latest "Devel::PPPort" release from CPAN), copy it into your project, adjust your project to use it, and distribute the header along with your module.

But in the case of source distribution, and if the source distribution wants to be compatible with older versions, the above advice does not apply.

Quoted 7 lines

Error: 'const char *' not in typemap in Git.xs, line 69
Error: 'const char *' not in typemap in Git.xs, line 79
make: *** [Git.c] Error 1

It seems like my typemap starts like this:
...
So, no "const char *". See next mail for a minimal patch.

An alternative would be to carry our own typemap but I think your fix is less intrusive and fine. Pasky?

Quoted 9 lines

The warning
(IIRC that was mentioned already on the list) still persists:

cc -c -I. -I.. -g -pipe -pipe -fno-common -no-cpp-precomp -flat_namespace

(quoted diff) +0 -4
-DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -Os     -DVERSION=\"0.01\" 
-DXS_VERSION=\"0.01\"  -I/System/Library/Perl/darwin/CORE -I/sw/include 
-DSHA1_HEADER='<openssl/sha.h>' -DNO_STRCASESTR -DNO_STRLCPY 
-DGIT_VERSION='"1.4.1.g3b26"' Git.c

In file included from /System/Library/Perl/darwin/CORE/perl.h:500,

Quoted 3 lines
                 from Git.xs:15:

/System/Library/Perl/darwin/CORE/embed.h:156:1: warning: "die" redefined Git.xs:11:1: warning: this is the location of the previous definition

I see the same here.

#20 lore raw

PATCH 1/1 Git.pm: Don't #define around die

Dear diary, on Sun, Jul 02, 2006 at 09:05:33PM CEST, I got a letter where Junio C Hamano <[email protected]> said that...

Quoted 11 lines
Quoted 7 lines · Johannes Schindelin

Error: 'const char *' not in typemap in Git.xs, line 69
Error: 'const char *' not in typemap in Git.xs, line 79
make: *** [Git.c] Error 1

It seems like my typemap starts like this:
...
So, no "const char *". See next mail for a minimal patch.

An alternative would be to carry our own typemap but I think your fix is less intrusive and fine. Pasky?

Yes, it should be fine.

Quoted 14 lines
Quoted 9 lines

The warning
(IIRC that was mentioned already on the list) still persists:

cc -c -I. -I.. -g -pipe -pipe -fno-common -no-cpp-precomp -flat_namespace

(quoted diff) +0 -4
-DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -Os     -DVERSION=\"0.01\" 
-DXS_VERSION=\"0.01\"  -I/System/Library/Perl/darwin/CORE -I/sw/include 
-DSHA1_HEADER='<openssl/sha.h>' -DNO_STRCASESTR -DNO_STRLCPY 
-DGIT_VERSION='"1.4.1.g3b26"' Git.c

In file included from /System/Library/Perl/darwin/CORE/perl.h:500,

Quoted 3 lines
                 from Git.xs:15:

/System/Library/Perl/darwin/CORE/embed.h:156:1: warning: "die" redefined Git.xs:11:1: warning: this is the location of the previous definition

I see the same here.

-8<-

Back in the old days, we called Git's die() from the .xs code, but we had to hijack Perl's die() for that. Now we don't call Git's die() so no need to do the hijacking and it silences a compiler warning.

---

 perl/Git.xs |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
perl/Git.xs +0 -4
index 51bfac3..1e6c1eb 100644
@@ -8,15 +8,11 @@ #include <ctype.h>
 #include "../cache.h"
 #include "../exec_cmd.h"
 
-#define die perlyshadow_die__
-
 /* XS and Perl interface */
 #include "EXTERN.h"
 #include "perl.h"
 #include "XSUB.h"
 
-#undef die
-
 
 static char *
 report_xs(const char *prefix, const char *err, va_list params)
Signature · 4 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Snow falling on Perl. White noise covering line noise.
Hides all the bugs too. -- J. Putnam
#21 lore raw

Making perl scripts include the correct Git.pm

Hi,

the discussion of the topic became so scatterred that it's rather
difficult to follow now and I get a feeling that we are kind of running in circles now, so this is my attempt to summarize it:

Desired behaviour when running Git's perl scripts (ordered by
degree of necessity):

(D1) When running installed script, it should include Git.pm from the
same installation.

(D2) When running the testsuite, it should include Git.pm from the
source tree.

(D3) When running script directly from source tree, it should include
Git.pm from the source tree.

(i) The original solution passed -I on the #!/usr/bin/perl line, but
that was ugly, was prone to hit various OS limits on the shebang line and violated both (D2) and (D3).

(ii) My proposed second solution was to add an autogenerated line to
the Git's perl scripts saying something like:

	use lib ('instlibdir', 'srclibdir');

This fulfills all (D1), (D2) and (D3), but is perceived by Junio as "disgusting".

(iii) The currently used solution is to effectively

	use lib ('instlibdir');

to the Git's perl scripts. This violated (D3) and (D2) too, since use lib is the last from all the @INC modifiers to be seen and thus overrides and $PERL5LIB set in the testsuite.

(iv) Variation of (iii), probably Junio's original intention when
implementing it:

	push @INC, 'instlibdir';

This fulfills (D2). It does not fulfill (D3) per se since the user has to set $PERL5LIB manually when running Git without installing it, but it is at least fulfillable. However, most importantly this does not even fulfill (D1) since if you e.g. consider user-local installation of Git over system-wide installation of Git, local perl scripts will use the globally installed Git.pm.

(v) If you throw away user-friendly (D3) requirement and insist
on (iii) being disgusting, this is a newly proposed possible variation "(iv) meets (i)":

	#!/usr/bin/perl -Imarker
	@INC = map { $_ eq 'marker' ? 'instlibdir' : $_ } @INC;

(I think this is more disgusting than (iii), but tastes differ. ;)

So, what's the way out?

PS: Is this the only remaining problem with Git.pm or do we have
anything else to cope with, esp. before it gets considered to be a next material?

Signature · 4 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Snow falling on Perl. White noise covering line noise.
Hides all the bugs too. -- J. Putnam
#22 lore raw

Re: Making perl scripts include the correct Git.pm

Quoted 1 line · Petr Baudis

so this is my attempt to summarize it:

Ah, our message crossed -- thanks for summarizing it. I do not particularly like any of the solution so far, but maybe the patch I just sent out to "do the normal thing unless we are running tests" might be the right thing to do.

Quoted 6 lines

(ii) My proposed second solution was to add an autogenerated line to
the Git's perl scripts saying something like:

	use lib ('instlibdir', 'srclibdir');

This fulfills all (D1), (D2) and (D3)

If you have srclibdir after instlibdir, aren't you breaking D2?

And I do not think swapping them is right either. It would fullfil D1/D2/D3 but I think it has one bad side effect.

Namely, I do not want an installed script, maybe coming from the vendor, to be affected by whatever unrelated garbage the end user happens to have on the same path as the one used for building the module on potentially remote machine, so I would like to avoid including srclibdir anywhere on the include path for normal execution.

That is, if I built a binary package in /home/junio/git/git.git on my machine to be installed in /usr/lib/perl/somewhere, the users on a multi-user system can be tricked to run random stuff that happens to be in /home/junio/git/git.git/ directory on their machine.

#23 lore raw

Dear diary, on Mon, Jul 03, 2006 at 02:02:30AM CEST, I got a letter where Junio C Hamano <[email protected]> said that...

Quoted 8 lines
Quoted 1 line · Petr Baudis

so this is my attempt to summarize it:

Ah, our message crossed -- thanks for summarizing it. I do not particularly like any of the solution so far, but maybe the patch I just sent out to "do the normal thing unless we are running tests" might be the right thing to do.

Yes, I roughly agree. I have some gripes, patches will follow.

Quoted 8 lines
Quoted 6 lines

(ii) My proposed second solution was to add an autogenerated line to
the Git's perl scripts saying something like:

	use lib ('instlibdir', 'srclibdir');

This fulfills all (D1), (D2) and (D3)

If you have srclibdir after instlibdir, aren't you breaking D2?

*Sigh*

Why can't I get it right for once? ;-)

Quoted 2 lines

And I do not think swapping them is right either. It would fullfil D1/D2/D3 but I think it has one bad side effect.

Yes, I agree with your reservations.

Signature · 4 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Snow falling on Perl. White noise covering line noise.
Hides all the bugs too. -- J. Putnam
#24 lore raw

PATCH 1/1 Use $GITPERLLIB instead of $RUNNING_GIT_TESTS and centralize @INC munging

This makes the Git perl scripts check $GITPERLLIB instead of $RUNNING_GIT_TESTS, which makes more sense if you are setting up your shell environment to use a non-installed Git instance.

It also weeds out the @INC munging from the individual scripts and makes Makefile add it during the .perl files processing, so that we can change just a single place when we modify this shared logic. It looks ugly in the scripts, too. ;-)

And instead of doing arcane things with the @INC array, we just do 'use lib' instead, which is essentialy the same thing anyway.

I first want to do three separate patches but it turned out that it's quite a lot neater when bundled together, so I hope it's ok.

---

 INSTALL                |    4 ++--
 Makefile               |    4 +++-
 git-fmt-merge-msg.perl |    5 -----
 git-mv.perl            |    5 -----
 t/test-lib.sh          |    5 ++---
 5 files changed, 7 insertions(+), 16 deletions(-)
INSTALL +2 -2
index ed502de..4e8f883 100644
@@ -39,8 +39,8 @@ Issues of note:
 
 	GIT_EXEC_PATH=`pwd`
 	PATH=`pwd`:$PATH
-	PERL5LIB=`pwd`/perl/blib/lib:`pwd`/perl/blib/arch/auto/Git
-	export GIT_EXEC_PATH PATH PERL5LIB
+	GITPERLLIB=`pwd`/perl/blib/lib:`pwd`/perl/blib/arch/auto/Git
+	export GIT_EXEC_PATH PATH GITPERLLIB
 
  - Git is reasonably self-sufficient, but does depend on a few external
    programs and libraries:
Makefile +3 -1
index a62e8a3..bae95c2 100644
@@ -552,7 +552,9 @@ common-cmds.h: Documentation/git-*.txt
 $(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl
 	rm -f $@ $@+
 	INSTLIBDIR=`$(MAKE) -C perl -s --no-print-directory instlibdir` && \
-	sed -e '1s|#!.*perl\(.*\)|#!$(PERL_PATH_SQ)\1|' \
+	sed -e '1s|#!.*perl|#!$(PERL_PATH_SQ)|1' \
+	    -e '2i\
+	        use lib (split(/:/, $$ENV{GITPERLLIB} || '\'"$$INSTLIBDIR"\''));' \
 	    -e 's|@@INSTLIBDIR@@|'"$$INSTLIBDIR"'|g' \
 	    -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
 	    [email protected] >$@+
git-fmt-merge-msg.perl +0 -5
index a9805dd..f86231e 100755
@@ -5,11 +5,6 @@ #
 # Read .git/FETCH_HEAD and make a human readable merge message
 # by grouping branches and tags together to form a single line.
 
-BEGIN {
-	unless (exists $ENV{'RUNNING_GIT_TESTS'}) {
-		unshift @INC, '@@INSTLIBDIR@@';
-	}
-}
 use strict;
 use Git;
 use Error qw(:try);
git-mv.perl +0 -5
index 5134b80..322b9fd 100755
@@ -6,11 +6,6 @@ #
 # This file is licensed under the GPL v2, or a later version
 # at the discretion of Linus Torvalds.
 
-BEGIN {
-	unless (exists $ENV{'RUNNING_GIT_TESTS'}) {
-		unshift @INC, '@@INSTLIBDIR@@';
-	}
-}
 use warnings;
 use strict;
 use Getopt::Std;
t/test-lib.sh +2 -3
index 298c6ca..ad9796e 100755
@@ -206,9 +206,8 @@ PYTHON=`sed -e '1{
 	PYTHONPATH=$(pwd)/../compat
 	export PYTHONPATH
 }
-RUNNING_GIT_TESTS=YesWeAre
-PERL5LIB=$(pwd)/../perl/blib/lib:$(pwd)/../perl/blib/arch/auto/Git
-export PERL5LIB RUNNING_GIT_TESTS
+GITPERLLIB=$(pwd)/../perl/blib/lib:$(pwd)/../perl/blib/arch/auto/Git
+export GITPERLLIB
 test -d ../templates/blt || {
 	error "You haven't built things yet, have you?"
 }
#25 lore raw

Re: Making perl scripts include the correct Git.pm

In reply to Junio C Hamano
Quoted 8 lines · Junio C Hamano
Quoted 1 line · Petr Baudis

so this is my attempt to summarize it:

Ah, our message crossed -- thanks for summarizing it. I do not particularly like any of the solution so far, but maybe the patch I just sent out to "do the normal thing unless we are running tests" might be the right thing to do.

I see you caught Merlyn so I decided the patch I sent earlier as a tentative fix and merged the series in "next". We should be able to fix Perly problems in-tree while we have his attention ;-).

Rene's merge-bases fix is also in "next". Hopefully this would make merge-recursive work by Alex and Johannes go smoother?

On the other front, I applied the --remove-empty --parents fix by Linus to "master". Since this broke gitk and qgit it might warrant a 1.4.1.1 hotfix.

#26 lore raw

Re: Making perl scripts include the correct Git.pm

Quoted 6 lines · Junio C Hamano

Junio C Hamano <[email protected]> writes:

On the other front, I applied the --remove-empty --parents fix by Linus to "master". Since this broke gitk and qgit it might warrant a 1.4.1.1 hotfix.

Well on the qgit side the bug is plus or less harmless, you see some spurious revisions in file annotation history and a warning message on stderr, but not a show stopper.

Marco