Git.pm: Support for perl/ being built by a different compiler
PATCH 1/1 Git.pm: Support for perl/ being built by a different compiler
dst_ on #git reported that on Solaris 9, Perl was built by Sun CC and perl/ is therefore being built with it as well, while the rest of Git is built with gcc. The problem (the first one visible, anyway) is that we passed perl/ even various gcc-specific options. This separates those to a special variable.
This is not really meant for an application yet since it's not clear if it will alone help anything.
---
Makefile | 66 ++++++++++++++++++++++++++++++++++++-------------------------- 1 files changed, 38 insertions(+), 28 deletions(-)
Makefile +38 -28
@@ -115,6 +115,11 @@ 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 = +BASIC_LDFLAGS = + SCRIPT_SH = \ git-bisect.sh git-branch.sh git-checkout.sh \ git-cherry.sh git-clean.sh git-clone.sh git-commit.sh \
@@ -249,13 +254,13 @@ ifeq ($(uname_S),Darwin) NEEDS_LIBICONV = YesPlease ## fink ifeq ($(shell test -d /sw/lib && echo y),y) - ALL_CFLAGS += -I/sw/include - ALL_LDFLAGS += -L/sw/lib + BASIC_CFLAGS += -I/sw/include + BASIC_LDFLAGS += -L/sw/lib endif ## darwinports ifeq ($(shell test -d /opt/local/lib && echo y),y) - ALL_CFLAGS += -I/opt/local/include - ALL_LDFLAGS += -L/opt/local/lib + BASIC_CFLAGS += -I/opt/local/include + BASIC_LDFLAGS += -L/opt/local/lib endif endif ifeq ($(uname_S),SunOS)
@@ -274,7 +279,7 @@ ifeq ($(uname_S),SunOS) endif INSTALL = ginstall TAR = gtar - ALL_CFLAGS += -D__EXTENSIONS__ + BASIC_CFLAGS += -D__EXTENSIONS__ endif ifeq ($(uname_O),Cygwin) NO_D_TYPE_IN_DIRENT = YesPlease
@@ -291,21 +296,22 @@ ifeq ($(uname_O),Cygwin) endif ifeq ($(uname_S),FreeBSD) NEEDS_LIBICONV = YesPlease - ALL_CFLAGS += -I/usr/local/include - ALL_LDFLAGS += -L/usr/local/lib + BASIC_CFLAGS += -I/usr/local/include + BASIC_LDFLAGS += -L/usr/local/lib endif ifeq ($(uname_S),OpenBSD) NO_STRCASESTR = YesPlease NEEDS_LIBICONV = YesPlease - ALL_CFLAGS += -I/usr/local/include - ALL_LDFLAGS += -L/usr/local/lib + BASIC_CFLAGS += -I/usr/local/include + BASIC_LDFLAGS += -L/usr/local/lib endif ifeq ($(uname_S),NetBSD) ifeq ($(shell expr "$(uname_R)" : '[01]\.'),2) NEEDS_LIBICONV = YesPlease endif - ALL_CFLAGS += -I/usr/pkg/include - ALL_LDFLAGS += -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib + BASIC_CFLAGS += -I/usr/pkg/include + BASIC_LDFLAGS += -L/usr/pkg/lib + ALL_LDFLAGS += -Wl,-rpath,/usr/pkg/lib endif ifeq ($(uname_S),AIX) NO_STRCASESTR=YesPlease
@@ -317,9 +323,9 @@ ifeq ($(uname_S),IRIX64) NO_STRCASESTR=YesPlease NO_SOCKADDR_STORAGE=YesPlease SHELL_PATH=/usr/gnu/bin/bash - ALL_CFLAGS += -DPATH_MAX=1024 + BASIC_CFLAGS += -DPATH_MAX=1024 # for now, build 32-bit version - ALL_LDFLAGS += -L/usr/lib32 + BASIC_LDFLAGS += -L/usr/lib32 endif ifneq (,$(findstring arm,$(uname_M))) ARM_SHA1 = YesPlease
@@ -340,7 +346,7 @@ endif ifndef NO_CURL ifdef CURLDIR # This is still problematic -- gcc does not always want -R. - ALL_CFLAGS += -I$(CURLDIR)/include + BASIC_CFLAGS += -I$(CURLDIR)/include CURL_LIBCURL = -L$(CURLDIR)/lib -R$(CURLDIR)/lib -lcurl else CURL_LIBCURL = -lcurl
@@ -361,13 +367,13 @@ ifndef NO_OPENSSL OPENSSL_LIBSSL = -lssl ifdef OPENSSLDIR # Again this may be problematic -- gcc does not always want -R. - ALL_CFLAGS += -I$(OPENSSLDIR)/include + BASIC_CFLAGS += -I$(OPENSSLDIR)/include OPENSSL_LINK = -L$(OPENSSLDIR)/lib -R$(OPENSSLDIR)/lib else OPENSSL_LINK = endif else - ALL_CFLAGS += -DNO_OPENSSL + BASIC_CFLAGS += -DNO_OPENSSL MOZILLA_SHA1 = 1 OPENSSL_LIBSSL = endif
@@ -379,7 +385,7 @@ endif ifdef NEEDS_LIBICONV ifdef ICONVDIR # Again this may be problematic -- gcc does not always want -R. - ALL_CFLAGS += -I$(ICONVDIR)/include + BASIC_CFLAGS += -I$(ICONVDIR)/include ICONV_LINK = -L$(ICONVDIR)/lib -R$(ICONVDIR)/lib else ICONV_LINK =
@@ -395,13 +401,13 @@ ifdef NEEDS_NSL SIMPLE_LIB += -lnsl endif ifdef NO_D_TYPE_IN_DIRENT - ALL_CFLAGS += -DNO_D_TYPE_IN_DIRENT + BASIC_CFLAGS += -DNO_D_TYPE_IN_DIRENT endif ifdef NO_D_INO_IN_DIRENT - ALL_CFLAGS += -DNO_D_INO_IN_DIRENT + BASIC_CFLAGS += -DNO_D_INO_IN_DIRENT endif ifdef NO_SYMLINK_HEAD - ALL_CFLAGS += -DNO_SYMLINK_HEAD + BASIC_CFLAGS += -DNO_SYMLINK_HEAD endif ifdef NO_STRCASESTR COMPAT_CFLAGS += -DNO_STRCASESTR
@@ -420,13 +426,13 @@ ifdef NO_MMAP COMPAT_OBJS += compat/mmap.o endif ifdef NO_IPV6 - ALL_CFLAGS += -DNO_IPV6 + BASIC_CFLAGS += -DNO_IPV6 endif ifdef NO_SOCKADDR_STORAGE ifdef NO_IPV6 - ALL_CFLAGS += -Dsockaddr_storage=sockaddr_in + BASIC_CFLAGS += -Dsockaddr_storage=sockaddr_in else - ALL_CFLAGS += -Dsockaddr_storage=sockaddr_in6 + BASIC_CFLAGS += -Dsockaddr_storage=sockaddr_in6 endif endif ifdef NO_INET_NTOP
@@ -434,7 +440,7 @@ ifdef NO_INET_NTOP endif ifdef NO_ICONV - ALL_CFLAGS += -DNO_ICONV + BASIC_CFLAGS += -DNO_ICONV endif ifdef PPC_SHA1
@@ -458,7 +464,7 @@ ifdef USE_PIC ALL_CFLAGS += -fPIC endif ifdef NO_ACCURATE_DIFF - ALL_CFLAGS += -DNO_ACCURATE_DIFF + BASIC_CFLAGS += -DNO_ACCURATE_DIFF endif # Shell quote (do not use $(call) to accomodate ancient setups);
@@ -478,8 +484,12 @@ GIT_PYTHON_DIR_SQ = $(subst ','\'',$(GIT LIBS = $(GITLIBS) $(EXTLIBS) -ALL_CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER_SQ)' $(COMPAT_CFLAGS) +BASIC_CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER_SQ)' $(COMPAT_CFLAGS) LIB_OBJS += $(COMPAT_OBJS) + +ALL_CFLAGS += $(BASIC_CFLAGS) +ALL_LDFLAGS += $(BASIC_LDFLAGS) + export prefix TAR INSTALL DESTDIR SHELL_PATH template_dir
@@ -608,9 +618,9 @@ XDIFF_OBJS=xdiff/xdiffi.o xdiff/xprepare rm -f $@ && $(AR) rcs $@ $(XDIFF_OBJS) -PERL_DEFINE = $(ALL_CFLAGS) -DGIT_VERSION='"$(GIT_VERSION)"' +PERL_DEFINE = $(BASIC_CFLAGS) -DGIT_VERSION='"$(GIT_VERSION)"' PERL_DEFINE_SQ = $(subst ','\'',$(PERL_DEFINE)) -PERL_LIBS = $(EXTLIBS) +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 \
Quoted 8 lines · Petr Baudis
dst_on #git reported that on Solaris 9, Perl was built by Sun CC and perl/ is therefore being built with it as well, while the rest of Git is built with gcc. The problem (the first one visible, anyway) is that we passed perl/ even various gcc-specific options. This separates those to a special variable.This is not really meant for an application yet since it's not clear if it will alone help anything.
Do things link and work fine if we do not have the GCC specific options?
I would question why the rest of git is not built with Sun CC as well if that is the case.
Dear diary, on Sun, Jun 25, 2006 at 05:14:09AM CEST, I got a letter where Junio C Hamano <[email protected]> said that...
Quoted 3 lines
Quoted 2 lines · Petr Baudis
This is not really meant for an application yet since it's not clear if it will alone help anything.
It appears that it did have helped and all went well, according to dst_.
Quoted 2 lines
I would question why the rest of git is not built with Sun CC as well if that is the case.
< dst_> Three points: (1) Gcc comes along with solaris, sun cc not.
< dst_> (2) Git used a lot of GCC'isms whan I last checked a few weeks ago
< dst_> (3) a lot of other software will not ompile out of the box with suncc, so gcc is usually the safer choice
Of course (1) is troublesome since this means you can't build Git on Solaris without installing Sun CC - I have no other answer to this than that Solaris is horribly broken. :-( Perhaps ExtUtils::MakeMaker could be convinced to build with gcc, I'm not sure.
Signature · 3 lines
Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ A person is just about as big as the things that make them angry.
Quoted 2 lines · Junio C Hamano
Do things link and work fine if we do not have the GCC specific options?
Yes, with this patch I can compile Git with GCC while the Perl module gets built with Sun CC. The result even works.
If the git commands written in Perl will be converted to use Git.pm, Sun CC will become a new dependency for Git on Solaris, unless people build a separate Perl with GCC or manually edit the generated Makefile in the perl subdir to build the module with GCC.
Quoted 2 lines
I would question why the rest of git is not built with Sun CC as well if that is the case.
Well, GCC comes along with Solaris on the CDs while Sun CC is a separate product. And usually it's easier to build free software with GCC, because many projects use GCC extensions. Often GCC is the only compiler installed on Solaris machines.
Until the patch series from Florian Forster removed a lot of GCC'isms a few days ago it was not possible to build Git with Sun CC.
Yesterday I could build the next branch with Sun CC 5.8 with a few trivial changes. I will send four patches in reply to this mail.
Junio, please consider the first two patches for inclusion into the next branch. The third patch is on top of Pasky's changes in the pu branch. The fourth patch is a strange workaround for a strange problem of which I think it is an error in Sun's compiler. That one should not make its way into Git, but maybe someone on the list has an idea about the problem.
Regards,
Dennis
PATCH 1/1 Solaris needs inclusion of signal.h for signal()
Currently the compilation fails in connect.c and merge-index.c
---
connect.c | 1 + merge-index.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
connect.c +1 -0
@@ -8,6 +8,7 @@ #include <sys/socket.h>#include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> +#include <signal.h> static char *server_capabilities =NULL ;
merge-index.c +1 -0
@@ -1,5 +1,6 @@#include <sys/types.h> #include <sys/wait.h> +#include <signal.h> #include "cache.h"
Signature · 1 line
1.4.0.g64e8
PATCH 1/1 Fix pkt-line.h to compile with a non-GCC compiler
In reply to Dennis Stosbergpkt-line.h uses GCC's __attribute__ extension but does not include git-compat-util.h. So it will not compile with a compiler that does not support this extension.
--- pkt-line.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
pkt-line.h +2 -0
@@ -1,6 +1,8 @@#ifndef PKTLINE_H #define PKTLINE_H +#include "git-compat-util.h" +/* * Silly packetized line writing interface */
Signature · 1 line
1.4.0.g64e8
PATCH 1/1 "test" in Solaris' /bin/sh does not support -e
In reply to Dennis StosbergRunning "make clean" currently fails:
[ ! -e perl/Makefile ] || make -C perl/ clean
/bin/sh: test: argument expected
make: *** [clean] Error 1
---
Pasky said in #git that a simple -f test would suffice.
Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile +1 -1
@@ -761,7 +761,7 @@ clean: rm -f $(GIT_TARNAME).tar.gz git-core_$(GIT_VERSION)-*.tar.gz rm -f $(htmldocs).tar.gz $(manpages).tar.gz $(MAKE) -C Documentation/ clean - [ ! -e perl/Makefile ] || $(MAKE) -C perl/ clean || $(MAKE) -C perl/ clean + [ ! -f perl/Makefile ] || $(MAKE) -C perl/ clean || $(MAKE) -C perl/ clean $(MAKE) -C templates/ clean $(MAKE) -C t/ clean rm -f GIT-VERSION-FILE GIT-CFLAGS
--
1.4.0
Re: [PATCH] "test" in Solaris' /bin/sh does not support -e
Quoted 4 lines · Dennis Stosberg
Running "make clean" currently fails:
[ ! -e perl/Makefile ] || make -C perl/ clean
/bin/sh: test: argument expected
make: *** [clean] Error 1
Ah, _BAD_. We seem to have the same in git-branch, git-checkout, git-clone and git-tag. You would probably need this on top of "master".
-- >8 --
shell scripts: Avoid non-portable "test -e" where possible.
---
git-branch.sh +2 -2
@@ -112,7 +112,7 @@ rev=$(git-rev-parse --verify "$head") || git-check-ref-format "heads/$branchname" || die "we do not like '$branchname' as a branch name." -if [ -e "$GIT_DIR/refs/heads/$branchname" ] +if test -f "$GIT_DIR/refs/heads/$branchname" then if test '' = "$force" then
@@ -124,7 +124,7 @@ then fi if test "$create_log" = 'yes' then - mkdir -p $(dirname "$GIT_DIR/logs/refs/heads/$branchname") + mkdir -p "$(dirname "$GIT_DIR/logs/refs/heads/$branchname")" touch "$GIT_DIR/logs/refs/heads/$branchname" fi git update-ref -m "branch: Created from $head" "refs/heads/$branchname" $rev
git-checkout.sh +1 -1
@@ -22,7 +22,7 @@ while [ "$#" != "0" ]; do shift [ -z "$newbranch" ] && die "git checkout: -b needs a branch name" - [ -e "$GIT_DIR/refs/heads/$newbranch" ] && + [ -f "$GIT_DIR/refs/heads/$newbranch" ] && die "git checkout: branch $newbranch already exists" git-check-ref-format "heads/$newbranch" || die "git checkout: we do not like '$newbranch' as a branch name."
git-clone.sh +1 -1
@@ -202,7 +202,7 @@ fi dir="$2" # Try using "humanish" part of source repo if user didn't specify one [ -z "$dir" ] && dir=$(echo "$repo" | sed -e 's|/$||' -e 's|:*/*\.git$||' -e 's|.*[/:]||g') -[ -e "$dir" ] && echo "$dir already exists." && usage +[ -d "$dir" ] && echo "$dir already exists." && usage mkdir -p "$dir" && D=$(cd "$dir" && pwd) && trap 'err=$?; cd ..; rm -r "$D"; exit $err' 0
git-tag.sh +1 -1
@@ -63,7 +63,7 @@ done name="$1" [ "$name" ] || usage -if [ -e "$GIT_DIR/refs/tags/$name" -a -z "$force" ]; then +if [ -f "$GIT_DIR/refs/tags/$name" -a -z "$force" ]; then die "tag '$name' already exists" fi shift
Re: [PATCH] "test" in Solaris' /bin/sh does not support -e
Quoted 10 lines · Junio C Hamano
Quoted 4 lines · Dennis Stosberg
Running "make clean" currently fails:
[ ! -e perl/Makefile ] || make -C perl/ clean
/bin/sh: test: argument expected
make: *** [clean] Error 1Ah, _BAD_. We seem to have the same in git-branch, git-checkout, git-clone and git-tag. You would probably need this on top of "master".
The SHELL_PATH in the Makefile is being set to "/bin/bash" on Solaris, so there is currently no problem with those.
A lot of bashisms have been removed from the shell scripts since that SHELL_PATH override was added in September 2005; I will have a look whether it's still necessary.
Regards,
Dennis
Re: [PATCH] "test" in Solaris' /bin/sh does not support -e
Quoted 3 lines · Dennis Stosberg
A lot of bashisms have been removed from the shell scripts since that
SHELL_PATHoverride was added in September 2005; I will have a look whether it's still necessary.
Solaris is really horrible sometimes. "/bin/sh" is linked to "/usr/bin/sh". The manual sh(1) reads:
The /usr/bin/sh utility is a command programming language that executes commands read from a terminal or a file.
The /usr/xpg4/bin/sh utility is a standards compliant shell.
Argh! Why don't they put their "standards compliant" shell to /bin/sh? The current one doesn't even support the $( )-style command substitution, so making the scripts run with that shell would be _really_ ugly.
Regards,
Dennis
Re: [PATCH] "test" in Solaris' /bin/sh does not support -e
Quoted 4 lines · Dennis Stosberg
Argh! Why don't they put their "standards compliant" shell to
/bin/sh? The current one doesn't even support the $( )-style command substitution, so making the scripts run with that shell would be _really_ ugly.
Which means this in pb/gitpm topic needs further changes, perhaps.
$ git grep -n '\$\$(' pb/gitpm:Makefile
pb/gitpm:Makefile:537: INSTLIBDIR=$$(make -s -C perl instlibdir) && \PATCH 1/1 Makefile fix for Solaris
Solaris' /bin/sh does not support $( )-style command substitution
--- Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile +1 -1
@@ -544,7 +544,7 @@ common-cmds.h: Documentation/git-*.txt $(patsubst %.perl,%,$(SCRIPT_PERL)): perl/Makefile $(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl rm -f $@ $@+ - INSTLIBDIR=$$(make -s -C perl instlibdir) && \ + INSTLIBDIR=`make -s -C perl instlibdir` && \ sed -e '1s|#!.*perl\(.*\)|#!$(PERL_PATH_SQ)\1|' \ -e 's|@@INSTLIBDIR@@|'"$$INSTLIBDIR"'|g' \ -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
Signature · 1 line
1.4.1.rc1.g80bff-dirty
PATCH 1/1 Add possibility to pass CFLAGS and LDFLAGS specific to the perl subdir
In reply to Junio C Hamano--- Makefile | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
Makefile +4 -2
@@ -94,6 +94,8 @@ CFLAGS = -g -O2 -Wall LDFLAGS = ALL_CFLAGS = $(CFLAGS) ALL_LDFLAGS = $(LDFLAGS) +PERL_CFLAGS = +PERL_LDFLAGS = STRIP ?= strip prefix = $(HOME)
@@ -119,8 +121,8 @@ ### --- END CONFIGURATION SECTION --- # Those must not be GNU-specific; they are shared with perl/ which may # be built by a different compiler. -BASIC_CFLAGS = -BASIC_LDFLAGS = +BASIC_CFLAGS = $(PERL_CFLAGS) +BASIC_LDFLAGS = $(PERL_LDFLAGS) SCRIPT_SH = \ git-bisect.sh git-branch.sh git-checkout.sh \
Signature · 1 line
1.4.1.rc1.g80bff-dirty
Re: [PATCH] Add possibility to pass CFLAGS and LDFLAGS specific to the perl subdir
Dear diary, on Tue, Jun 27, 2006 at 12:23:08AM CEST, I got a letter where Dennis Stosberg <[email protected]> said that...
Quoted 10 lines
Signed-off-by Dennis Stosberg <[email protected]>--- Makefile | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)Makefile +0
-0
Makefile CFLAGS = -g -O2 -Wall · line 101
Quoted 8 lines
Makefile +2
-0@@ -94,6 +94,8 @@ CFLAGS = -g -O2 -Wall LDFLAGS = ALL_CFLAGS = $(CFLAGS) ALL_LDFLAGS = $(LDFLAGS) +PERL_CFLAGS = +PERL_LDFLAGS = STRIP ?= strip prefix = $(HOME)
Just an annotation:
ALL_* means "use these flags for compilation of all the stuff
except perly stuff"
PERL_* means "use these flags for compilation of really all the
stuff"
So "all" might not mean what you think and Perl is stonger than everything.
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
Re: [PATCH] "test" in Solaris' /bin/sh does not support -e
In reply to Junio C HamanoQuoted 2 lines · Junio C Hamano
Which means this in pb/gitpm topic needs further changes, perhaps.
Indeed.
The second patch makes it possible to give additional CFLAGS and LDFLAGS for compiling the perl module. Otherwise the compiler may not be able to find headers and libraries for curl, expat and openssl. This is needed on Solaris where these libraries will usually be in paths like /usr/local or /opt/gnu.
With the patch Pasky started this thread with, the four patches I sent earlier and these last two patches the pu branch compiles, tests and installs cleanly on Solaris 9, both with Sun CC 5.8 and GCC 4.1.1.
Regards,
Dennis
Sun CC 5.8 fails with a strange error compiling diff-delta.c that looks like an error in Sun's compiler to me:
$ cc -V cc: Sun C 5.8 Patch 121015-02 2006/03/29
$ cc -o diff-delta.o -c -I/opt/gnu/include -D__EXTENSIONS__ \
-DSHA1_HEADER='<openssl/sha.h>' -DNO_STRCASESTR -DNO_STRLCPY \
-DNO_SETENV -DNO_UNSETENV diff-delta.c
"diff-delta.c", line 251: identifier redeclared: create_delta
current : function(pointer to const struct delta_index \
{pointer to const void src_buf, unsigned long src_size, \
unsigned int hash_mask, array[-1] of pointer to struct index_entry {..} hash},\
pointer to const void, unsigned long, pointer to unsigned long, \
unsigned long) returning pointer to void
previous: function(pointer to const struct delta_index \
{pointer to const void src_buf, unsigned long src_size, \
unsigned int hash_mask, array[-1] of pointer to struct index_entry {..} hash},\
pointer to const void, unsigned long, pointer to unsigned long, \
unsigned long) returning pointer to void : "delta.h", line 37
cc: acomp failed for diff-delta.c
make: *** [diff-delta.o] Error 2Yes, the two prototypes are identical. Seems like the compiler has problems with the opaque struct. When I played around with it, I was surprised when I found that Sun CC actually compiled this file after I removed the const qualifier from the first parameter of the create_delta() function. Does anybody have a better explanation than an error in the compiler?
Regards,
Dennis
delta.h +3 -2
@@ -34,11 +34,12 @@ extern void free_delta_index(struct delt* must be freed by the caller. */ extern void * -create_delta (const struct delta_index *index, +create_delta (struct delta_index *index,const void *buf,unsigned long bufsize,unsigned long *delta_size,unsigned long max_delta_size); -/* +/*l +* diff_delta: create a delta from source buffer to target buffer * * If max_delta_size is non-zero and the resulting delta is to be larger
diff-delta.c +1 -1
@@ -245,7 +245,7 @@ void free_delta_index(struct delta_index#define MAX_OP_SIZE (5 + 5 + 1 + RABIN_WINDOW + 7)void * -create_delta (const struct delta_index *index, +create_delta (struct delta_index *index,const void *trg_buf,unsigned long trg_size,unsigned long *delta_size,unsigned long max_size) {
Hello,
delta.h extern void free_delta_index(struct delt · line 42
Quoted 3 lines
delta.h +2
-1-/* +/*l +
this looks like a typo in your patch.
Thomas
Quoted 2 lines · Dennis Stosberg
Yesterday I could build the next branch with Sun CC 5.8 with a few trivial changes. I will send four patches in reply to this mail.
Thanks. Next time around please sign off your patches.
Quoted 6 lines · Junio C Hamano
Quoted 2 lines · Dennis Stosberg
Yesterday I could build the next branch with Sun CC 5.8 with a few trivial changes. I will send four patches in reply to this mail.
Thanks. Next time around please sign off your patches.
Sorry, I forgot and will do next time. Please assume the Signed-Off is present on the first three patches.
Regards,
Dennis