Browse Source

git: Update from 2.13.1 to 2.13.2

android-5
Fredrik Fornwall 8 years ago
parent
commit
edff9aa401
  1. 11
      packages/git/build.sh
  2. 25
      packages/git/run-command.c.patch

11
packages/git/build.sh

@ -2,10 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://git-scm.com/
TERMUX_PKG_DESCRIPTION="Distributed version control system designed to handle everything from small to very large projects with speed and efficiency" TERMUX_PKG_DESCRIPTION="Distributed version control system designed to handle everything from small to very large projects with speed and efficiency"
# less is required as a pager for git log, and the busybox less does not handle used escape sequences. # less is required as a pager for git log, and the busybox less does not handle used escape sequences.
TERMUX_PKG_DEPENDS="libcurl, less" TERMUX_PKG_DEPENDS="libcurl, less"
TERMUX_PKG_VERSION=2.13.1.2 TERMUX_PKG_VERSION=2.13.2
_REAL_VERSION=2.13.1 TERMUX_PKG_SRCURL=https://www.kernel.org/pub/software/scm/git/git-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SRCURL=https://www.kernel.org/pub/software/scm/git/git-${_REAL_VERSION}.tar.xz TERMUX_PKG_SHA256=0d10ac3751466f81652b62cbda83cc8d8ffd014911462138e039f176e413dde5
TERMUX_PKG_SHA256=3bc1becd983f77ab154a46801624369dbc40c3dd04b4c4b07ad026f5684688fe
## This requires a working $TERMUX_PREFIX/bin/sh on the host building: ## This requires a working $TERMUX_PREFIX/bin/sh on the host building:
TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
ac_cv_fread_reads_directories=yes ac_cv_fread_reads_directories=yes
@ -44,10 +43,6 @@ termux_step_pre_configure () {
# Fixes build if utfcpp is installed: # Fixes build if utfcpp is installed:
CPPFLAGS="-I$TERMUX_PKG_SRCDIR $CPPFLAGS" CPPFLAGS="-I$TERMUX_PKG_SRCDIR $CPPFLAGS"
# XXX: Should no longer be necessary after git v2.13.2:
# https://public-inbox.org/git/20170605203409.GB25777@dinwoodie.org/T/
CPPFLAGS+=" -DSHA1DC_FORCE_LITTLEENDIAN"
} }
termux_step_post_make_install () { termux_step_post_make_install () {

25
packages/git/run-command.c.patch

@ -0,0 +1,25 @@
diff -u -r ../git-2.13.2/run-command.c ./run-command.c
--- ../git-2.13.2/run-command.c 2017-06-25 00:50:12.000000000 +0200
+++ ./run-command.c 2017-06-25 20:16:53.815627960 +0200
@@ -491,8 +491,10 @@
#else
bug_die(pthread_sigmask(SIG_SETMASK, &all, &as->old),
"blocking all signals");
+# ifndef __ANDROID__
bug_die(pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &as->cs),
"disabling cancellation");
+# endif
#endif
}
@@ -502,8 +504,10 @@
if (sigprocmask(SIG_SETMASK, &as->old, NULL))
die_errno("sigprocmask");
#else
+# ifndef __ANDROID__
bug_die(pthread_setcancelstate(as->cs, NULL),
"re-enabling cancellation");
+# endif
bug_die(pthread_sigmask(SIG_SETMASK, &as->old, NULL),
"restoring signal mask");
#endif
Loading…
Cancel
Save