Skip to contentSkip to conversation

Git.pm: Kill Git.xs for now

PATCH In review Petr Baudis 3 participants 7 messages Jun 15, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Git.pm: Kill Git.xs for now

This patch removes Git.xs from the repository for the time being. This should hopefully enable Git.pm to finally make its way to master.

Git.xs is not going away forever. When the Git libification makes some progress, it will hopefully return (but most likely as an optional component, due to the portability woes) since the performance boosts are really important for applications like Gitweb or Cogito. It needs to go away now since it is not really reliable in case you use it for several repositories in the scope of a single process, and that is not possible to fix without some either very ugly or very intrusive core changes.

Rest in peace. (While you can.)

---

 Makefile         |   17 ++-----
 perl/.gitignore  |    3 -
 perl/Git.pm      |   76 ++++---------------------------
 perl/Git.xs      |  134 ------------------------------------------------------
 perl/Makefile.PL |    9 ----
 5 files changed, 15 insertions(+), 224 deletions(-)
Makefile +5 -12
index dd74908..58848e4 100644
@@ -116,8 +116,6 @@ PIC_FLAG = -fPIC
 LDFLAGS =
 ALL_CFLAGS = $(CFLAGS)
 ALL_LDFLAGS = $(LDFLAGS)
-PERL_CFLAGS =
-PERL_LDFLAGS =
 STRIP ?= strip
 
 prefix = $(HOME)
@@ -158,9 +156,10 @@ SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powe
 ### --- END CONFIGURATION SECTION ---
 
 # Those must not be GNU-specific; they are shared with perl/ which may
-# be built by a different compiler.
-BASIC_CFLAGS = $(PERL_CFLAGS)
-BASIC_LDFLAGS = $(PERL_LDFLAGS)
+# be built by a different compiler. (Note that this is an artifact now
+# but it still might be nice to keep that distinction.)
+BASIC_CFLAGS = 
+BASIC_LDFLAGS = 
 
 SCRIPT_SH = \
 	git-bisect.sh git-branch.sh git-checkout.sh \
@@ -784,15 +783,9 @@ XDIFF_OBJS=xdiff/xdiffi.o xdiff/xprepare
 	rm -f $@ && $(AR) rcs $@ $(XDIFF_OBJS)
 
 
-PERL_DEFINE = $(BASIC_CFLAGS) -DGIT_VERSION='"$(GIT_VERSION)"'
-PERL_DEFINE_SQ = $(subst ','\'',$(PERL_DEFINE))
-PERL_LIBS = $(BASIC_LDFLAGS) $(EXTLIBS)
-PERL_LIBS_SQ = $(subst ','\'',$(PERL_LIBS))
 perl/Makefile: perl/Git.pm perl/Makefile.PL GIT-CFLAGS
 	(cd perl && $(PERL_PATH) Makefile.PL \
-		PREFIX='$(prefix_SQ)' \
-		DEFINE='$(PERL_DEFINE_SQ)' \
-		LIBS='$(PERL_LIBS_SQ)')
+		PREFIX='$(prefix_SQ)')
 
 doc:
 	$(MAKE) -C Documentation all
perl/.gitignore +0 -3
index 6d778f3..e990cae 100644
@@ -1,7 +1,4 @@
-Git.bs
-Git.c
 Makefile
 blib
 blibdirs
 pm_to_blib
-ppport.h
perl/Git.pm +9 -67

129 lines not on this page · raw message

perl/Git.xs deleted +0 -134

134 lines not on this page · raw message

perl/Makefile.PL +1 -8
index ef9d82d..de73235 100644
@@ -3,12 +3,7 @@ use ExtUtils::MakeMaker;
 sub MY::postamble {
 	return <<'MAKE_FRAG';
 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
+	@echo '$(INSTALLSITELIB)'
 
 MAKE_FRAG
 }
@@ -29,7 +24,5 @@ WriteMakefile(
 	NAME            => 'Git',
 	VERSION_FROM    => 'Git.pm',
 	PM		=> \%pm,
-	MYEXTLIB        => '../libgit.a',
-	INC             => '-I. -I..',
 	%extra
 );
#1 lore raw
Quoted 2 lines · Petr Baudis

This patch removes Git.xs from the repository for the time being. This should hopefully enable Git.pm to finally make its way to master.

