wiki:Dev/build/git

Git

build on MacOS X

  • Darwin 10.4.0
  • no root privilege
  • gcc -v
    Target: i686-apple-darwin10
    Configured with: /var/tmp/gcc/gcc-5664~38/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
    Thread model: posix
    gcc version 4.2.1 (Apple Inc. build 5664)
    

source

build

  • tar xzf git-1.7.3.1.tar.bz2
  • cd git-1.7.3.1
  • make configure
  • ./configure --prefix=$HOME/local/$OSTYPE
  • make
  • make install

make test

  • make test
    (snip)
    
    ok 1 - set up test repository
    # run 2: Perl API (/usr/bin/perl /private/tmp/git/git-1.7.3.1/t/t9700/test.pl)
    ok 2 - use Git;
    ok 3 - open repository
    ok 4 - config scalar: string
    ok 5 - config array: string
    ok 6 - config scalar: nonexistent
    ok 7 - config array: nonexistent
    ok 8 - config_int: integer
    ok 9 - config_int: nonexistent
    ok 10 - config_bool: true
    ok 11 - config_bool: false
    ok 12 - get_color
    ok 13 - config: duplicate entry in scalar context fails
    ok 14 - config_bool: non-boolean values fail
    ok 15 - ident scalar: author (type)
    ok 16 - ident scalar: committer (type)
    ok 17 - ident scalar: invalid ident string (no parsing)
    ok 18 - ident array: author
    ok 19 - ident array: author
    ok 20 - ident array: ident string
    ok 21 - ident array: invalid ident string
    ok 22 - ident_person: author (type)
    ok 23 - ident_person: ident string
    ok 24 - ident_person: array
    ok 25 - (get file hash)
    ok 26 - cat_blob: size
    ok 27 - cat_blob: data
    ok 28 - hash_object: roundtrip
    ok 29 - hash_and_insert_object: returns hash
    ok 30 - cat_blob: roundtrip size
    ok 31 - cat_blob: roundtrip data
    ok 32 - repo_path
    ok 33 - wc_path
    ok 34 - wc_subdir initial
    ok 35 - wc_subdir after wc_chdir
    ok 36 - config after wc_chdir
    ok 37 - repo_path (2)
    ok 38 - wc_path (2)
    ok 39 - wc_subdir initial (2)
    ok 40 - rev-parse returned hash
    ok 41 - log . does not show last commit
    1..41
    # test_external test Perl API was ok
    # test_external_without_stderr test no stderr: Perl API was ok
    make aggregate-results
    for f in test-results/t*-*.counts; do \
                    echo "$f"; \
            done | '/bin/sh' ./aggregate-results.sh
    fixed   2
    success 6585
    failed  0
    broken  33
    total   6681
    make clean
    rm -f -r 'trash directory'.* test-results
    rm -f -r valgrind/bin
    rm -f .prove
    
Last modified 6 years ago Last modified on Nov 2, 2010 10:39:12 AM