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

test suite fails if sh != bash || tar != GNU tar

From
DFDavid Frech <nimblemachines@gmail.com>
Date
Jul 11, 2007, 02:39 UTC
Message-ID
<7154c5c60707101939sc921b07wef1d14f85086947d@mail.gmail.com>

I've built git on several BSD (FreeBSD and DragonFlyBSD) systems, and while it builds fine on both platforms, the test suite *fails* on both.

I tracked most of the problems down to dependencies on bash and GNU tar. I'm not sure yet what the specific differences are between BSD's /bin/sh and bash (the two are separate in the BSD world), but it's obvious what the problem is with tar: the git-archive test parses datestamps printed out by tar, and the two tar's print datestamps differently.

If I set SHELL_PATH=/usr/local/bin/bash and TAR=gtar (the name of GNU tar on BSD systems) I am able to get thru all the tests on FreeBSD (this is with a checkout of the v1.5.2.3 tag).

On DragonFly there is another problem that I have not yet tracked down. git-mailinfo fails on 0004 - it fails to extract *anything* from the message.

Anyone running Linux or Mac OSX won't see these problems, because on both platforms /bin/sh == bash and tar == GNU tar.

Cheers,
- David
-- 
If I have not seen farther, it is because I have stood in the
footsteps of giants.
Next: Johannes Schindelin
Message 1 of 10 in “test suite fails if sh != bash || tar != GNU tar”
  1. David FrechJul 11, 2007
  2. Johannes SchindelinJul 11, 2007
  3. Linus TorvaldsJul 11, 2007
  4. David FrechJul 11, 2007
  5. Johannes SchindelinJul 11, 2007
  6. Junio C HamanoJul 11, 2007
  7. David FrechJul 11, 2007
  8. Junio C HamanoJul 11, 2007
  9. David FrechJul 11, 2007
  10. Johannes SchindelinJul 11, 2007

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.