git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Hacks for AIX

From
CCChris Cowan <chris.o.cowan@gmail.com>
Date
Jul 16, 2008, 17:57 UTC
Message-ID
<5855afd30807161057v54ed4112jaea3bc07cebf44d4@mail.gmail.com>

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: Junio C Hamano
Message 1 of 7 in “Hacks for AIX”
  1. Chris CowanJul 16, 2008
  2. Junio C HamanoJul 16, 2008
  3. Brandon CaseyJul 18, 2008
  4. Junio C HamanoJul 20, 2008
  5. Brandon CaseyJul 21, 2008
  6. Brandon CaseyJul 22, 2008
  7. Linus TorvaldsJul 16, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.