It's a bit sad, but I think this is a sane thing to do.

I suspect Alex still has problem with Makefile.PL due to issues around ActiveState (slash vs bs and CRLF line ending if I recall correctly)?

#2 lore raw

Junio C Hamano, Sun, Sep 24, 2006 12:38:22 +0200:

Quoted 11 lines
Quoted 2 lines · Petr Baudis

This patch removes Git.xs from the repository for the time being. This should hopefully enable Git.pm to finally make its way to master.

It's a bit sad, but I think this is a sane thing to do.

I suspect Alex still has problem with Makefile.PL due to issues around ActiveState (slash vs bs and CRLF line ending if I recall correctly)?

Absolutely.

#3 lore raw

Dear diary, on Sun, Sep 24, 2006 at 12:50:16PM CEST, I got a letter where Alex Riesen <[email protected]> said that...

Quoted 6 lines

Junio C Hamano, Sun, Sep 24, 2006 12:38:22 +0200:

Quoted 5 lines
Quoted 2 lines · Petr Baudis

This patch removes Git.xs from the repository for the time being. This should hopefully enable Git.pm to finally make its way to master.

Quoted 8 lines
Quoted 6 lines

It's a bit sad, but I think this is a sane thing to do.

I suspect Alex still has problem with Makefile.PL due to issues around ActiveState (slash vs bs and CRLF line ending if I recall correctly)?

Absolutely.

I'm sorry but I don't even have a Windows installation on my machine and I don't intend to personally work on Windows support. If you need to keep ActiveState working seamlessly, please post patches. I hate to say it, but that's just how it should work - if someone cares about Git working on a non-mainstream (for Git audience) platform, he needs to maintain it, not ask the "core" developers do it. It's like if you withheld random kernel features because they break m68k and noone is around to fix it.

If someone cares, we'll get patches.

Signature · 5 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
#4 lore raw

Petr Baudis, Sun, Sep 24, 2006 13:08:16 +0200:

Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 2 lines

This patch removes Git.xs from the repository for the time being. This should hopefully enable Git.pm to finally make its way to master.

It's a bit sad, but I think this is a sane thing to do.

I suspect Alex still has problem with Makefile.PL due to issues around ActiveState (slash vs bs and CRLF line ending if I recall correctly)?

Quoted 8 lines
Quoted 1 line

Absolutely.

I'm sorry but I don't even have a Windows installation on my machine and I don't intend to personally work on Windows support. If you need to keep ActiveState working seamlessly, please post patches. I hate to say it, but that's just how it should work - if someone cares about Git working on a non-mainstream (for Git audience) platform, he needs to maintain it, not ask the "core" developers do it. ...

Ain't asking you nor anyone. Ain't actually care, activetstate's perl being just another stupid windows program done badly. Can't promise, but will try to post my workarounds to that particular combination on list (never demanded to include them).
The original mail was more of a word of warning for anyone unhappy to work with the sh%t.

Aside from that, any chance of making Git.xs optional (enabled by default, but disableable)? Disabling Git.xs will disable related scripts, sure, but also gives you an installation with one external (libperl) dependency less (probably with ability to install git and Git.xs separately).

#5 lore raw

Alex Riesen, Sun, Sep 24, 2006 13:48:34 +0200:

Quoted 5 lines

Aside from that, any chance of making Git.xs optional (enabled by default, but disableable)? Disabling Git.xs will disable related scripts, sure, but also gives you an installation with one external (libperl) dependency less (probably with ability to install git and Git.xs separately).

I see that was already meantioned. Sorry, just have read the whole discussion.

#6 lore raw
In reply to Alex Riesen

Dear diary, on Sun, Sep 24, 2006 at 01:48:34PM CEST, I got a letter where Alex Riesen <[email protected]> said that...

Quoted 5 lines

Aside from that, any chance of making Git.xs optional (enabled by default, but disableable)? Disabling Git.xs will disable related scripts, sure, but also gives you an installation with one external (libperl) dependency less (probably with ability to install git and Git.xs separately).

Absolutely.

Actually, as I noted in the patch comment, if we reintroduce Git.xs again we should probably do it so that it is completely optional and the equivalent functionality is also implemented in Git.pm in pure perl + execing Git. I have been originally opposed to that but after all the woes we had to go through I have changed my opinion.

Signature · 5 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)