git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Hacks for AIX
@ 2008-07-16 17:57 Chris Cowan
  2008-07-16 18:25 ` Junio C Hamano
  2008-07-16 18:26 ` Linus Torvalds
  0 siblings, 2 replies; 7+ messages in thread
From: Chris Cowan @ 2008-07-16 17:57 UTC (permalink / raw)
  To: git

I saw some earlier postings about this, so I thought I would share my
solution (I'm using xlc, BTW).   The following tests were broken for
me (using a pull from 2 days ago).

    * t0002-gitfile.sh
    * t1002-read-tree-m-u-2way.sh
    * t2201-add-update-typechange.sh
    * t4109-apply-multifrag.sh
    * t4110-apply-scan.sh
    * t7002-grep.sh


The problems all seem to be rooted in the default utilities shipped with AIX:

    * /usr/bin/grep - behaves badly in t7002.   I believe it is test
12 and related to the -n -w -e combination of options.
    * /usr/bin/diff - has problems with -u and -U.
                         I saw the $GIT_CMP_TEST env var, but this is
not used everywhere within the test scripts above.
    * /usr/bin/patch - really old version, doesn't do well with some
diff formats.   I avoid using it.
    * /usr/bin/install - doesn't behave the expected way either.

In some cases, the tests could have been made more portable by using a
plain "diff" rather than "diff -u", for example.

Fortunately, there are optional freeware versions that can be
installed for all of these (along with tar and wish too).   These
versions if installed, are all found in /usr/linux/bin (or
equivalently /opt/freeware/bin), I just wish they weren't optional.  I
have found that having these utilities installed and prepending
/usr/linux/bin to the PATH results in a clean make test and build.

I also saw one instance where the behavior of git-grep was affected by
the grep selected at build time.    I'm not sure if there's other
instances within the code base, but I'm wondering whether the
configure script can be changed to do the check for /usr/linux/bin and
use those versions?   I can imagine that similar problems may occur on
Solaris and HPUX.

Otherwise, I'm quite happy with git.
-- 
CC

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

end of thread, other threads:[~2008-07-22 21:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16 17:57 Hacks for AIX Chris Cowan
2008-07-16 18:25 ` Junio C Hamano
2008-07-18 23:14   ` Brandon Casey
2008-07-20  8:33   ` Junio C Hamano
2008-07-21 15:39     ` Brandon Casey
2008-07-22 21:42       ` Brandon Casey
2008-07-16 18:26 ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).