git: fix build with with no threads
commit37847bbd3f6c49bef7875d560d4bc5497493d9b1
authorRahul Bedarkar <rahul.bedarkar@imgtec.com>
Tue, 21 Mar 2017 23:56:44 +0000 (22 05:26 +0530)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 22 Mar 2017 21:57:20 +0000 (22 22:57 +0100)
tree7e0b6f1e55062bcad89a2aa386c9b839f94f0962
parentb47aec79d2e19ef7e3f04d2758c3a2930d47cebe
git: fix build with with no threads

When building git with toolchain that don't have thread support, we
get following build errors:

      CC builtin/hash-object.o
  builtin/grep.c: In function 'grep_submodule_launch':
  builtin/grep.c:596:34: error: dereferencing pointer to incomplete type 'struct work_item'
    status = capture_command(&cp, &w->out, 0);
                                    ^
  builtin/grep.c: In function 'grep_submodule':
  builtin/grep.c:644:20: error: storage size of 'w' isn't known
     struct work_item w;
                      ^
  make[2]: *** [builtin/grep.o] Error 1
  make[2]: *** Waiting for unfinished jobs....

Add two upstream patches to fix this issue.

Fixes:
  http://autobuild.buildroot.net/results/94b/94bce9a99a5ce9894a6918774ab75e23d12c1394/

Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/git/0001-grep-set-default-output-method.patch [new file with mode: 0644]
package/git/0002-grep-fix-builds-with-with-no-thread-support.patch [new file with mode: 0644]