On Tue, 11 Dec 2007 03:54:40 -0500, "Shawn O. Pearce" <spearce@xxxxxxxxxxx> wrote: > Junio C Hamano <gitster@xxxxxxxxx> wrote: > > "H.Merijn Brand" <h.m.brand@xxxxxxxxx> writes: > > > > > 3 I am willing to believe that HP_UX' vsnprintf () is broken, or > > > at least does not conform to the expectations in the GNU world, > > > but chickening out like the way strbuf_addf () does is maybe a > > > bit too rude, so I forced a minimum of 64bytes available. That > > > fixes a lot! > > > > > > but it still breaks t4013 :( > > > > I think Shawn had something similar for Solaris, and if it is a small > > cost to help portability, it does not feel so bad. > > My Solaris change is already in your tree; on Solaris vnsprintf > will return -1 if the input buffer we gave it had a length of 0. > This can happen at odd times, depending on what is already in the > strbuf and how its buffer is. :) > > The fix for Solaris turned out to be just make sure there is at > least 1 byte in the buffer before calling vsnprintf(). > > > > + git-index-pack -o tmp.idx test-2-7f8ead892057e78576c0329a70cc83afb113f117.pack > > > fatal: serious inflate inconsistency > > > > That sounds like a broken zlib X-<. libz is version 1.2.3 > I think this is actually a broken pread(). Its been reported > multiple times by different people on HP-UX. Compiling with > NO_PREAD=1 resolves the issues for everyone who has tried it. :) * passed all 114 test(s) > Jakub asked me for an autoconf test to look for this sort of > breakage in pread(), I have yet to come up with a theory for > what sort of breakage HP-UX is showing us here, let alone write > a test for it. For now, the HP section in Makefile for 11.00 now looks like ifeq ($(uname_S),HP-UX) # HP-UX BASIC_LDFLAGS += -L/usr/local/ssl/lib -L/usr/local/lib # EXTLIBS += -lc_r -lgcc NO_HSTRERROR = YesPlease NO_ICONV = YesPlease NO_INET_NTOP = YesPlease NO_INET_PTON = YesPlease NO_UNSETENV = YesPlease NO_STRTOULL = YesPlease NO_STRTOUMAX = YesPlease NO_PREAD = YesPlease endif -- H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/) using & porting perl 5.6.2, 5.8.x, 5.10.x on HP-UX 10.20, 11.00, 11.11, & 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin. http://qa.perl.org http://mirrors.develooper.com/hpux/ http://www.test-smoke.org http://www.goldmark.org/jeff/stupid-disclaimers/ - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html