{"thread":{"id":"15996","subject":"git 1.6.0.2 make test fails at t1301 under mac os x 10.4.","startedAt":"2008-10-21T18:32:32Z","lastAt":"2008-10-21T21:24:43Z","messageCount":2,"participants":["Fergus McMenemie","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"93625","messageId":"p06240800c523ac94cb4d@[192.168.47.9]","threadId":"15996","inReplyTo":null,"subject":"git 1.6.0.2 make test fails at t1301 under mac os x 10.4.","fromName":"Fergus McMenemie","fromEmail":"fergus@twig.me.uk","sentAt":"2008-10-21T18:32:32Z","receivedAt":"2008-10-21T18:32:32Z","isPatch":false,"sender":{"key":"fergus@twig.me.uk","avatar":null},"body":"Hi,\n\nHoping for a quick pointer. I compiled git 1.6.0.2 on three\nmacs. Works fine on two fails on one. It only fails at test\nt1301-shared-repo.sh all other tests pass.\n\nImac 2.16GHz Intel Core 2 Duo running MacOS X 10.4.11 - OK\nMacMini 1.5Ghz PowerPC G4 running MacOS X 10.4.11 - Duff\nPowerbook 1Ghz PowerPC G4 running MacOX X 10.5.5 - OK\n\nAll disks are formatted \"Journaled HFS+\". I have the same \nversion of gcc and the development environment on both the\ntiger machines. Here is a trace from the machine and test\nthat fails:-\n\n>fergus:bash -x t1301-shared-repo.sh  -d -v -i\n>+ test_description=Test shared repository initialization\n>+ . ./test-lib.sh\n>++ ORIGINAL_TERM=xterm-color\n>++ LANG=C\n>++ LC_ALL=C\n>++ PAGER=cat\n>++ TZ=UTC\n>++ TERM=dumb\n>++ export LANG LC_ALL PAGER TERM TZ\n>++ EDITOR=:\n>++ VISUAL=:\n>++ unset GIT_EDITOR\n>++ unset AUTHOR_DATE\n>++ unset AUTHOR_EMAIL\n>++ unset AUTHOR_NAME\n>++ unset COMMIT_AUTHOR_EMAIL\n>++ unset COMMIT_AUTHOR_NAME\n>++ unset EMAIL\n>++ unset GIT_ALTERNATE_OBJECT_DIRECTORIES\n>++ unset GIT_AUTHOR_DATE\n>++ GIT_AUTHOR_EMAIL=author@example.com\n>++ GIT_AUTHOR_NAME=A U Thor\n>++ unset GIT_COMMITTER_DATE\n>++ GIT_COMMITTER_EMAIL=committer@example.com\n>++ GIT_COMMITTER_NAME=C O Mitter\n>++ unset GIT_DIFF_OPTS\n>++ unset GIT_DIR\n>++ unset GIT_WORK_TREE\n>++ unset GIT_EXTERNAL_DIFF\n>++ unset GIT_INDEX_FILE\n>++ unset GIT_OBJECT_DIRECTORY\n>++ unset GIT_CEILING_DIRECTORIES\n>++ unset SHA1_FILE_DIRECTORIES\n>++ unset SHA1_FILE_DIRECTORY\n>++ GIT_MERGE_VERBOSITY=5\n>++ export GIT_MERGE_VERBOSITY\n>++ export GIT_AUTHOR_EMAIL GIT_AUTHOR_NAME\n>++ export GIT_COMMITTER_EMAIL GIT_COMMITTER_NAME\n>++ export EDITOR VISUAL\n>++ GIT_TEST_CMP=diff -u\n>++ unset CDPATH\n>+++ echo\n>+++ tr '[A-Z]' '[a-z]'\n>++ '[' xxterm-color '!=' xdumb ']'\n>++ TERM=xterm-color\n>++ export TERM\n>++ '[' -t 1 ']'\n>++ tput bold\n>++ tput setaf 1\n>++ tput sgr0\n>++ color=t\n>++ test 3 -ne 0\n>++ debug=t\n>++ shift\n>++ test 2 -ne 0\n>++ verbose=t\n>++ shift\n>++ test 1 -ne 0\n>++ immediate=t\n>++ shift\n>++ test 0 -ne 0\n>++ test -n t\n>++ test 'Test shared repository initialization' '!=' ''\n>++ test '' = t\n>++ exec\n>++ test t = t\n>++ exec\n>++ test_failure=0\n>++ test_count=0\n>++ test_fixed=0\n>++ test_broken=0\n>++ test_success=0\n>++ trap die exit\n>+++ pwd\n>++ TEST_DIRECTORY=/usr/local/packages/git-1.6.0.2/t\n>++ PATH=/usr/local/packages/git-1.6.0.2/t/..:/usr/local/bin:/usr/local/pgsql/bin:/bin:/sbin:/usr/bin:/usr/local/bin:/usr/sbin:/Volumes/TechmorePB/fergus/Current\\ Contract/cwid-fixup/rollitts\n>+++ pwd\n>++ GIT_EXEC_PATH=/usr/local/packages/git-1.6.0.2/t/..\n>+++ pwd\n>++ GIT_TEMPLATE_DIR=/usr/local/packages/git-1.6.0.2/t/../templates/blt\n>++ unset GIT_CONFIG\n>++ unset GIT_CONFIG_LOCAL\n>++ GIT_CONFIG_NOSYSTEM=1\n>++ GIT_CONFIG_NOGLOBAL=1\n>++ export PATH GIT_EXEC_PATH GIT_TEMPLATE_DIR GIT_CONFIG_NOSYSTEM GIT_CONFIG_NOGLOBAL\n>+++ pwd\n>+++ pwd\n>++ GITPERLLIB=/usr/local/packages/git-1.6.0.2/t/../perl/blib/lib:/usr/local/packages/git-1.6.0.2/t/../perl/blib/arch/auto/Git\n>++ export GITPERLLIB\n>++ test -d ../templates/blt\n>++ test -x ../test-chmtime\n>++ . ../GIT-BUILD-OPTIONS\n>+++ SHELL_PATH=/bin/sh\n>+++ TAR=tar\n>++ test=trash directory\n>++ rm -fr 'trash directory'\n>++ test_create_repo 'trash directory'\n>++ test 1 = 1\n>+++ pwd\n>++ owd=/usr/local/packages/git-1.6.0.2/t\n>++ repo=trash directory\n>++ mkdir 'trash directory'\n>++ cd 'trash directory'\n>++ /usr/local/packages/git-1.6.0.2/t/../git init --template=/usr/local/packages/git-1.6.0.2/t/../templates/blt/\n>Initialized empty Git repository in /usr/local/packages/git-1.6.0.2/t/trash directory/.git/\n>++ mv .git/hooks .git/hooks-disabled\n>++ cd /usr/local/packages/git-1.6.0.2/t\n>++ cd -P 'trash directory'\n>+++ expr ./t1301-shared-repo.sh : '.*/\\(t[0-9]*\\)-[^/]*$'\n>++ this_test=t1301\n>+ test_expect_success 'shared = 0400 (faulty permission u-w)' '\n>        mkdir sub && (\n>                cd sub && git init --shared=0400\n>        )\n>        ret=\"$?\"\n>        rm -rf sub\n>        test $ret != \"0\"\n>'\n>+ test 2 = 2\n>+ test_skip 'shared = 0400 (faulty permission u-w)' '\n>        mkdir sub && (\n>                cd sub && git init --shared=0400\n>        )\n>        ret=\"$?\"\n>        rm -rf sub\n>        test $ret != \"0\"\n>'\n>++ expr ./t1301-shared-repo.sh : '.*/\\(t[0-9]*\\)-[^/]*$'\n>+ this_test=t1301\n>++ expr 0 + 1\n>+ this_test=t1301.1\n>+ to_skip=\n>+ false\n>+ say 'expecting success: \n>        mkdir sub && (\n>                cd sub && git init --shared=0400\n>        )\n>        ret=\"$?\"\n>        rm -rf sub\n>        test $ret != \"0\"\n>'\n>+ say_color info 'expecting success: \n>        mkdir sub && (\n>                cd sub && git init --shared=0400\n>        )\n>        ret=\"$?\"\n>        rm -rf sub\n>        test $ret != \"0\"\n>'\n>+ TERM=xterm-color\n>+ export TERM\n>+ tput setaf 3\n>+ shift\n>+ echo '* expecting success: \n>        mkdir sub && (\n>                cd sub && git init --shared=0400\n>        )\n>        ret=\"$?\"\n>        rm -rf sub\n>        test $ret != \"0\"\n>'\n>* expecting success: \n>        mkdir sub && (\n>                cd sub && git init --shared=0400\n>        )\n>        ret=\"$?\"\n>        rm -rf sub\n>        test $ret != \"0\"\n>\n>+ tput sgr0\n>+ test_run_ '\n>        mkdir sub && (\n>                cd sub && git init --shared=0400\n>        )\n>        ret=\"$?\"\n>        rm -rf sub\n>        test $ret != \"0\"\n>'\n>+ eval '\n>        mkdir sub && (\n>                cd sub && git init --shared=0400\n>        )\n>        ret=\"$?\"\n>        rm -rf sub\n>        test $ret != \"0\"\n>'\n>++ mkdir sub\n>++ cd sub\n>++ git init --shared=0400\n>fatal: Problem with core.sharedRepository filemode value (0400).\n>The owner of files must always have read and write permissions.\n>++ ret=128\n>++ rm -rf sub\n>++ test 128 '!=' 0\n>+ eval_ret=0\n>+ return 0\n>+ '[' 0 = 0 -a 0 = 0 ']'\n>+ test_ok_ 'shared = 0400 (faulty permission u-w)'\n>++ expr 0 + 1\n>+ test_count=1\n>++ expr 0 + 1\n>+ test_success=1\n>+ say_color '' '  ok 1: shared = 0400 (faulty permission u-w)'\n>+ TERM=xterm-color\n>+ export TERM\n>+ test -n ''\n>+ shift\n>+ echo '*   ok 1: shared = 0400 (faulty permission u-w)'\n>*   ok 1: shared = 0400 (faulty permission u-w)\n>+ tput sgr0\n>+ echo ''\n>\n>+ test_expect_success 'shared=1 does not clear bits preset by umask 002' '\n>                mkdir sub && (\n>                        cd sub &&\n>                        umask $u &&\n>                        git init --shared=1 &&\n>                        test 1 = \"$(git config core.sharedrepository)\"\n>                ) &&\n>                actual=$(ls -l sub/.git/HEAD)\n>                case \"$actual\" in\n>                -rw-rw-r--*)\n>                        : happy\n>                        ;;\n>                *)\n>                        echo Oops, .git/HEAD is not 0664 but $actual\n>                        false\n>                        ;;\n>                esac\n>        '\n>+ test 2 = 2\n>+ test_skip 'shared=1 does not clear bits preset by umask 002' '\n>                mkdir sub && (\n>                        cd sub &&\n>                        umask $u &&\n>                        git init --shared=1 &&\n>                        test 1 = \"$(git config core.sharedrepository)\"\n>                ) &&\n>                actual=$(ls -l sub/.git/HEAD)\n>                case \"$actual\" in\n>                -rw-rw-r--*)\n>                        : happy\n>                        ;;\n>                *)\n>                        echo Oops, .git/HEAD is not 0664 but $actual\n>                        false\n>                        ;;\n>                esac\n>        '\n>++ expr ./t1301-shared-repo.sh : '.*/\\(t[0-9]*\\)-[^/]*$'\n>+ this_test=t1301\n>++ expr 1 + 1\n>+ this_test=t1301.2\n>+ to_skip=\n>+ false\n>+ say 'expecting success: \n>                mkdir sub && (\n>                        cd sub &&\n>                        umask $u &&\n>                        git init --shared=1 &&\n>                        test 1 = \"$(git config core.sharedrepository)\"\n>                ) &&\n>                actual=$(ls -l sub/.git/HEAD)\n>                case \"$actual\" in\n>                -rw-rw-r--*)\n>                        : happy\n>                        ;;\n>                *)\n>                        echo Oops, .git/HEAD is not 0664 but $actual\n>                        false\n>                        ;;\n>                esac\n>        '\n>+ say_color info 'expecting success: \n>                mkdir sub && (\n>                        cd sub &&\n>                        umask $u &&\n>                        git init --shared=1 &&\n>                        test 1 = \"$(git config core.sharedrepository)\"\n>                ) &&\n>                actual=$(ls -l sub/.git/HEAD)\n>                case \"$actual\" in\n>                -rw-rw-r--*)\n>                        : happy\n>                        ;;\n>                *)\n>                        echo Oops, .git/HEAD is not 0664 but $actual\n>                        false\n>                        ;;\n>                esac\n>        '\n>+ TERM=xterm-color\n>+ export TERM\n>+ tput setaf 3\n>+ shift\n>+ echo '* expecting success: \n>                mkdir sub && (\n>                        cd sub &&\n>                        umask $u &&\n>                        git init --shared=1 &&\n>                        test 1 = \"$(git config core.sharedrepository)\"\n>                ) &&\n>                actual=$(ls -l sub/.git/HEAD)\n>                case \"$actual\" in\n>                -rw-rw-r--*)\n>                        : happy\n>                        ;;\n>                *)\n>                        echo Oops, .git/HEAD is not 0664 but $actual\n>                        false\n>                        ;;\n>                esac\n>        '\n>* expecting success: \n>                mkdir sub && (\n>                        cd sub &&\n>                        umask $u &&\n>                        git init --shared=1 &&\n>                        test 1 = \"$(git config core.sharedrepository)\"\n>                ) &&\n>                actual=$(ls -l sub/.git/HEAD)\n>                case \"$actual\" in\n>                -rw-rw-r--*)\n>                        : happy\n>                        ;;\n>                *)\n>                        echo Oops, .git/HEAD is not 0664 but $actual\n>                        false\n>                        ;;\n>                esac\n>\n>+ tput sgr0\n>+ test_run_ '\n>                mkdir sub && (\n>                        cd sub &&\n>                        umask $u &&\n>                        git init --shared=1 &&\n>                        test 1 = \"$(git config core.sharedrepository)\"\n>                ) &&\n>                actual=$(ls -l sub/.git/HEAD)\n>                case \"$actual\" in\n>                -rw-rw-r--*)\n>                        : happy\n>                        ;;\n>                *)\n>                        echo Oops, .git/HEAD is not 0664 but $actual\n>                        false\n>                        ;;\n>                esac\n>        '\n>+ eval '\n>                mkdir sub && (\n>                        cd sub &&\n>                        umask $u &&\n>                        git init --shared=1 &&\n>                        test 1 = \"$(git config core.sharedrepository)\"\n>                ) &&\n>                actual=$(ls -l sub/.git/HEAD)\n>                case \"$actual\" in\n>                -rw-rw-r--*)\n>                        : happy\n>                        ;;\n>                *)\n>                        echo Oops, .git/HEAD is not 0664 but $actual\n>                        false\n>                        ;;\n>                esac\n>        '\n>++ mkdir sub\n>++ cd sub\n>++ umask 002\n>++ git init --shared=1\n>fatal: Could not make /usr/local/packages/git-1.6.0.2/t/trash directory/sub/.git/refs writable by group\n>\n>++ echo Oops, .git/HEAD is not 0664 but\n>Oops, .git/HEAD is not 0664 but\n>++ false\n>+ eval_ret=1\n>+ return 0\n>+ '[' 0 = 0 -a 1 = 0 ']'\n>+ test_failure_ 'shared=1 does not clear bits preset by umask 002' '\n>                mkdir sub && (\n>                        cd sub &&\n>                        umask $u &&\n>                        git init --shared=1 &&\n>                        test 1 = \"$(git config core.sharedrepository)\"\n>                ) &&\n>                actual=$(ls -l sub/.git/HEAD)\n>                case \"$actual\" in\n>                -rw-rw-r--*)\n>                        : happy\n>                        ;;\n>                *)\n>                        echo Oops, .git/HEAD is not 0664 but $actual\n>                        false\n>                        ;;\n>                esac\n>        '\n>++ expr 1 + 1\n>+ test_count=2\n>++ expr 0 + 1\n>+ test_failure=1\n>+ say_color error 'FAIL 2: shared=1 does not clear bits preset by umask 002'\n>+ TERM=xterm-color\n>+ export TERM\n>+ tput bold\n>+ tput setaf 1\n>+ shift\n>+ echo '* FAIL 2: shared=1 does not clear bits preset by umask 002'\n>* FAIL 2: shared=1 does not clear bits preset by umask 002\n>+ tput sgr0\n>+ shift\n>+ echo '\n>                mkdir sub && (\n>                        cd sub &&\n>                        umask $u &&\n>                        git init --shared=1 &&\n>                        test 1 = \"$(git config core.sharedrepository)\"\n>                ) &&\n>                actual=$(ls -l sub/.git/HEAD)\n>                case \"$actual\" in\n>                -rw-rw-r--*)\n>                        : happy\n>                        ;;\n>                *)\n>                        echo Oops, .git/HEAD is not 0664 but $actual\n>                        false\n>                        ;;\n>                esac\n>        '\n>+ sed -e 's/^/  /'\n>\n>                        mkdir sub && (\n>                                cd sub &&\n>                                umask $u &&\n>                                git init --shared=1 &&\n>                                test 1 = \"$(git config core.sharedrepository)\"\n>                        ) &&\n>                        actual=$(ls -l sub/.git/HEAD)\n>                        case \"$actual\" in\n>                        -rw-rw-r--*)\n>                                : happy\n>                                ;;\n>                        *)\n>                                echo Oops, .git/HEAD is not 0664 but $actual\n>                                false\n>                                ;;\n>                        esac\n>\n>+ test t = ''\n>+ trap - exit\n>+ exit 1\n>fergus:\n\n\nDoing this manually I get:-\n\nfergus:mkdir sub\nfergus:cd sub \nfergus:../../git init --shared=0400\nfatal: Problem with core.sharedRepository filemode value (0400).\nThe owner of files must always have read and write permissions.\nfergus:echo $?\n128\nfergus:ls -al\ntotal 0\ndrwxr-xr-x     3 fergus  wheel    102 Oct 21 18:24 .\ndrwxr-xr-x   333 fergus  wheel  11322 Oct 21 18:23 ..\ndrwxr-xr-x     2 fergus  wheel     68 Oct 21 18:24 sub\nfergus:ls -al sub\ntotal 0\ndrwxr-xr-x   2 fergus  wheel   68 Oct 21 18:24 .\ndrwxr-xr-x   3 fergus  wheel  102 Oct 21 18:24 ..\n\n\nAny ideas where is going on? I have the same version of gcc\nand the development environment on both the tiger machines.\n-- \n\n===============================================================\nFergus McMenemie               Email:fergus@twig.me.uk\nTechmore Ltd                   Phone:(UK) 07721 376021\n\nUnix/Mac/Intranets             Analyst Programmer\n===============================================================\n"},{"id":"93637","messageId":"alpine.DEB.1.00.0810212315530.22125@pacific.mpi-cbg.de.mpi-cbg.de","threadId":"15996","inReplyTo":"p06240800c523ac94cb4d@[192.168.47.9]","subject":"Re: git 1.6.0.2 make test fails at t1301 under mac os x 10.4.","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2008-10-21T21:24:43Z","receivedAt":"2008-10-21T21:24:43Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Tue, 21 Oct 2008, Fergus McMenemie wrote:\n\n> >++ mkdir sub\n> >++ cd sub\n> >++ umask 002\n> >++ git init --shared=1\n> >fatal: Could not make /usr/local/packages/git-1.6.0.2/t/trash\n> >directory/sub/.git/refs writable by group\n\nI guess this is the problem.\n\nCould you inspect what owner/group that directory has?\n\nCiao,\nDscho\n"}]}