From: "Chris Cowan" <chris.o.cowan@gmail.com>
To: git@vger.kernel.org
Subject: Hacks for AIX
Date: Wed, 16 Jul 2008 12:57:43 -0500 [thread overview]
Message-ID: <5855afd30807161057v54ed4112jaea3bc07cebf44d4@mail.gmail.com> (raw)
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
next reply other threads:[~2008-07-16 17:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-16 17:57 Chris Cowan [this message]
2008-07-16 18:25 ` Hacks for AIX 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5855afd30807161057v54ed4112jaea3bc07cebf44d4@mail.gmail.com \
--to=chris.o.cowan@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).