David Martínez
9 years ago
223 changed files with 2293 additions and 1281 deletions
@ -0,0 +1,28 @@ |
|||
TERMUX_PKG_HOMEPAGE=http://www.clisp.org/ |
|||
TERMUX_PKG_DESCRIPTION="GNU CLISP - an ANSI Common Lisp Implementation" |
|||
TERMUX_PKG_VERSION=2.49 |
|||
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/clisp/clisp/${TERMUX_PKG_VERSION}/clisp-${TERMUX_PKG_VERSION}.tar.bz2 |
|||
TERMUX_PKG_DEPENDS="readline, libandroid-support" |
|||
TERMUX_MAKE_PROCESSES=1 |
|||
|
|||
termux_step_configure () { |
|||
cd $TERMUX_PKG_BUILDDIR |
|||
|
|||
export XCPPFLAGS="$CPPFLAGS" |
|||
export XCFLAGS="$CFLAGS" |
|||
export XLDFLAGS="$LDFLAGS" |
|||
|
|||
unset CC |
|||
unset CPPFLAGS |
|||
unset CFLAGS |
|||
unset LDFLAGS |
|||
|
|||
$TERMUX_PKG_SRCDIR/configure \ |
|||
--host=$TERMUX_HOST_PLATFORM \ |
|||
--prefix=$TERMUX_PREFIX \ |
|||
--enable-shared \ |
|||
--disable-static \ |
|||
--srcdir=$TERMUX_PKG_SRCDIR \ |
|||
--ignore-absence-of-libsigsegv \ |
|||
ac_cv_func_select=yes |
|||
} |
@ -0,0 +1,573 @@ |
|||
diff -u -r ../clisp-2.49/src/gllib/stdint.in.h ./src/gllib/stdint.in.h
|
|||
--- ../clisp-2.49/src/gllib/stdint.in.h 2010-05-18 14:38:04.000000000 -0400
|
|||
+++ ./src/gllib/stdint.in.h 2016-02-17 15:35:07.664544781 -0500
|
|||
@@ -1,568 +1 @@
|
|||
-/* Copyright (C) 2001-2002, 2004-2010 Free Software Foundation, Inc.
|
|||
- Written by Paul Eggert, Bruno Haible, Sam Steingold, Peter Burwood.
|
|||
- This file is part of gnulib.
|
|||
-
|
|||
- This program is free software; you can redistribute it and/or modify
|
|||
- it under the terms of the GNU General Public License as published by
|
|||
- the Free Software Foundation; either version 3, or (at your option)
|
|||
- any later version.
|
|||
-
|
|||
- This program is distributed in the hope that it will be useful,
|
|||
- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
- GNU General Public License for more details.
|
|||
-
|
|||
- You should have received a copy of the GNU General Public License
|
|||
- along with this program; if not, write to the Free Software Foundation,
|
|||
- Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
|||
-
|
|||
-/*
|
|||
- * ISO C 99 <stdint.h> for platforms that lack it.
|
|||
- * <http://www.opengroup.org/susv3xbd/stdint.h.html>
|
|||
- */
|
|||
-
|
|||
-#ifndef _gl_GL_STDINT_H
|
|||
-
|
|||
-#if __GNUC__ >= 3
|
|||
-@PRAGMA_SYSTEM_HEADER@
|
|||
-#endif
|
|||
-
|
|||
-/* When including a system file that in turn includes <inttypes.h>,
|
|||
- use the system <inttypes.h>, not our substitute. This avoids
|
|||
- problems with (for example) VMS, whose <sys/bitypes.h> includes
|
|||
- <inttypes.h>. */
|
|||
-#define _gl_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H
|
|||
-
|
|||
-/* Get those types that are already defined in other system include
|
|||
- files, so that we can "#define int8_t signed char" below without
|
|||
- worrying about a later system include file containing a "typedef
|
|||
- signed char int8_t;" that will get messed up by our macro. Our
|
|||
- macros should all be consistent with the system versions, except
|
|||
- for the "fast" types and macros, which we recommend against using
|
|||
- in public interfaces due to compiler differences. */
|
|||
-
|
|||
-#if @HAVE_STDINT_H@
|
|||
-# if defined __sgi && ! defined __c99
|
|||
- /* Bypass IRIX's <stdint.h> if in C89 mode, since it merely annoys users
|
|||
- with "This header file is to be used only for c99 mode compilations"
|
|||
- diagnostics. */
|
|||
-# define __STDINT_H__
|
|||
-# endif
|
|||
- /* Other systems may have an incomplete or buggy <stdint.h>.
|
|||
- Include it before <inttypes.h>, since any "#include <stdint.h>"
|
|||
- in <inttypes.h> would reinclude us, skipping our contents because
|
|||
- _gl_GL_STDINT_H is defined.
|
|||
- The include_next requires a split double-inclusion guard. */
|
|||
-# @INCLUDE_NEXT@ @NEXT_STDINT_H@
|
|||
-#endif
|
|||
-
|
|||
-#if ! defined _gl_GL_STDINT_H && ! defined _gl_GL_JUST_INCLUDE_SYSTEM_STDINT_H
|
|||
-#define _gl_GL_STDINT_H
|
|||
-
|
|||
-/* <sys/types.h> defines some of the stdint.h types as well, on glibc,
|
|||
- IRIX 6.5, and OpenBSD 3.8 (via <machine/types.h>).
|
|||
- AIX 5.2 <sys/types.h> isn't needed and causes troubles.
|
|||
- MacOS X 10.4.6 <sys/types.h> includes <stdint.h> (which is us), but
|
|||
- relies on the system <stdint.h> definitions, so include
|
|||
- <sys/types.h> after @NEXT_STDINT_H@. */
|
|||
-#if @HAVE_SYS_TYPES_H@ && ! defined _AIX
|
|||
-# include <sys/types.h>
|
|||
-#endif
|
|||
-
|
|||
-/* Get LONG_MIN, LONG_MAX, ULONG_MAX. */
|
|||
-#include <limits.h>
|
|||
-
|
|||
-#if @HAVE_INTTYPES_H@
|
|||
- /* In OpenBSD 3.8, <inttypes.h> includes <machine/types.h>, which defines
|
|||
- int{8,16,32,64}_t, uint{8,16,32,64}_t and __BIT_TYPES_DEFINED__.
|
|||
- <inttypes.h> also defines intptr_t and uintptr_t. */
|
|||
-# include <inttypes.h>
|
|||
-#elif @HAVE_SYS_INTTYPES_H@
|
|||
- /* Solaris 7 <sys/inttypes.h> has the types except the *_fast*_t types, and
|
|||
- the macros except for *_FAST*_*, INTPTR_MIN, PTRDIFF_MIN, PTRDIFF_MAX. */
|
|||
-# include <sys/inttypes.h>
|
|||
-#endif
|
|||
-
|
|||
-#if @HAVE_SYS_BITYPES_H@ && ! defined __BIT_TYPES_DEFINED__
|
|||
- /* Linux libc4 >= 4.6.7 and libc5 have a <sys/bitypes.h> that defines
|
|||
- int{8,16,32,64}_t and __BIT_TYPES_DEFINED__. In libc5 >= 5.2.2 it is
|
|||
- included by <sys/types.h>. */
|
|||
-# include <sys/bitypes.h>
|
|||
-#endif
|
|||
-
|
|||
-#undef _gl_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H
|
|||
-
|
|||
-/* Minimum and maximum values for a integer type under the usual assumption.
|
|||
- Return an unspecified value if BITS == 0, adding a check to pacify
|
|||
- picky compilers. */
|
|||
-
|
|||
-#define _STDINT_MIN(signed, bits, zero) \
|
|||
- ((signed) ? (- ((zero) + 1) << ((bits) ? (bits) - 1 : 0)) : (zero))
|
|||
-
|
|||
-#define _STDINT_MAX(signed, bits, zero) \
|
|||
- ((signed) \
|
|||
- ? ~ _STDINT_MIN (signed, bits, zero) \
|
|||
- : /* The expression for the unsigned case. The subtraction of (signed) \
|
|||
- is a nop in the unsigned case and avoids "signed integer overflow" \
|
|||
- warnings in the signed case. */ \
|
|||
- ((((zero) + 1) << ((bits) ? (bits) - 1 - (signed) : 0)) - 1) * 2 + 1)
|
|||
-
|
|||
-/* 7.18.1.1. Exact-width integer types */
|
|||
-
|
|||
-/* Here we assume a standard architecture where the hardware integer
|
|||
- types have 8, 16, 32, optionally 64 bits. */
|
|||
-
|
|||
-#undef int8_t
|
|||
-#undef uint8_t
|
|||
-typedef signed char gl_int8_t;
|
|||
-typedef unsigned char gl_uint8_t;
|
|||
-#define int8_t gl_int8_t
|
|||
-#define uint8_t gl_uint8_t
|
|||
-
|
|||
-#undef int16_t
|
|||
-#undef uint16_t
|
|||
-typedef short int gl_int16_t;
|
|||
-typedef unsigned short int gl_uint16_t;
|
|||
-#define int16_t gl_int16_t
|
|||
-#define uint16_t gl_uint16_t
|
|||
-
|
|||
-#undef int32_t
|
|||
-#undef uint32_t
|
|||
-typedef int gl_int32_t;
|
|||
-typedef unsigned int gl_uint32_t;
|
|||
-#define int32_t gl_int32_t
|
|||
-#define uint32_t gl_uint32_t
|
|||
-
|
|||
-/* Do not undefine int64_t if gnulib is not being used with 64-bit
|
|||
- types, since otherwise it breaks platforms like Tandem/NSK. */
|
|||
-#if LONG_MAX >> 31 >> 31 == 1
|
|||
-# undef int64_t
|
|||
-typedef long int gl_int64_t;
|
|||
-# define int64_t gl_int64_t
|
|||
-# define GL_INT64_T
|
|||
-#elif defined _MSC_VER
|
|||
-# undef int64_t
|
|||
-typedef __int64 gl_int64_t;
|
|||
-# define int64_t gl_int64_t
|
|||
-# define GL_INT64_T
|
|||
-#elif @HAVE_LONG_LONG_INT@
|
|||
-# undef int64_t
|
|||
-typedef long long int gl_int64_t;
|
|||
-# define int64_t gl_int64_t
|
|||
-# define GL_INT64_T
|
|||
-#endif
|
|||
-
|
|||
-#if ULONG_MAX >> 31 >> 31 >> 1 == 1
|
|||
-# undef uint64_t
|
|||
-typedef unsigned long int gl_uint64_t;
|
|||
-# define uint64_t gl_uint64_t
|
|||
-# define GL_UINT64_T
|
|||
-#elif defined _MSC_VER
|
|||
-# undef uint64_t
|
|||
-typedef unsigned __int64 gl_uint64_t;
|
|||
-# define uint64_t gl_uint64_t
|
|||
-# define GL_UINT64_T
|
|||
-#elif @HAVE_UNSIGNED_LONG_LONG_INT@
|
|||
-# undef uint64_t
|
|||
-typedef unsigned long long int gl_uint64_t;
|
|||
-# define uint64_t gl_uint64_t
|
|||
-# define GL_UINT64_T
|
|||
-#endif
|
|||
-
|
|||
-/* Avoid collision with Solaris 2.5.1 <pthread.h> etc. */
|
|||
-#define _UINT8_T
|
|||
-#define _UINT32_T
|
|||
-#define _UINT64_T
|
|||
-
|
|||
-
|
|||
-/* 7.18.1.2. Minimum-width integer types */
|
|||
-
|
|||
-/* Here we assume a standard architecture where the hardware integer
|
|||
- types have 8, 16, 32, optionally 64 bits. Therefore the leastN_t types
|
|||
- are the same as the corresponding N_t types. */
|
|||
-
|
|||
-#undef int_least8_t
|
|||
-#undef uint_least8_t
|
|||
-#undef int_least16_t
|
|||
-#undef uint_least16_t
|
|||
-#undef int_least32_t
|
|||
-#undef uint_least32_t
|
|||
-#undef int_least64_t
|
|||
-#undef uint_least64_t
|
|||
-#define int_least8_t int8_t
|
|||
-#define uint_least8_t uint8_t
|
|||
-#define int_least16_t int16_t
|
|||
-#define uint_least16_t uint16_t
|
|||
-#define int_least32_t int32_t
|
|||
-#define uint_least32_t uint32_t
|
|||
-#ifdef GL_INT64_T
|
|||
-# define int_least64_t int64_t
|
|||
-#endif
|
|||
-#ifdef GL_UINT64_T
|
|||
-# define uint_least64_t uint64_t
|
|||
-#endif
|
|||
-
|
|||
-/* 7.18.1.3. Fastest minimum-width integer types */
|
|||
-
|
|||
-/* Note: Other <stdint.h> substitutes may define these types differently.
|
|||
- It is not recommended to use these types in public header files. */
|
|||
-
|
|||
-/* Here we assume a standard architecture where the hardware integer
|
|||
- types have 8, 16, 32, optionally 64 bits. Therefore the fastN_t types
|
|||
- are taken from the same list of types. Assume that 'long int'
|
|||
- is fast enough for all narrower integers. */
|
|||
-
|
|||
-#undef int_fast8_t
|
|||
-#undef uint_fast8_t
|
|||
-#undef int_fast16_t
|
|||
-#undef uint_fast16_t
|
|||
-#undef int_fast32_t
|
|||
-#undef uint_fast32_t
|
|||
-#undef int_fast64_t
|
|||
-#undef uint_fast64_t
|
|||
-typedef long int gl_int_fast8_t;
|
|||
-typedef unsigned long int gl_uint_fast8_t;
|
|||
-typedef long int gl_int_fast16_t;
|
|||
-typedef unsigned long int gl_uint_fast16_t;
|
|||
-typedef long int gl_int_fast32_t;
|
|||
-typedef unsigned long int gl_uint_fast32_t;
|
|||
-#define int_fast8_t gl_int_fast8_t
|
|||
-#define uint_fast8_t gl_uint_fast8_t
|
|||
-#define int_fast16_t gl_int_fast16_t
|
|||
-#define uint_fast16_t gl_uint_fast16_t
|
|||
-#define int_fast32_t gl_int_fast32_t
|
|||
-#define uint_fast32_t gl_uint_fast32_t
|
|||
-#ifdef GL_INT64_T
|
|||
-# define int_fast64_t int64_t
|
|||
-#endif
|
|||
-#ifdef GL_UINT64_T
|
|||
-# define uint_fast64_t uint64_t
|
|||
-#endif
|
|||
-
|
|||
-/* 7.18.1.4. Integer types capable of holding object pointers */
|
|||
-
|
|||
-#undef intptr_t
|
|||
-#undef uintptr_t
|
|||
-typedef long int gl_intptr_t;
|
|||
-typedef unsigned long int gl_uintptr_t;
|
|||
-#define intptr_t gl_intptr_t
|
|||
-#define uintptr_t gl_uintptr_t
|
|||
-
|
|||
-/* 7.18.1.5. Greatest-width integer types */
|
|||
-
|
|||
-/* Note: These types are compiler dependent. It may be unwise to use them in
|
|||
- public header files. */
|
|||
-
|
|||
-#undef intmax_t
|
|||
-#if @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1
|
|||
-typedef long long int gl_intmax_t;
|
|||
-# define intmax_t gl_intmax_t
|
|||
-#elif defined GL_INT64_T
|
|||
-# define intmax_t int64_t
|
|||
-#else
|
|||
-typedef long int gl_intmax_t;
|
|||
-# define intmax_t gl_intmax_t
|
|||
-#endif
|
|||
-
|
|||
-#undef uintmax_t
|
|||
-#if @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1
|
|||
-typedef unsigned long long int gl_uintmax_t;
|
|||
-# define uintmax_t gl_uintmax_t
|
|||
-#elif defined GL_UINT64_T
|
|||
-# define uintmax_t uint64_t
|
|||
-#else
|
|||
-typedef unsigned long int gl_uintmax_t;
|
|||
-# define uintmax_t gl_uintmax_t
|
|||
-#endif
|
|||
-
|
|||
-/* Verify that intmax_t and uintmax_t have the same size. Too much code
|
|||
- breaks if this is not the case. If this check fails, the reason is likely
|
|||
- to be found in the autoconf macros. */
|
|||
-typedef int _verify_intmax_size[2 * (sizeof (intmax_t) == sizeof (uintmax_t)) - 1];
|
|||
-
|
|||
-/* 7.18.2. Limits of specified-width integer types */
|
|||
-
|
|||
-#if ! defined __cplusplus || defined __STDC_LIMIT_MACROS
|
|||
-
|
|||
-/* 7.18.2.1. Limits of exact-width integer types */
|
|||
-
|
|||
-/* Here we assume a standard architecture where the hardware integer
|
|||
- types have 8, 16, 32, optionally 64 bits. */
|
|||
-
|
|||
-#undef INT8_MIN
|
|||
-#undef INT8_MAX
|
|||
-#undef UINT8_MAX
|
|||
-#define INT8_MIN (~ INT8_MAX)
|
|||
-#define INT8_MAX 127
|
|||
-#define UINT8_MAX 255
|
|||
-
|
|||
-#undef INT16_MIN
|
|||
-#undef INT16_MAX
|
|||
-#undef UINT16_MAX
|
|||
-#define INT16_MIN (~ INT16_MAX)
|
|||
-#define INT16_MAX 32767
|
|||
-#define UINT16_MAX 65535
|
|||
-
|
|||
-#undef INT32_MIN
|
|||
-#undef INT32_MAX
|
|||
-#undef UINT32_MAX
|
|||
-#define INT32_MIN (~ INT32_MAX)
|
|||
-#define INT32_MAX 2147483647
|
|||
-#define UINT32_MAX 4294967295U
|
|||
-
|
|||
-#undef INT64_MIN
|
|||
-#undef INT64_MAX
|
|||
-#ifdef GL_INT64_T
|
|||
-/* Prefer (- INTMAX_C (1) << 63) over (~ INT64_MAX) because SunPRO C 5.0
|
|||
- evaluates the latter incorrectly in preprocessor expressions. */
|
|||
-# define INT64_MIN (- INTMAX_C (1) << 63)
|
|||
-# define INT64_MAX INTMAX_C (9223372036854775807)
|
|||
-#endif
|
|||
-
|
|||
-#undef UINT64_MAX
|
|||
-#ifdef GL_UINT64_T
|
|||
-# define UINT64_MAX UINTMAX_C (18446744073709551615)
|
|||
-#endif
|
|||
-
|
|||
-/* 7.18.2.2. Limits of minimum-width integer types */
|
|||
-
|
|||
-/* Here we assume a standard architecture where the hardware integer
|
|||
- types have 8, 16, 32, optionally 64 bits. Therefore the leastN_t types
|
|||
- are the same as the corresponding N_t types. */
|
|||
-
|
|||
-#undef INT_LEAST8_MIN
|
|||
-#undef INT_LEAST8_MAX
|
|||
-#undef UINT_LEAST8_MAX
|
|||
-#define INT_LEAST8_MIN INT8_MIN
|
|||
-#define INT_LEAST8_MAX INT8_MAX
|
|||
-#define UINT_LEAST8_MAX UINT8_MAX
|
|||
-
|
|||
-#undef INT_LEAST16_MIN
|
|||
-#undef INT_LEAST16_MAX
|
|||
-#undef UINT_LEAST16_MAX
|
|||
-#define INT_LEAST16_MIN INT16_MIN
|
|||
-#define INT_LEAST16_MAX INT16_MAX
|
|||
-#define UINT_LEAST16_MAX UINT16_MAX
|
|||
-
|
|||
-#undef INT_LEAST32_MIN
|
|||
-#undef INT_LEAST32_MAX
|
|||
-#undef UINT_LEAST32_MAX
|
|||
-#define INT_LEAST32_MIN INT32_MIN
|
|||
-#define INT_LEAST32_MAX INT32_MAX
|
|||
-#define UINT_LEAST32_MAX UINT32_MAX
|
|||
-
|
|||
-#undef INT_LEAST64_MIN
|
|||
-#undef INT_LEAST64_MAX
|
|||
-#ifdef GL_INT64_T
|
|||
-# define INT_LEAST64_MIN INT64_MIN
|
|||
-# define INT_LEAST64_MAX INT64_MAX
|
|||
-#endif
|
|||
-
|
|||
-#undef UINT_LEAST64_MAX
|
|||
-#ifdef GL_UINT64_T
|
|||
-# define UINT_LEAST64_MAX UINT64_MAX
|
|||
-#endif
|
|||
-
|
|||
-/* 7.18.2.3. Limits of fastest minimum-width integer types */
|
|||
-
|
|||
-/* Here we assume a standard architecture where the hardware integer
|
|||
- types have 8, 16, 32, optionally 64 bits. Therefore the fastN_t types
|
|||
- are taken from the same list of types. */
|
|||
-
|
|||
-#undef INT_FAST8_MIN
|
|||
-#undef INT_FAST8_MAX
|
|||
-#undef UINT_FAST8_MAX
|
|||
-#define INT_FAST8_MIN LONG_MIN
|
|||
-#define INT_FAST8_MAX LONG_MAX
|
|||
-#define UINT_FAST8_MAX ULONG_MAX
|
|||
-
|
|||
-#undef INT_FAST16_MIN
|
|||
-#undef INT_FAST16_MAX
|
|||
-#undef UINT_FAST16_MAX
|
|||
-#define INT_FAST16_MIN LONG_MIN
|
|||
-#define INT_FAST16_MAX LONG_MAX
|
|||
-#define UINT_FAST16_MAX ULONG_MAX
|
|||
-
|
|||
-#undef INT_FAST32_MIN
|
|||
-#undef INT_FAST32_MAX
|
|||
-#undef UINT_FAST32_MAX
|
|||
-#define INT_FAST32_MIN LONG_MIN
|
|||
-#define INT_FAST32_MAX LONG_MAX
|
|||
-#define UINT_FAST32_MAX ULONG_MAX
|
|||
-
|
|||
-#undef INT_FAST64_MIN
|
|||
-#undef INT_FAST64_MAX
|
|||
-#ifdef GL_INT64_T
|
|||
-# define INT_FAST64_MIN INT64_MIN
|
|||
-# define INT_FAST64_MAX INT64_MAX
|
|||
-#endif
|
|||
-
|
|||
-#undef UINT_FAST64_MAX
|
|||
-#ifdef GL_UINT64_T
|
|||
-# define UINT_FAST64_MAX UINT64_MAX
|
|||
-#endif
|
|||
-
|
|||
-/* 7.18.2.4. Limits of integer types capable of holding object pointers */
|
|||
-
|
|||
-#undef INTPTR_MIN
|
|||
-#undef INTPTR_MAX
|
|||
-#undef UINTPTR_MAX
|
|||
-#define INTPTR_MIN LONG_MIN
|
|||
-#define INTPTR_MAX LONG_MAX
|
|||
-#define UINTPTR_MAX ULONG_MAX
|
|||
-
|
|||
-/* 7.18.2.5. Limits of greatest-width integer types */
|
|||
-
|
|||
-#undef INTMAX_MIN
|
|||
-#undef INTMAX_MAX
|
|||
-#ifdef INT64_MAX
|
|||
-# define INTMAX_MIN INT64_MIN
|
|||
-# define INTMAX_MAX INT64_MAX
|
|||
-#else
|
|||
-# define INTMAX_MIN INT32_MIN
|
|||
-# define INTMAX_MAX INT32_MAX
|
|||
-#endif
|
|||
-
|
|||
-#undef UINTMAX_MAX
|
|||
-#ifdef UINT64_MAX
|
|||
-# define UINTMAX_MAX UINT64_MAX
|
|||
-#else
|
|||
-# define UINTMAX_MAX UINT32_MAX
|
|||
-#endif
|
|||
-
|
|||
-/* 7.18.3. Limits of other integer types */
|
|||
-
|
|||
-/* ptrdiff_t limits */
|
|||
-#undef PTRDIFF_MIN
|
|||
-#undef PTRDIFF_MAX
|
|||
-#if @APPLE_UNIVERSAL_BUILD@
|
|||
-# ifdef _LP64
|
|||
-# define PTRDIFF_MIN _STDINT_MIN (1, 64, 0l)
|
|||
-# define PTRDIFF_MAX _STDINT_MAX (1, 64, 0l)
|
|||
-# else
|
|||
-# define PTRDIFF_MIN _STDINT_MIN (1, 32, 0)
|
|||
-# define PTRDIFF_MAX _STDINT_MAX (1, 32, 0)
|
|||
-# endif
|
|||
-#else
|
|||
-# define PTRDIFF_MIN \
|
|||
- _STDINT_MIN (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@)
|
|||
-# define PTRDIFF_MAX \
|
|||
- _STDINT_MAX (1, @BITSIZEOF_PTRDIFF_T@, 0@PTRDIFF_T_SUFFIX@)
|
|||
-#endif
|
|||
-
|
|||
-/* sig_atomic_t limits */
|
|||
-#undef SIG_ATOMIC_MIN
|
|||
-#undef SIG_ATOMIC_MAX
|
|||
-#define SIG_ATOMIC_MIN \
|
|||
- _STDINT_MIN (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \
|
|||
- 0@SIG_ATOMIC_T_SUFFIX@)
|
|||
-#define SIG_ATOMIC_MAX \
|
|||
- _STDINT_MAX (@HAVE_SIGNED_SIG_ATOMIC_T@, @BITSIZEOF_SIG_ATOMIC_T@, \
|
|||
- 0@SIG_ATOMIC_T_SUFFIX@)
|
|||
-
|
|||
-
|
|||
-/* size_t limit */
|
|||
-#undef SIZE_MAX
|
|||
-#if @APPLE_UNIVERSAL_BUILD@
|
|||
-# ifdef _LP64
|
|||
-# define SIZE_MAX _STDINT_MAX (0, 64, 0ul)
|
|||
-# else
|
|||
-# define SIZE_MAX _STDINT_MAX (0, 32, 0ul)
|
|||
-# endif
|
|||
-#else
|
|||
-# define SIZE_MAX _STDINT_MAX (0, @BITSIZEOF_SIZE_T@, 0@SIZE_T_SUFFIX@)
|
|||
-#endif
|
|||
-
|
|||
-/* wchar_t limits */
|
|||
-/* Get WCHAR_MIN, WCHAR_MAX.
|
|||
- This include is not on the top, above, because on OSF/1 4.0 we have a sequence of nested
|
|||
- includes <wchar.h> -> <stdio.h> -> <getopt.h> -> <stdlib.h>, and the latter includes
|
|||
- <stdint.h> and assumes its types are already defined. */
|
|||
-#if ! (defined WCHAR_MIN && defined WCHAR_MAX)
|
|||
-# define _gl_GL_JUST_INCLUDE_SYSTEM_WCHAR_H
|
|||
-# include <wchar.h>
|
|||
-# undef _gl_GL_JUST_INCLUDE_SYSTEM_WCHAR_H
|
|||
-#endif
|
|||
-#undef WCHAR_MIN
|
|||
-#undef WCHAR_MAX
|
|||
-#define WCHAR_MIN \
|
|||
- _STDINT_MIN (@HAVE_SIGNED_WCHAR_T@, @BITSIZEOF_WCHAR_T@, 0@WCHAR_T_SUFFIX@)
|
|||
-#define WCHAR_MAX \
|
|||
- _STDINT_MAX (@HAVE_SIGNED_WCHAR_T@, @BITSIZEOF_WCHAR_T@, 0@WCHAR_T_SUFFIX@)
|
|||
-
|
|||
-/* wint_t limits */
|
|||
-#undef WINT_MIN
|
|||
-#undef WINT_MAX
|
|||
-#define WINT_MIN \
|
|||
- _STDINT_MIN (@HAVE_SIGNED_WINT_T@, @BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@)
|
|||
-#define WINT_MAX \
|
|||
- _STDINT_MAX (@HAVE_SIGNED_WINT_T@, @BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@)
|
|||
-
|
|||
-#endif /* !defined __cplusplus || defined __STDC_LIMIT_MACROS */
|
|||
-
|
|||
-/* 7.18.4. Macros for integer constants */
|
|||
-
|
|||
-#if ! defined __cplusplus || defined __STDC_CONSTANT_MACROS
|
|||
-
|
|||
-/* 7.18.4.1. Macros for minimum-width integer constants */
|
|||
-/* According to ISO C 99 Technical Corrigendum 1 */
|
|||
-
|
|||
-/* Here we assume a standard architecture where the hardware integer
|
|||
- types have 8, 16, 32, optionally 64 bits, and int is 32 bits. */
|
|||
-
|
|||
-#undef INT8_C
|
|||
-#undef UINT8_C
|
|||
-#define INT8_C(x) x
|
|||
-#define UINT8_C(x) x
|
|||
-
|
|||
-#undef INT16_C
|
|||
-#undef UINT16_C
|
|||
-#define INT16_C(x) x
|
|||
-#define UINT16_C(x) x
|
|||
-
|
|||
-#undef INT32_C
|
|||
-#undef UINT32_C
|
|||
-#define INT32_C(x) x
|
|||
-#define UINT32_C(x) x ## U
|
|||
-
|
|||
-#undef INT64_C
|
|||
-#undef UINT64_C
|
|||
-#if LONG_MAX >> 31 >> 31 == 1
|
|||
-# define INT64_C(x) x##L
|
|||
-#elif defined _MSC_VER
|
|||
-# define INT64_C(x) x##i64
|
|||
-#elif @HAVE_LONG_LONG_INT@
|
|||
-# define INT64_C(x) x##LL
|
|||
-#endif
|
|||
-#if ULONG_MAX >> 31 >> 31 >> 1 == 1
|
|||
-# define UINT64_C(x) x##UL
|
|||
-#elif defined _MSC_VER
|
|||
-# define UINT64_C(x) x##ui64
|
|||
-#elif @HAVE_UNSIGNED_LONG_LONG_INT@
|
|||
-# define UINT64_C(x) x##ULL
|
|||
-#endif
|
|||
-
|
|||
-/* 7.18.4.2. Macros for greatest-width integer constants */
|
|||
-
|
|||
-#undef INTMAX_C
|
|||
-#if @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1
|
|||
-# define INTMAX_C(x) x##LL
|
|||
-#elif defined GL_INT64_T
|
|||
-# define INTMAX_C(x) INT64_C(x)
|
|||
-#else
|
|||
-# define INTMAX_C(x) x##L
|
|||
-#endif
|
|||
-
|
|||
-#undef UINTMAX_C
|
|||
-#if @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1
|
|||
-# define UINTMAX_C(x) x##ULL
|
|||
-#elif defined GL_UINT64_T
|
|||
-# define UINTMAX_C(x) UINT64_C(x)
|
|||
-#else
|
|||
-# define UINTMAX_C(x) x##UL
|
|||
-#endif
|
|||
-
|
|||
-#endif /* !defined __cplusplus || defined __STDC_CONSTANT_MACROS */
|
|||
-
|
|||
-#endif /* _gl_GL_STDINT_H */
|
|||
-#endif /* !defined _gl_GL_STDINT_H && !defined _gl_GL_JUST_INCLUDE_SYSTEM_STDINT_H */
|
|||
+#include_next <stdint.h>
|
@ -0,0 +1,13 @@ |
|||
diff -u -r ../clisp-2.49/src/makemake.in ./src/makemake.in
|
|||
--- ../clisp-2.49/src/makemake.in 2010-07-07 11:15:35.000000000 -0400
|
|||
+++ ./src/makemake.in 2016-02-17 15:27:00.420198622 -0500
|
|||
@@ -651,9 +651,6 @@
|
|||
# We can cross-compile only with GCC |
|||
XCC=${COMPILER} # ${TSYS}-gcc |
|||
XCPP="${XCC} -E" |
|||
- XCPPFLAGS=''
|
|||
- XCFLAGS=''
|
|||
- XLDFLAGS=''
|
|||
XCC_GCC=true |
|||
XCC_NEED_DEEMA=false |
|||
else |
@ -1,67 +0,0 @@ |
|||
TERMUX_PKG_HOMEPAGE=http://gcc.gnu.org/ |
|||
TERMUX_PKG_DESCRIPTION="GNU C compiler" |
|||
TERMUX_PKG_DEPENDS="binutils, libgmp, libmpfr, libmpc, ndk-sysroot" |
|||
TERMUX_PKG_VERSION=5.3.0 |
|||
TERMUX_PKG_SRCURL=ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-${TERMUX_PKG_VERSION}/gcc-${TERMUX_PKG_VERSION}.tar.bz2 |
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-languages=c,c++ --with-system-zlib --disable-multilib --disable-lto" |
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-gmp=$TERMUX_PREFIX --with-mpfr=$TERMUX_PREFIX --with-mpc=$TERMUX_PREFIX" |
|||
# To build gcc as a PIE binary: |
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-stage1-ldflags=\"-specs=$TERMUX_SCRIPTDIR/termux.spec\"" |
|||
# TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --without-headers --with-local-prefix=$TERMUX_PREFIX/include" # FIXME: gcc5 trying |
|||
if [ "$TERMUX_ARCH" = "arm" ]; then |
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-arch=armv7-a --with-fpu=neon --with-float=hard" |
|||
elif [ "$TERMUX_ARCH" = "i686" ]; then |
|||
# -mstackrealign -msse3 -m32 |
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-arch=i686 --with-tune=atom --with-fpmath=sse" |
|||
fi |
|||
TERMUX_PKG_KEEP_STATIC_LIBRARIES="true" |
|||
TERMUX_PKG_RM_AFTER_INSTALL="bin/gcc-ar bin/gcc-ranlib bin/c++ bin/gcc-nm bin/*-linux-* lib/gcc/*-linux-*/${TERMUX_PKG_VERSION}/plugin lib/gcc/*-linux-*/${TERMUX_PKG_VERSION}/include-fixed lib/gcc/*-linux-*/$TERMUX_PKG_VERSION/install-tools libexec/gcc/*-linux-*/${TERMUX_PKG_VERSION}/plugin libexec/gcc/*-linux-*/${TERMUX_PKG_VERSION}/install-tools share/man/man7" |
|||
|
|||
export AR_FOR_TARGET="$AR" |
|||
export AS_FOR_TARGET="$AS" |
|||
export CC_FOR_TARGET="$CC" |
|||
export CFLAGS_FOR_TARGET="$CFLAGS" |
|||
export CPP_FOR_TARGET="$CPP" |
|||
export CPPFLAGS_FOR_TARGET="$CPPFLAGS" |
|||
export CXXFLAGS_FOR_TARGET="$CXXFLAGS" |
|||
export CXX_FOR_TARGET="$CXX" |
|||
export LDFLAGS_FOR_TARGET="$LDFLAGS" |
|||
export LD_FOR_TARGET="$LD" |
|||
export PKG_CONFIG_FOR_TARGET="$PKG_CONFIG" |
|||
export RANLIB_FOR_TARGET="$RANLIB" |
|||
|
|||
unset AR |
|||
unset AS |
|||
unset CC |
|||
unset CFLAGS |
|||
unset CPP |
|||
unset CPPFLAGS |
|||
unset CXXFLAGS |
|||
unset CXX |
|||
unset LDFLAGS |
|||
unset LD |
|||
unset PKG_CONFIG |
|||
unset RANLIB |
|||
|
|||
# TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --host=x86-linux-android" |
|||
|
|||
termux_step_make () { |
|||
make -j $TERMUX_MAKE_PROCESSES all-gcc |
|||
make -j $TERMUX_MAKE_PROCESSES all-target-libgcc |
|||
} |
|||
|
|||
termux_step_make_install () { |
|||
make install-gcc |
|||
make install-target-libgcc |
|||
} |
|||
|
|||
termux_step_post_make_install () { |
|||
if [ $TERMUX_ARCH = "arm" ]; then |
|||
# Note that moving to $TERMUX_PREFIX/lib/gcc/arm-linux-androideabi/${TERMUX_PKG_VERSION}/ |
|||
# allows compilation but fails to link at runtime |
|||
mv $TERMUX_PREFIX/lib/armv7-a/hard/libgcc_s* $TERMUX_PREFIX/lib/ |
|||
fi |
|||
|
|||
# Android 5.0 only supports PIE binaries, so build that by default with a specs file: |
|||
cp $TERMUX_SCRIPTDIR/termux.spec $TERMUX_PREFIX/lib/gcc/$TERMUX_HOST_PLATFORM/$TERMUX_PKG_VERSION/specs |
|||
} |
@ -1,3 +0,0 @@ |
|||
TERMUX_SUBPKG_INCLUDE="bin/g++ share/man/man1/g++.1 libexec/gcc/arm-linux-androideabi/4.9.2/cc1plus" |
|||
TERMUX_SUBPKG_DESCRIPTION="GNU C++ compiler" |
|||
TERMUX_SUBPKG_DEPENDS="gcc,ndk-stl" |
@ -1,3 +0,0 @@ |
|||
TERMUX_SUBPKG_INCLUDE="bin/gcov share/man/man1/gcov.1 lib/gcc/arm-linux-androideabi/4.9.1/libgcov.a" |
|||
TERMUX_SUBPKG_DESCRIPTION="GNU coverage testing tool" |
|||
TERMUX_SUBPKG_DEPENDS="gcc" |
@ -1,15 +0,0 @@ |
|||
From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788113 |
|||
|
|||
diff -u -r ../PRoot-5.1.0/src/arch.h ./src/arch.h
|
|||
--- ../PRoot-5.1.0/src/arch.h 2014-12-15 09:18:11.000000000 -0500
|
|||
+++ ./src/arch.h 2016-01-08 19:53:23.789378336 -0500
|
|||
@@ -125,6 +125,9 @@
|
|||
#define OFFSETOF_STAT_UID_32 0 |
|||
#define OFFSETOF_STAT_GID_32 0 |
|||
|
|||
+ #define EXEC_PIC_ADDRESS 0x500000000000
|
|||
+ #define INTERP_PIC_ADDRESS 0x6f0000000000
|
|||
+
|
|||
#elif defined(ARCH_X86) |
|||
|
|||
#define SYSNUMS_HEADER1 "syscall/sysnums-i386.h" |
@ -1,99 +0,0 @@ |
|||
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788113 |
|||
|
|||
diff -N -u -r ../PRoot-5.1.0/src/loader/assemble-arm64.h ./src/loader/assemble-arm64.h
|
|||
--- ../PRoot-5.1.0/src/loader/assembly-arm64.h 1969-12-31 19:00:00.000000000 -0500
|
|||
+++ ./src/loader/assembly-arm64.h 2016-01-08 20:12:46.494779723 -0500
|
|||
@@ -0,0 +1,93 @@
|
|||
+/* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
|
|||
+ *
|
|||
+ * This file is part of PRoot.
|
|||
+ *
|
|||
+ * Copyright (C) 2014 STMicroelectronics
|
|||
+ *
|
|||
+ * This program is free software; you can redistribute it and/or
|
|||
+ * modify it under the terms of the GNU General Public License as
|
|||
+ * published by the Free Software Foundation; either version 2 of the
|
|||
+ * License, or (at your option) any later version.
|
|||
+ *
|
|||
+ * This program is distributed in the hope that it will be useful, but
|
|||
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|||
+ * General Public License for more details.
|
|||
+ *
|
|||
+ * You should have received a copy of the GNU General Public License
|
|||
+ * along with this program; if not, write to the Free Software
|
|||
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|||
+ * 02110-1301 USA.
|
|||
+ */
|
|||
+
|
|||
+#define BRANCH(stack_pointer, destination) do { \
|
|||
+ asm volatile ( \
|
|||
+ "// Restore initial stack pointer. \n\t" \
|
|||
+ "mov sp, %0 \n\t" \
|
|||
+ " \n\t" \
|
|||
+ "// Clear rtld_fini. \n\t" \
|
|||
+ "mov x0, #0 \n\t" \
|
|||
+ " \n\t" \
|
|||
+ "// Start the program. \n\t" \
|
|||
+ "br %1 \n" \
|
|||
+ : /* no output */ \
|
|||
+ : "r" (stack_pointer), "r" (destination) \
|
|||
+ : "memory", "sp", "x0"); \
|
|||
+ __builtin_unreachable(); \
|
|||
+ } while (0)
|
|||
+
|
|||
+#define PREPARE_ARGS_1(arg1_) \
|
|||
+ register word_t arg1 asm("x0") = arg1_; \
|
|||
+
|
|||
+#define PREPARE_ARGS_3(arg1_, arg2_, arg3_) \
|
|||
+ PREPARE_ARGS_1(arg1_) \
|
|||
+ register word_t arg2 asm("x1") = arg2_; \
|
|||
+ register word_t arg3 asm("x2") = arg3_; \
|
|||
+
|
|||
+#define PREPARE_ARGS_4(arg1_, arg2_, arg3_, arg4_) \
|
|||
+ PREPARE_ARGS_3(arg1_, arg2_, arg3_) \
|
|||
+ register word_t arg4 asm("x3") = arg4_;
|
|||
+
|
|||
+#define PREPARE_ARGS_6(arg1_, arg2_, arg3_, arg4_, arg5_, arg6_) \
|
|||
+ PREPARE_ARGS_3(arg1_, arg2_, arg3_) \
|
|||
+ register word_t arg4 asm("x3") = arg4_; \
|
|||
+ register word_t arg5 asm("x4") = arg5_; \
|
|||
+ register word_t arg6 asm("x5") = arg6_;
|
|||
+
|
|||
+#define OUTPUT_CONTRAINTS_1 \
|
|||
+ "r" (arg1)
|
|||
+
|
|||
+#define OUTPUT_CONTRAINTS_3 \
|
|||
+ OUTPUT_CONTRAINTS_1, \
|
|||
+ "r" (arg2), "r" (arg3)
|
|||
+
|
|||
+#define OUTPUT_CONTRAINTS_4 \
|
|||
+ OUTPUT_CONTRAINTS_3, \
|
|||
+ "r" (arg4)
|
|||
+
|
|||
+#define OUTPUT_CONTRAINTS_6 \
|
|||
+ OUTPUT_CONTRAINTS_3, \
|
|||
+ "r" (arg4), "r" (arg5), "r" (arg6)
|
|||
+
|
|||
+#define SYSCALL(number_, nb_args, args...) \
|
|||
+ ({ \
|
|||
+ register word_t number asm("w8") = number_; \
|
|||
+ register word_t result asm("x0"); \
|
|||
+ PREPARE_ARGS_##nb_args(args) \
|
|||
+ asm volatile ( \
|
|||
+ "svc #0x00000000 \n\t" \
|
|||
+ : "=r" (result) \
|
|||
+ : "r" (number), \
|
|||
+ OUTPUT_CONTRAINTS_##nb_args \
|
|||
+ : "memory"); \
|
|||
+ result; \
|
|||
+ })
|
|||
+
|
|||
+#define OPENAT 56
|
|||
+#define CLOSE 57
|
|||
+#define MMAP 222
|
|||
+#define MMAP_OFFSET_SHIFT 0
|
|||
+#define EXECVE 221
|
|||
+#define EXIT 93
|
|||
+#define PRCTL 167
|
|||
+
|
@ -1,26 +0,0 @@ |
|||
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788113 |
|||
|
|||
diff -N -u -r ../PRoot-5.1.0/src/loader/loader.c ./src/loader/loader.c
|
|||
--- ../PRoot-5.1.0/src/loader/loader.c 2014-12-15 09:18:11.000000000 -0500
|
|||
+++ ./src/loader/loader.c 2016-01-08 20:16:54.746809929 -0500
|
|||
@@ -39,6 +39,8 @@
|
|||
# include "loader/assembly-x86_64.h" |
|||
#elif defined(ARCH_ARM_EABI) |
|||
# include "loader/assembly-arm.h" |
|||
+#elif defined(ARCH_ARM64)
|
|||
+# include "loader/assembly-arm64.h"
|
|||
#elif defined(ARCH_X86) |
|||
# include "loader/assembly-x86.h" |
|||
#else |
|||
@@ -134,7 +136,11 @@
|
|||
/* Fall through. */ |
|||
|
|||
case LOAD_ACTION_OPEN: |
|||
+#ifdef OPENAT
|
|||
+ fd = SYSCALL(OPENAT, 4, AT_FDCWD, stmt->open.string_address, O_RDONLY, 0);
|
|||
+#else
|
|||
fd = SYSCALL(OPEN, 3, stmt->open.string_address, O_RDONLY, 0); |
|||
+#endif
|
|||
if (unlikely((int) fd < 0)) |
|||
FATAL(); |
|||
|
@ -0,0 +1,14 @@ |
|||
diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm64/usr/include/stdlib.h ./usr/include/stdlib.h
|
|||
--- /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm64/usr/include/stdlib.h 2016-03-03 16:54:24.000000000 -0500
|
|||
+++ ./usr/include/stdlib.h 2016-03-22 16:38:58.589340159 -0400
|
|||
@@ -161,8 +161,8 @@
|
|||
extern int wctomb(char *, wchar_t); |
|||
extern size_t wcstombs(char *, const wchar_t *, size_t); |
|||
|
|||
-extern size_t __ctype_get_mb_cur_max(void);
|
|||
-#define MB_CUR_MAX __ctype_get_mb_cur_max()
|
|||
+/* Termux modification: Always utf-8. */
|
|||
+#define MB_CUR_MAX 4
|
|||
|
|||
__END_DECLS |
|||
|
@ -0,0 +1,14 @@ |
|||
diff -u -r ../apt-1.2.3/apt-pkg/deb/debindexfile.cc ./apt-pkg/deb/debindexfile.cc
|
|||
--- ../apt-1.2.3/apt-pkg/deb/debindexfile.cc 2016-02-10 12:02:45.000000000 -0500
|
|||
+++ ./apt-pkg/deb/debindexfile.cc 2016-02-18 02:44:56.707323056 -0500
|
|||
@@ -26,8 +26,10 @@
|
|||
|
|||
#include <stdio.h> |
|||
#include <iostream> |
|||
+#include <stdlib.h>
|
|||
#include <string> |
|||
#include <sstream> |
|||
+#include <unistd.h>
|
|||
|
|||
#include <sys/stat.h> |
|||
/*}}}*/ |
@ -1,11 +0,0 @@ |
|||
diff -u -r ../apt-1.1.3/apt-pkg/edsp/edspsystem.cc ./apt-pkg/edsp/edspsystem.cc
|
|||
--- ../apt-1.1.3/apt-pkg/edsp/edspsystem.cc 2015-11-30 03:08:24.000000000 -0500
|
|||
+++ ./apt-pkg/edsp/edspsystem.cc 2015-12-03 16:33:49.052450163 -0500
|
|||
@@ -21,6 +21,7 @@
|
|||
|
|||
#include <stddef.h> |
|||
#include <unistd.h> |
|||
+#include <stdlib.h> /* For mkdtemp */
|
|||
|
|||
#include <string> |
|||
#include <vector> |
@ -1,12 +1,12 @@ |
|||
diff -u -r ../aria2-1.18.8/src/a2io.h ./src/a2io.h
|
|||
--- ../aria2-1.18.8/src/a2io.h 2014-09-11 12:24:10.000000000 -0400
|
|||
+++ ./src/a2io.h 2014-12-21 13:11:23.147655665 -0500
|
|||
@@ -149,7 +149,7 @@
|
|||
# define a2fstat(fd, buf) fstat64(fd, buf) |
|||
diff -u -r ../aria2-1.20.0/src/a2io.h ./src/a2io.h
|
|||
--- ../aria2-1.20.0/src/a2io.h 2016-02-15 10:36:34.000000000 -0500
|
|||
+++ ./src/a2io.h 2016-03-07 18:34:51.855777471 -0500
|
|||
@@ -148,7 +148,7 @@
|
|||
#define a2fstat(fd, buf) fstat64(fd, buf) |
|||
// # define a2ftell(fd): No ftell64 and not used in aria2 |
|||
# define a2_struct_stat struct stat |
|||
-# define a2stat(path, buf) stat64(path, buf)
|
|||
+# define a2stat(path, buf) stat(path, buf)
|
|||
# define a2mkdir(path, openMode) mkdir(path, openMode) |
|||
# define a2utimbuf utimbuf |
|||
# define a2utime(path, times) ::utime(path, times) |
|||
#define a2_struct_stat struct stat |
|||
-#define a2stat(path, buf) stat64(path, buf)
|
|||
+#define a2stat(path, buf) stat(path, buf)
|
|||
#define a2mkdir(path, openMode) mkdir(path, openMode) |
|||
#define a2utimbuf utimbuf |
|||
#define a2utime(path, times) ::utime(path, times) |
|||
|
@ -1,22 +1,14 @@ |
|||
diff -u -r ../asciinema-1.1.1/Makefile ./Makefile
|
|||
--- ../asciinema-1.1.1/Makefile 2015-06-21 17:58:14.000000000 +0200
|
|||
+++ ./Makefile 2015-08-20 01:39:05.000000000 +0200
|
|||
@@ -1,6 +1,6 @@
|
|||
NAME=asciinema |
|||
VERSION=$(shell grep 'const Version' main.go | awk -F '"' '{print $$2}') |
|||
-COMMIT=$(shell git rev-parse --short HEAD)
|
|||
+COMMIT=1.1.1
|
|||
|
|||
DIRS=bin |
|||
INSTALL_DIRS=`find $(DIRS) -type d 2>/dev/null` |
|||
@@ -14,8 +14,8 @@
|
|||
diff -u -r ../asciinema-1.2.0/Makefile ./Makefile
|
|||
--- ../asciinema-1.2.0/Makefile 2016-02-22 06:00:31.000000000 -0500
|
|||
+++ ./Makefile 2016-03-07 18:42:26.516807994 -0500
|
|||
@@ -13,8 +13,8 @@
|
|||
|
|||
all: build |
|||
|
|||
-build: test
|
|||
- go build -o bin/asciinema -ldflags "-X main.GitCommit $(COMMIT)"
|
|||
- go build -o bin/asciinema
|
|||
+build:
|
|||
+ go build -o bin/asciinema -ldflags "-extldflags=-pie -X main.GitCommit $(COMMIT)"
|
|||
+ go build -o bin/asciinema -ldflags "-extldflags=-pie"
|
|||
|
|||
test: |
|||
go test ./... |
|||
|
@ -1,7 +1,7 @@ |
|||
TERMUX_PKG_HOMEPAGE=https://bash-completion.alioth.debian.org/ |
|||
TERMUX_PKG_HOMEPAGE=https://github.com/scop/bash-completion |
|||
TERMUX_PKG_DESCRIPTION="Programmable completion for the bash shell" |
|||
TERMUX_PKG_VERSION=2.1 |
|||
TERMUX_PKG_BUILD_REVISION=1 |
|||
TERMUX_PKG_SRCURL=https://bash-completion.alioth.debian.org/files/bash-completion-${TERMUX_PKG_VERSION}.tar.bz2 |
|||
TERMUX_PKG_VERSION=2.2 |
|||
TERMUX_PKG_SRCURL=https://github.com/scop/bash-completion/releases/download/${TERMUX_PKG_VERSION}/bash-completion-${TERMUX_PKG_VERSION}.tar.xz |
|||
TERMUX_PKG_FOLDERNAME=bash-completion-${TERMUX_PKG_VERSION} |
|||
TERMUX_PKG_DEPENDS="bash" |
|||
TERMUX_PKG_PLATFORM_INDEPENDENT=yes |
|||
|
@ -1,23 +0,0 @@ |
|||
From: Barry Warsaw <barry@python.org> |
|||
Subject: Fix bash: words: bad array subscript |
|||
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1289597 |
|||
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741479 |
|||
Origin: vendor, https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1289597 |
|||
Forwarded: yes, <20140312212729.17788.38099.reportbug@samba4.Chuck.local> |
|||
|
|||
---
|
|||
bash_completion | 2 +- |
|||
1 file changed, 1 insertion(+), 1 deletion(-) |
|||
|
|||
--- bash-completion.orig/bash_completion
|
|||
+++ bash-completion/bash_completion
|
|||
@@ -718,7 +718,7 @@ _init_completion()
|
|||
fi |
|||
done |
|||
|
|||
- [[ $cword -eq 0 ]] && return 1
|
|||
+ [[ $cword -le 0 ]] && return 1
|
|||
prev=${words[cword-1]} |
|||
|
|||
[[ ${split-} ]] && _split_longopt && split=true |
|||
|
@ -1,6 +1,9 @@ |
|||
TERMUX_PKG_HOMEPAGE=http://www.gnu.org/software/bison/ |
|||
TERMUX_PKG_DESCRIPTION="General-purpose parser generator" |
|||
TERMUX_PKG_VERSION=3.0.4 |
|||
TERMUX_PKG_BUILD_REVISION=1 |
|||
TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/bison/bison-${TERMUX_PKG_VERSION}.tar.xz |
|||
TERMUX_PKG_BUILD_IN_SRC=yes |
|||
TERMUX_PKG_HOSTBUILD=true |
|||
|
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="M4=m4" |
|||
|
@ -0,0 +1,12 @@ |
|||
diff -u -r ../busybox-1.24.1/editors/diff.c ./editors/diff.c
|
|||
--- ../busybox-1.24.1/editors/diff.c 2015-10-11 09:31:50.000000000 -0400
|
|||
+++ ./editors/diff.c 2016-02-08 05:23:45.890302334 -0500
|
|||
@@ -734,7 +734,7 @@
|
|||
* When we meet non-seekable file, we must make a temp copy. |
|||
*/ |
|||
if (lseek(fd, 0, SEEK_SET) == -1 && errno == ESPIPE) { |
|||
- char name[] = "/tmp/difXXXXXX";
|
|||
+ char name[] = "@TERMUX_PREFIX@/tmp/difXXXXXX";
|
|||
int fd_tmp = xmkstemp(name); |
|||
|
|||
unlink(name); |
@ -0,0 +1,18 @@ |
|||
The r11 of NDK removed dprintf. |
|||
|
|||
diff -u -r ../busybox-1.24.1/include/platform.h ./include/platform.h
|
|||
--- ../busybox-1.24.1/include/platform.h 2015-07-13 04:18:47.000000000 +0200
|
|||
+++ ./include/platform.h 2016-03-10 11:47:06.000000000 +0100
|
|||
@@ -480,11 +480,7 @@
|
|||
#endif |
|||
|
|||
#if defined(ANDROID) || defined(__ANDROID__) |
|||
-# if __ANDROID_API__ < 8
|
|||
-# undef HAVE_DPRINTF
|
|||
-# else
|
|||
-# define dprintf fdprintf
|
|||
-# endif
|
|||
+# undef HAVE_DPRINTF
|
|||
# if __ANDROID_API__ < 21 |
|||
# undef HAVE_TTYNAME_R |
|||
# undef HAVE_GETLINE |
@ -1,14 +0,0 @@ |
|||
fdprintf() does not exist in 64-bit bionic. |
|||
|
|||
diff -u -r ../busybox-1.24.1/include/platform.h ./include/platform.h |
|||
--- ../busybox-1.24.1/include/platform.h 2015-07-12 22:18:47.000000000 -0400 |
|||
+++ ./include/platform.h 2015-11-26 16:14:37.061610995 -0500 |
|||
@@ -480,7 +480,7 @@ |
|||
#endif |
|||
|
|||
#if defined(ANDROID) || defined(__ANDROID__) |
|||
-# if __ANDROID_API__ < 8 |
|||
+# if __ANDROID_API__ < 8 || defined(__LP64__) |
|||
# undef HAVE_DPRINTF |
|||
# else |
|||
# define dprintf fdprintf |
@ -0,0 +1,11 @@ |
|||
diff -u -r ../llvm-3.8.0.src/Makefile ./Makefile
|
|||
--- ../llvm-3.8.0.src/Makefile 2014-03-25 17:45:41.000000000 -0400
|
|||
+++ ./Makefile 2016-03-10 16:28:00.142389801 -0500
|
|||
@@ -69,7 +69,6 @@
|
|||
ifeq ($(MAKECMDGOALS),install-clang) |
|||
DIRS := tools/clang/tools/driver tools/clang/lib/Headers \ |
|||
tools/clang/tools/libclang \ |
|||
- tools/clang/tools/c-index-test \
|
|||
tools/clang/include/clang-c \ |
|||
tools/clang/runtime tools/clang/docs \ |
|||
tools/lto |
@ -1,11 +1,11 @@ |
|||
diff -u -r ../orig-src/tools/clang/tools/CMakeLists.txt ./tools/clang/tools/CMakeLists.txt
|
|||
--- ../orig-src/tools/clang/tools/CMakeLists.txt 2014-03-06 11:07:50.000000000 +0100
|
|||
+++ ./tools/clang/tools/CMakeLists.txt 2014-03-06 11:06:10.000000000 +0100
|
|||
@@ -3,7 +3,6 @@
|
|||
add_subdirectory(clang-format) |
|||
add_subdirectory(clang-format-vs) |
|||
--- ../orig-src/tools/clang/tools/CMakeLists.txt 2016-01-12 21:03:50.000000000 -0500
|
|||
+++ ./tools/clang/tools/CMakeLists.txt 2016-03-10 16:32:04.320055824 -0500
|
|||
@@ -6,7 +6,6 @@
|
|||
add_clang_subdirectory(clang-format-vs) |
|||
add_clang_subdirectory(clang-fuzzer) |
|||
|
|||
-add_subdirectory(c-index-test)
|
|||
add_subdirectory(libclang) |
|||
-add_clang_subdirectory(c-index-test)
|
|||
add_clang_subdirectory(libclang) |
|||
|
|||
if(CLANG_ENABLE_ARCMT) |
|||
|
@ -0,0 +1,14 @@ |
|||
TERMUX_PKG_HOMEPAGE=https://ctags.io/ |
|||
TERMUX_PKG_DESCRIPTION="Universal ctags: Source code index builder" |
|||
TERMUX_PKG_VERSION=0.0.20160317 |
|||
_COMMIT=6126cb13375fd659e53e7cd9a943446f72048c07 |
|||
TERMUX_PKG_SRCURL=https://github.com/universal-ctags/ctags/archive/${_COMMIT}.zip |
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-tmpdir=$TERMUX_PREFIX/tmp" |
|||
TERMUX_PKG_FOLDERNAME=ctags-$_COMMIT |
|||
TERMUX_PKG_BUILD_IN_SRC="yes" |
|||
|
|||
termux_step_post_extract_package () { |
|||
export regcomp_works=yes |
|||
cd $TERMUX_PKG_SRCDIR |
|||
./autogen.sh |
|||
} |
@ -0,0 +1,12 @@ |
|||
diff -u -r ../dpkg-1.18.4/lib/dpkg/dpkg.h ./lib/dpkg/dpkg.h
|
|||
--- ../dpkg-1.18.4/lib/dpkg/dpkg.h 2015-12-12 15:49:24.000000000 -0500
|
|||
+++ ./lib/dpkg/dpkg.h 2016-03-03 17:30:57.812372682 -0500
|
|||
@@ -92,7 +92,7 @@
|
|||
#define MAXUPDATES 250 |
|||
|
|||
#define DEFAULTSHELL "sh" |
|||
-#define DEFAULTPAGER "pager"
|
|||
+#define DEFAULTPAGER "less"
|
|||
|
|||
#define MD5HASHLEN 32 |
|||
#define MAXTRIGDIRECTIVE 256 |
@ -0,0 +1,16 @@ |
|||
diff -u -r ../dpkg-1.18.4/src/configure.c ./src/configure.c
|
|||
--- ../dpkg-1.18.4/src/configure.c 2015-11-26 18:53:41.000000000 -0500
|
|||
+++ ./src/configure.c 2016-03-03 17:41:42.494272593 -0500
|
|||
@@ -496,8 +496,10 @@
|
|||
pkg_name(pkg, pnaw_nonambig), cdr2.buf, |
|||
strerror(errno)); |
|||
if (!(what & CFOF_USER_DEL)) |
|||
- if (link(cdr.buf, cdr2.buf))
|
|||
- warning(_("%s: failed to link '%.250s' to '%.250s': %s"),
|
|||
+ /** Termux modification: Use rename(2) instead of link(2), to avoid hard
|
|||
+ links which does not work on Android 6.0 or later. */
|
|||
+ if (rename(cdr.buf, cdr2.buf))
|
|||
+ warning(_("%s: failed to rename '%.250s' to '%.250s': %s"),
|
|||
pkg_name(pkg, pnaw_nonambig), cdr.buf, |
|||
cdr2.buf, strerror(errno)); |
|||
/* Fall through. */ |
@ -1,12 +0,0 @@ |
|||
diff -u -r ../emacs-24.5/Makefile.in ./Makefile.in
|
|||
--- ../emacs-24.5/Makefile.in 2015-04-02 03:23:06.000000000 -0400
|
|||
+++ ./Makefile.in 2015-08-03 19:41:45.006522243 -0400
|
|||
@@ -307,7 +307,7 @@
|
|||
sed < ${srcdir}/src/epaths.in > epaths.h.$$$$ \ |
|||
-e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'"$${standardlisppath}"'";' \ |
|||
-e 's;\(#.*PATH_SITELOADSEARCH\).*$$;\1 "'"$${locallisppath}"'";' \ |
|||
- -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'"$${buildlisppath}"'";' \
|
|||
+ -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'"$${standardlisppath}"'";' \
|
|||
-e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \ |
|||
-e 's;\(#.*PATH_INFO\).*$$;\1 "${infodir}";' \ |
|||
-e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \ |
@ -1,27 +0,0 @@ |
|||
diff -u -r ../emacs-24.4/lib-src/Makefile.in ./lib-src/Makefile.in
|
|||
--- ../emacs-24.4/lib-src/Makefile.in 2014-04-29 16:52:57.000000000 +0200
|
|||
+++ ./lib-src/Makefile.in 2014-11-01 12:29:44.881760880 +0100
|
|||
@@ -128,7 +128,7 @@
|
|||
UTILITIES = profile${EXEEXT} movemail${EXEEXT} hexl${EXEEXT} \ |
|||
update-game-score${EXEEXT} |
|||
|
|||
-DONT_INSTALL= test-distrib${EXEEXT} make-docfile${EXEEXT}
|
|||
+DONT_INSTALL= make-docfile${EXEEXT}
|
|||
|
|||
# Like UTILITIES, but they're not system-dependent, and should not be |
|||
# deleted by the distclean target. |
|||
@@ -303,14 +303,6 @@
|
|||
TAGS: etags${EXEEXT} |
|||
etags *.[ch] |
|||
|
|||
-## This verifies that the non-ASCII characters in the file \`testfile\'
|
|||
-## have not been clobbered by whatever means were used to copy and
|
|||
-## distribute Emacs. If they were clobbered, all the .elc files were
|
|||
-## clobbered too.
|
|||
-test-distrib${EXEEXT}: ${srcdir}/test-distrib.c
|
|||
- $(CC) ${ALL_CFLAGS} -o test-distrib${EXEEXT} ${srcdir}/test-distrib.c
|
|||
- ./test-distrib ${srcdir}/testfile
|
|||
-
|
|||
../lib/libgnu.a: $(config_h) |
|||
cd ../lib && $(MAKE) libgnu.a |
|||
|
@ -0,0 +1,32 @@ |
|||
diff -u -r ../emacs-25.0.92/lisp/loadup.el ./lisp/loadup.el |
|||
--- ../emacs-25.0.92/lisp/loadup.el 2016-03-02 05:21:42.000000000 -0500 |
|||
+++ ./lisp/loadup.el 2016-03-25 21:40:48.314906360 -0400 |
|||
@@ -1,3 +1,7 @@ |
|||
+;; Termux patch: See |
|||
+;; https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-03/msg00471.html |
|||
+(setq-default bidi-display-reordering nil) |
|||
+ |
|||
;;; loadup.el --- load up standardly loaded Lisp files for Emacs |
|||
|
|||
;; Copyright (C) 1985-1986, 1992, 1994, 2001-2016 Free Software |
|||
@@ -110,6 +114,12 @@ |
|||
(load "format") |
|||
(load "bindings") |
|||
(load "window") ; Needed here for `replace-buffer-in-windows'. |
|||
+;; Termux patch: See |
|||
+;; https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-03/msg00679.html |
|||
+;; We are now capable of resizing the mini-windows, so give the |
|||
+;; variable its advertised default value (it starts as nil, see |
|||
+;; xdisp.c). |
|||
+(setq resize-mini-windows 'grow-only) |
|||
(setq load-source-file-function 'load-with-code-conversion) |
|||
(load "files") |
|||
|
|||
@@ -465,3 +475,7 @@ |
|||
;; End: |
|||
|
|||
;;; loadup.el ends here |
|||
+ |
|||
+;; Termux patch: See |
|||
+;; https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-03/msg00471.html |
|||
+(setq-default bidi-display-reordering t) |
@ -0,0 +1,21 @@ |
|||
diff -u -r ../emacs-25.0.92/lisp/subr.el ./lisp/subr.el |
|||
--- ../emacs-25.0.92/lisp/subr.el 2016-03-02 05:21:42.000000000 -0500 |
|||
+++ ./lisp/subr.el 2016-03-25 22:03:57.240066240 -0400 |
|||
@@ -2975,7 +2975,7 @@ |
|||
(declare (advertised-calling-convention (name buffer command) "23.1")) |
|||
(start-file-process |
|||
name buffer |
|||
- (if (file-remote-p default-directory) "/bin/sh" shell-file-name) |
|||
+ (if (file-remote-p default-directory) "@TERMUX_PREFIX@/bin/sh" shell-file-name) |
|||
(if (file-remote-p default-directory) "-c" shell-command-switch) |
|||
(mapconcat 'identity args " "))) |
|||
|
|||
@@ -3019,7 +3019,7 @@ |
|||
(declare (advertised-calling-convention |
|||
(command &optional infile buffer display) "24.5")) |
|||
(process-file |
|||
- (if (file-remote-p default-directory) "/bin/sh" shell-file-name) |
|||
+ (if (file-remote-p default-directory) "@TERMUX_PREFIX@/bin/sh" shell-file-name) |
|||
infile buffer display |
|||
(if (file-remote-p default-directory) "-c" shell-command-switch) |
|||
(mapconcat 'identity (cons command args) " "))) |
@ -0,0 +1,30 @@ |
|||
diff -u -r ../emacs-25.0.92/lisp/term.el ./lisp/term.el |
|||
--- ../emacs-25.0.92/lisp/term.el 2016-03-02 05:21:42.000000000 -0500 |
|||
+++ ./lisp/term.el 2016-03-25 22:01:42.366218150 -0400 |
|||
@@ -1346,7 +1346,7 @@ |
|||
(or explicit-shell-file-name |
|||
(getenv "ESHELL") |
|||
(getenv "SHELL") |
|||
- "/bin/sh")))) |
|||
+ "@TERMUX_PREFIX@/bin/sh")))) |
|||
(set-buffer (make-term "terminal" program)) |
|||
(term-mode) |
|||
(term-char-mode) |
|||
@@ -1466,7 +1466,7 @@ |
|||
;; do the decoding by hand on the parts that are made of chars. |
|||
(coding-system-for-read 'binary)) |
|||
(apply 'start-process name buffer |
|||
- "/bin/sh" "-c" |
|||
+ "@TERMUX_PREFIX@/bin/sh" "-c" |
|||
(format "stty -nl echo rows %d columns %d sane 2>/dev/null;\ |
|||
if [ $1 = .. ]; then shift; fi; exec \"$@\"" |
|||
term-height term-width) |
|||
@@ -4108,7 +4108,7 @@ |
|||
(or explicit-shell-file-name |
|||
(getenv "ESHELL") |
|||
(getenv "SHELL") |
|||
- "/bin/sh")))) |
|||
+ "@TERMUX_PREFIX@/bin/sh")))) |
|||
|
|||
;; Pick the name of the new buffer. |
|||
(setq term-ansi-buffer-name |
@ -0,0 +1,2 @@ |
|||
; Enable terminal mouse events: |
|||
(xterm-mouse-mode 1) |
@ -1,15 +0,0 @@ |
|||
diff -u -r ../emacs-24.5/src/Makefile.in ./src/Makefile.in
|
|||
--- ../emacs-24.5/src/Makefile.in 2015-04-02 03:23:06.000000000 -0400
|
|||
+++ ./src/Makefile.in 2015-08-03 19:25:48.870287123 -0400
|
|||
@@ -434,10 +434,7 @@
|
|||
rm -f emacs$(EXEEXT); \ |
|||
ln temacs$(EXEEXT) emacs$(EXEEXT); \ |
|||
else \ |
|||
- LC_ALL=C $(RUN_TEMACS) -batch -l loadup dump || exit 1; \
|
|||
- test "X$(PAXCTL)" = X || $(PAXCTL) -zex emacs$(EXEEXT); \
|
|||
- rm -f bootstrap-emacs$(EXEEXT); \
|
|||
- ln emacs$(EXEEXT) bootstrap-emacs$(EXEEXT); \
|
|||
+ cp temacs emacs; \
|
|||
fi |
|||
|
|||
## We run make-docfile twice because the command line may get too long |
@ -0,0 +1,12 @@ |
|||
diff -u -r ../emacs-25.0.92/src/callproc.c ./src/callproc.c
|
|||
--- ../emacs-25.0.92/src/callproc.c 2016-03-02 05:21:43.000000000 -0500
|
|||
+++ ./src/callproc.c 2016-03-25 22:02:38.977310920 -0400
|
|||
@@ -1619,7 +1619,7 @@
|
|||
dir_warning ("arch-independent data dir", Vdata_directory); |
|||
|
|||
sh = getenv ("SHELL"); |
|||
- Vshell_file_name = build_string (sh ? sh : "/bin/sh");
|
|||
+ Vshell_file_name = build_string (sh ? sh : "@TERMUX_PREFIX@/bin/sh");
|
|||
|
|||
#ifdef DOS_NT |
|||
Vshared_game_score_directory = Qnil; |
@ -0,0 +1,21 @@ |
|||
See https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-03/msg00679.html |
|||
|
|||
The other part of that patch is in lisp-loadup.el.patch |
|||
|
|||
diff -u -r ../emacs-25.0.92/src/xdisp.c ./src/xdisp.c
|
|||
--- ../emacs-25.0.92/src/xdisp.c 2016-03-02 05:21:43.000000000 -0500
|
|||
+++ ./src/xdisp.c 2016-03-25 21:25:36.960819633 -0400
|
|||
@@ -31598,7 +31598,12 @@
|
|||
A value of `grow-only', the default, means let mini-windows grow only; |
|||
they return to their normal size when the minibuffer is closed, or the |
|||
echo area becomes empty. */); |
|||
- Vresize_mini_windows = Qgrow_only;
|
|||
+ /* Contrary to the doc string, we initialize this to nil, so that
|
|||
+ loading loadup.el won't try to resize windows before loading
|
|||
+ window.el, where some functions we need to call for this live.
|
|||
+ We assign the 'grow-only' value right after loading window.el
|
|||
+ during loadup. */
|
|||
+ Vresize_mini_windows = Qnil;
|
|||
|
|||
DEFVAR_LISP ("blink-cursor-alist", Vblink_cursor_alist, |
|||
doc: /* Alist specifying how to blink the cursor off. |
@ -1,12 +0,0 @@ |
|||
diff -u -r ../emacs-24.4/src/unexelf.c ./src/unexelf.c
|
|||
--- ../emacs-24.4/src/unexelf.c 2014-03-21 01:34:40.000000000 -0400
|
|||
+++ ./src/unexelf.c 2015-01-01 15:26:13.000318635 -0500
|
|||
@@ -1323,7 +1323,7 @@
|
|||
if (stat (new_name, &stat_buf) != 0) |
|||
fatal ("Can't stat (%s): %s", new_name, strerror (errno)); |
|||
|
|||
- mask = umask (777);
|
|||
+ mask = umask (0777);
|
|||
umask (mask); |
|||
stat_buf.st_mode |= 0111 & ~mask; |
|||
if (chmod (new_name, stat_buf.st_mode) != 0) |
@ -0,0 +1,19 @@ |
|||
Avoid issue with strtod on arm: |
|||
https://github.com/termux/termux-packages/issues/179 |
|||
|
|||
diff -u -r ../ffmpeg-3.0/configure ./configure
|
|||
--- ../ffmpeg-3.0/configure 2016-02-14 21:29:37.000000000 -0500
|
|||
+++ ./configure 2016-03-24 20:44:33.472274113 -0400
|
|||
@@ -4814,12 +4814,6 @@
|
|||
probe_libc host_ |
|||
test -n "$host_libc_type" && enable host_libc_$host_libc_type |
|||
|
|||
-case $libc_type in
|
|||
- bionic)
|
|||
- add_compat strtod.o strtod=avpriv_strtod
|
|||
- ;;
|
|||
-esac
|
|||
-
|
|||
# hacks for compiler/libc/os combinations |
|||
|
|||
if enabled_all tms470 libc_glibc; then |
@ -0,0 +1,15 @@ |
|||
Avoid calling 'hostname' which may not exist (and will probably |
|||
return "localhost" anyway"). |
|||
|
|||
diff -u -r ../fish-shell-master/share/functions/fish_prompt.fish ./share/functions/fish_prompt.fish
|
|||
--- ../fish-shell-master/share/functions/fish_prompt.fish 2016-03-12 15:26:01.000000000 -0500
|
|||
+++ ./share/functions/fish_prompt.fish 2016-03-13 17:49:30.550445275 -0400
|
|||
@@ -5,7 +5,7 @@
|
|||
function fish_prompt --description "Write out the prompt" |
|||
# Just calculate this once, to save a few cycles when displaying the prompt |
|||
if not set -q __fish_prompt_hostname |
|||
- set -g __fish_prompt_hostname (hostname|cut -d . -f 1)
|
|||
+ set -g __fish_prompt_hostname "localhost"
|
|||
end |
|||
|
|||
set -l color_cwd |
@ -0,0 +1,12 @@ |
|||
diff -u -r ../fish-shell-master/share/functions/help.fish ./share/functions/help.fish
|
|||
--- ../fish-shell-master/share/functions/help.fish 2016-03-12 15:26:01.000000000 -0500
|
|||
+++ ./share/functions/help.fish 2016-03-14 12:08:13.804718800 -0400
|
|||
@@ -125,7 +125,7 @@
|
|||
end |
|||
else |
|||
# Go to the web. Only include one dot in the version string |
|||
- set -l version_string (echo $FISH_VERSION| cut -d . -f 1,2)
|
|||
+ set -l version_string current # Termux: We're building from git master for now.
|
|||
set page_url http://fishshell.com/docs/$version_string/$fish_help_page |
|||
end |
|||
|
@ -1,3 +1,3 @@ |
|||
TERMUX_SUBPKG_INCLUDE="bin/g++ share/man/man1/g++.1 libexec/gcc/arm-linux-androideabi/4.9.2/cc1plus" |
|||
TERMUX_SUBPKG_INCLUDE="bin/g++ bin/*-g++ share/man/man1/g++.1" |
|||
TERMUX_SUBPKG_DESCRIPTION="GNU C++ compiler" |
|||
TERMUX_SUBPKG_DEPENDS="gcc,ndk-stl" |
|||
|
@ -1,58 +0,0 @@ |
|||
The first block is to install aliases such as arm-linux-androideabi-gcc->gcc |
|||
as symlinks instead of hard links. |
|||
|
|||
diff -u -r ../gcc-4.9.3/gcc/Makefile.in ./gcc/Makefile.in
|
|||
--- ../gcc-4.9.3/gcc/Makefile.in 2014-10-16 09:50:42.000000000 -0400
|
|||
+++ ./gcc/Makefile.in 2015-08-16 18:12:44.446098799 -0400
|
|||
@@ -260,7 +260,7 @@
|
|||
INSTALL = @INSTALL@ |
|||
# Some systems may be missing symbolic links, regular links, or both. |
|||
# Allow configure to check this and use "ln -s", "ln", or "cp" as appropriate. |
|||
-LN=@LN@
|
|||
+LN=@LN_S@
|
|||
LN_S=@LN_S@ |
|||
# These permit overriding just for certain files. |
|||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|||
@@ -2430,27 +2430,29 @@
|
|||
|
|||
gengtype-lex.o build/gengtype-lex.o : gengtype-lex.c gengtype.h $(SYSTEM_H) |
|||
gengtype-lex.o: $(CONFIG_H) $(BCONFIG_H) |
|||
-CFLAGS-gengtype-lex.o += -DGENERATOR_FILE
|
|||
+CFLAGS-build/gengtype-lex.o += -DGENERATOR_FILE
|
|||
build/gengtype-lex.o: $(BCONFIG_H) |
|||
|
|||
gengtype-parse.o build/gengtype-parse.o : gengtype-parse.c gengtype.h \ |
|||
$(SYSTEM_H) |
|||
gengtype-parse.o: $(CONFIG_H) |
|||
-CFLAGS-gengtype-parse.o += -DGENERATOR_FILE
|
|||
+CFLAGS-build/gengtype-parse.o += -DGENERATOR_FILE
|
|||
build/gengtype-parse.o: $(BCONFIG_H) |
|||
|
|||
gengtype-state.o build/gengtype-state.o: gengtype-state.c $(SYSTEM_H) \ |
|||
gengtype.h errors.h double-int.h version.h $(HASHTAB_H) $(OBSTACK_H) \ |
|||
$(XREGEX_H) |
|||
gengtype-state.o: $(CONFIG_H) |
|||
-CFLAGS-gengtype-state.o += -DGENERATOR_FILE
|
|||
+CFLAGS-gengtype-state.o += -DGENERATOR_FILE2
|
|||
+CFLAGS-build/gengtype-state.o += -DGENERATOR_FILE
|
|||
build/gengtype-state.o: $(BCONFIG_H) |
|||
|
|||
gengtype.o build/gengtype.o : gengtype.c $(SYSTEM_H) gengtype.h \ |
|||
rtl.def insn-notes.def errors.h double-int.h version.h $(HASHTAB_H) \ |
|||
$(OBSTACK_H) $(XREGEX_H) |
|||
gengtype.o: $(CONFIG_H) |
|||
-CFLAGS-gengtype.o += -DGENERATOR_FILE
|
|||
+CFLAGS-gengtype.o += -DGENERATOR_FILE2
|
|||
+CFLAGS-build/gengtype.o += -DGENERATOR_FILE
|
|||
build/gengtype.o: $(BCONFIG_H) |
|||
|
|||
build/genmddeps.o: genmddeps.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h \ |
|||
@@ -2515,7 +2517,7 @@
|
|||
# any system header is included. |
|||
gengtype-lex.c : gengtype-lex.l |
|||
-$(FLEX) $(FLEXFLAGS) -o$@ $< && { \ |
|||
- echo '#include "bconfig.h"' > $@.tmp; \
|
|||
+ echo '' > $@.tmp; \
|
|||
cat $@ >> $@.tmp; \ |
|||
mv $@.tmp $@; \ |
|||
} |
@ -0,0 +1,65 @@ |
|||
From https://github.com/crystax/android-toolchain-gcc-5/commit/1e57465b9b81699ce8eb603dd4794a839a74c635 |
|||
|
|||
diff -N -u -r ../gcc-5.3.0/gcc/config/aarch64/aarch64-linux-android.h ./gcc/config/aarch64/aarch64-linux-android.h
|
|||
--- ../gcc-5.3.0/gcc/config/aarch64/aarch64-linux-android.h 1969-12-31 19:00:00.000000000 -0500
|
|||
+++ ./gcc/config/aarch64/aarch64-linux-android.h 2016-03-19 21:08:15.423913071 -0400
|
|||
@@ -0,0 +1,59 @@
|
|||
+/* Machine description for AArch64 architecture.
|
|||
+ Copyright (C) 2014 Free Software Foundation, Inc.
|
|||
+
|
|||
+ This file is part of GCC.
|
|||
+
|
|||
+ GCC is free software; you can redistribute it and/or modify it
|
|||
+ under the terms of the GNU General Public License as published by
|
|||
+ the Free Software Foundation; either version 3, or (at your option)
|
|||
+ any later version.
|
|||
+
|
|||
+ GCC is distributed in the hope that it will be useful, but
|
|||
+ WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|||
+ General Public License for more details.
|
|||
+
|
|||
+ You should have received a copy of the GNU General Public License
|
|||
+ along with GCC; see the file COPYING3. If not see
|
|||
+ <http://www.gnu.org/licenses/>. */
|
|||
+
|
|||
+#ifndef GCC_AARCH64_LINUX_ANDROID_H
|
|||
+#define GCC_AARCH64_LINUX_ANDROID_H
|
|||
+
|
|||
+
|
|||
+#undef TARGET_OS_CPP_BUILTINS
|
|||
+#define TARGET_OS_CPP_BUILTINS() \
|
|||
+ do \
|
|||
+ { \
|
|||
+ GNU_USER_TARGET_OS_CPP_BUILTINS(); \
|
|||
+ ANDROID_TARGET_OS_CPP_BUILTINS(); \
|
|||
+ } \
|
|||
+ while (0)
|
|||
+
|
|||
+#undef LINK_SPEC
|
|||
+#define LINK_SPEC \
|
|||
+ LINUX_OR_ANDROID_LD (LINUX_TARGET_LINK_SPEC, \
|
|||
+ LINUX_TARGET_LINK_SPEC " " ANDROID_LINK_SPEC)
|
|||
+
|
|||
+#undef CC1_SPEC
|
|||
+#define CC1_SPEC \
|
|||
+ LINUX_OR_ANDROID_CC (GNU_USER_TARGET_CC1_SPEC, \
|
|||
+ GNU_USER_TARGET_CC1_SPEC " " ANDROID_CC1_SPEC)
|
|||
+
|
|||
+#define CC1PLUS_SPEC \
|
|||
+ LINUX_OR_ANDROID_CC ("", ANDROID_CC1PLUS_SPEC)
|
|||
+
|
|||
+#undef LIB_SPEC
|
|||
+#define LIB_SPEC \
|
|||
+ LINUX_OR_ANDROID_LD (GNU_USER_TARGET_LIB_SPEC, \
|
|||
+ GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC " " ANDROID_LIB_SPEC)
|
|||
+
|
|||
+#undef STARTFILE_SPEC
|
|||
+#define STARTFILE_SPEC \
|
|||
+ LINUX_OR_ANDROID_LD (GNU_USER_TARGET_STARTFILE_SPEC, ANDROID_STARTFILE_SPEC)
|
|||
+
|
|||
+#undef ENDFILE_SPEC
|
|||
+#define ENDFILE_SPEC \
|
|||
+ LINUX_OR_ANDROID_LD (GNU_USER_TARGET_ENDFILE_SPEC, ANDROID_ENDFILE_SPEC)
|
|||
+
|
|||
+#endif /* GCC_AARCH64_LINUX_ANDROID_H */
|
@ -0,0 +1,18 @@ |
|||
From https://github.com/crystax/android-toolchain-gcc-5/commit/1e57465b9b81699ce8eb603dd4794a839a74c635 |
|||
|
|||
diff -u -r ../gcc-5.3.0/gcc/config/aarch64/aarch64-linux.h ./gcc/config/aarch64/aarch64-linux.h
|
|||
--- ../gcc-5.3.0/gcc/config/aarch64/aarch64-linux.h 2015-07-24 12:00:26.000000000 -0400
|
|||
+++ ./gcc/config/aarch64/aarch64-linux.h 2016-03-19 21:35:07.467502590 -0400
|
|||
@@ -23,6 +23,12 @@
|
|||
|
|||
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" |
|||
|
|||
+/* Use /sysystem/bin/linker64 as linker instead of 32-bit /system/bin/linker */
|
|||
+#ifdef BIONIC_DYNAMIC_LINKER
|
|||
+# undef BIONIC_DYNAMIC_LINKER
|
|||
+#endif
|
|||
+#define BIONIC_DYNAMIC_LINKER "/system/bin/linker64"
|
|||
+
|
|||
#undef ASAN_CC1_SPEC |
|||
#define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}" |
|||
|
@ -0,0 +1,22 @@ |
|||
diff -u -r ../gcc-5.3.0/gcc/config.gcc ./gcc/config.gcc
|
|||
--- ../gcc-5.3.0/gcc/config.gcc 2015-09-10 10:17:53.000000000 -0400
|
|||
+++ ./gcc/config.gcc 2016-03-19 21:07:44.888339715 -0400
|
|||
@@ -910,13 +910,17 @@
|
|||
TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'` |
|||
;; |
|||
aarch64*-*-linux*) |
|||
- tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h"
|
|||
+ tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h"
|
|||
tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-linux.h" |
|||
+ extra_options="${extra_options} linux-android.opt"
|
|||
tmake_file="${tmake_file} aarch64/t-aarch64 aarch64/t-aarch64-linux" |
|||
case $target in |
|||
aarch64_be-*) |
|||
tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1" |
|||
;; |
|||
+ aarch64*-*-linux-android*)
|
|||
+ tm_file="${tm_file} aarch64/aarch64-linux-android.h"
|
|||
+ ;;
|
|||
esac |
|||
aarch64_multilibs="${with_multilib_list}" |
|||
if test "$aarch64_multilibs" = "default"; then |
@ -1,51 +0,0 @@ |
|||
diff -u -r ../gcc-4.8.2/libcpp/files.c ./libcpp/files.c
|
|||
--- ../gcc-4.8.2/libcpp/files.c 2013-03-06 17:18:40.000000000 +0100
|
|||
+++ ./libcpp/files.c 2014-01-09 00:29:34.940181542 +0100
|
|||
@@ -716,11 +716,13 @@
|
|||
cpp_error (pfile, CPP_DL_WARNING, |
|||
"%s is shorter than expected", file->path); |
|||
|
|||
+ off_t ot = (off_t) &file->st.st_size;
|
|||
file->buffer = _cpp_convert_input (pfile, |
|||
CPP_OPTION (pfile, input_charset), |
|||
buf, size + 16, total, |
|||
&file->buffer_start, |
|||
- &file->st.st_size);
|
|||
+ &ot);
|
|||
+ file->st.st_size = ot;
|
|||
file->buffer_valid = true; |
|||
|
|||
return true; |
|||
diff -u -r ../gcc-4.8.2/libcpp/macro.c ./libcpp/macro.c
|
|||
--- ../gcc-4.8.2/libcpp/macro.c 2013-01-14 19:13:59.000000000 +0100
|
|||
+++ ./libcpp/macro.c 2014-01-09 00:30:49.416179764 +0100
|
|||
@@ -245,8 +245,10 @@
|
|||
looks like "Sun Sep 16 01:03:52 1973". */ |
|||
struct tm *tb = NULL; |
|||
struct stat *st = _cpp_get_file_stat (file); |
|||
- if (st)
|
|||
- tb = localtime (&st->st_mtime);
|
|||
+ if (st) {
|
|||
+ const time_t mtime = (const time_t) st->st_mtime;
|
|||
+ tb = localtime (&mtime);
|
|||
+ }
|
|||
if (tb) |
|||
{ |
|||
char *str = asctime (tb); |
|||
Index: gcc-4.8.1/gcc/double-int.h
|
|||
===================================================================
|
|||
--- ../gcc-4.8.1.orig/gcc/double-int.h 2013-01-30 11:04:30.000000000 +0000
|
|||
+++ ./gcc/double-int.h 2013-08-19 11:41:51.564012719 +0000
|
|||
@@ -448,10 +448,12 @@
|
|||
|
|||
|
|||
#ifndef GENERATOR_FILE |
|||
+#ifndef GENERATOR_FILE2
|
|||
/* Conversion to and from GMP integer representations. */ |
|||
|
|||
void mpz_set_double_int (mpz_t, double_int, bool); |
|||
double_int mpz_get_double_int (const_tree, mpz_t, bool); |
|||
#endif |
|||
+#endif
|
|||
|
|||
#endif /* DOUBLE_INT_H */ |
@ -1,3 +1,3 @@ |
|||
TERMUX_SUBPKG_INCLUDE="bin/gcov share/man/man1/gcov.1 lib/gcc/arm-linux-androideabi/4.9.1/libgcov.a" |
|||
TERMUX_SUBPKG_INCLUDE="bin/gcov bin/gcov-tool share/man/man1/gcov.1 lib/gcc/arm-linux-androideabi/4.9.1/libgcov.a" |
|||
TERMUX_SUBPKG_DESCRIPTION="GNU coverage testing tool" |
|||
TERMUX_SUBPKG_DEPENDS="gcc" |
|||
|
@ -0,0 +1,16 @@ |
|||
diff -u -r ../gcc-4.8.2/libcpp/macro.c ./libcpp/macro.c
|
|||
--- ../gcc-4.8.2/libcpp/macro.c 2013-01-14 19:13:59.000000000 +0100
|
|||
+++ ./libcpp/macro.c 2014-01-09 00:30:49.416179764 +0100
|
|||
@@ -245,8 +245,10 @@
|
|||
looks like "Sun Sep 16 01:03:52 1973". */ |
|||
struct tm *tb = NULL; |
|||
struct stat *st = _cpp_get_file_stat (file); |
|||
- if (st)
|
|||
- tb = localtime (&st->st_mtime);
|
|||
+ if (st) {
|
|||
+ const time_t mtime = (const time_t) st->st_mtime;
|
|||
+ tb = localtime (&mtime);
|
|||
+ }
|
|||
if (tb) |
|||
{ |
|||
char *str = asctime (tb); |
@ -0,0 +1,21 @@ |
|||
diff -u -r ../gdb-7.11/gdb/gdbserver/configure ./gdb/gdbserver/configure
|
|||
--- ../gdb-7.11/gdb/gdbserver/configure 2016-02-09 22:19:39.000000000 -0500
|
|||
+++ ./gdb/gdbserver/configure 2016-03-10 10:17:40.111988028 -0500
|
|||
@@ -6735,17 +6735,6 @@
|
|||
|
|||
|
|||
case "${target}" in |
|||
- *-android*)
|
|||
- # Starting with NDK version 9, <elf.h> actually includes definitions
|
|||
- # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
|
|||
- # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
|
|||
- # leading to conflicts with the defintions from <linux/elf.h>.
|
|||
- # This makes it impossible for us to include both <elf.h> and
|
|||
- # <linux/elf.h>, which means that, in practice, we do not have
|
|||
- # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
|
|||
- # Therefore, do not try to auto-detect availability, as it would
|
|||
- # get it wrong on this platform.
|
|||
- ;;
|
|||
*) |
|||
ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h> |
|||
|
@ -0,0 +1,18 @@ |
|||
diff -u -r ../gdb-7.10.1/gdb/inflow.c ./gdb/inflow.c
|
|||
--- ../gdb-7.10.1/gdb/inflow.c 2015-12-05 10:16:45.000000000 -0500
|
|||
+++ ./gdb/inflow.c 2016-02-07 19:28:38.979181296 -0500
|
|||
@@ -862,10 +862,10 @@
|
|||
{ |
|||
#if defined (HAVE_TERMIOS) || defined (TIOCGPGRP) |
|||
#ifdef HAVE_SETPGID |
|||
- /* The call setpgid (0, 0) is supposed to work and mean the same
|
|||
- thing as this, but on Ultrix 4.2A it fails with EPERM (and
|
|||
- setpgid (getpid (), getpid ()) succeeds). */
|
|||
- retval = setpgid (getpid (), getpid ());
|
|||
+ /* Termux change: setpgid(getpid(), getpid()), which is used upstream
|
|||
+ for working around Ultrix 4.2A issue, does not work on Android but
|
|||
+ fails with ESRCH. So revert back to simple setpgid(0,0). */
|
|||
+ retval = setpgid (0, 0);
|
|||
#else |
|||
#ifdef HAVE_SETPGRP |
|||
#ifdef SETPGRP_VOID |
@ -0,0 +1,20 @@ |
|||
diff -u -r ../gdb-7.10.1/gdb/solib.c ./gdb/solib.c
|
|||
--- ../gdb-7.10.1/gdb/solib.c 2015-12-05 10:16:45.000000000 -0500
|
|||
+++ ./gdb/solib.c 2016-02-07 17:29:11.431584611 -0500
|
|||
@@ -1703,6 +1703,16 @@
|
|||
add_alias_cmd ("solib-absolute-prefix", "sysroot", class_support, 0, |
|||
&showlist); |
|||
|
|||
+#ifdef __ANDROID__
|
|||
+ /* Termux modification to find system shared libraries. */
|
|||
+ solib_search_path =
|
|||
+# ifdef __LP64__
|
|||
+ "/system/lib64:/system/vendor/lib64";
|
|||
+# else
|
|||
+ "/system/lib:/system/vendor/lib";
|
|||
+# endif
|
|||
+#endif
|
|||
+
|
|||
add_setshow_optional_filename_cmd ("solib-search-path", class_support, |
|||
&solib_search_path, _("\ |
|||
Set the search path for loading non-absolute shared library symbol files."), |
@ -1,12 +0,0 @@ |
|||
diff -u -r ../gdb-7.8.1/gdb/gdbserver/gdb_proc_service.h ./gdb/gdbserver/gdb_proc_service.h
|
|||
--- ../gdb-7.8.1/gdb/gdbserver/gdb_proc_service.h 2014-06-11 12:34:41.000000000 -0400
|
|||
+++ ./gdb/gdbserver/gdb_proc_service.h 2014-12-22 07:53:22.855702229 -0500
|
|||
@@ -38,6 +38,8 @@
|
|||
# endif |
|||
#endif |
|||
|
|||
+#include "../gregset.h" /* for elf_gregset_t */
|
|||
+
|
|||
typedef enum |
|||
{ |
|||
PS_OK, /* Success. */ |
@ -1,15 +0,0 @@ |
|||
diff -u -r ../gdb-7.9/gdb/i386-linux-nat.c ./gdb/i386-linux-nat.c
|
|||
--- ../gdb-7.9/gdb/i386-linux-nat.c 2015-02-19 06:58:07.000000000 -0500
|
|||
+++ ./gdb/i386-linux-nat.c 2015-03-17 18:14:06.728805213 -0400
|
|||
@@ -35,6 +35,11 @@
|
|||
|
|||
#include "x86-linux-nat.h" |
|||
|
|||
+#ifdef __ANDROID__
|
|||
+#include <sys/ucontext.h>
|
|||
+typedef fpregset_t elf_fpxregset_t;
|
|||
+#endif
|
|||
+
|
|||
/* The register sets used in GNU/Linux ELF core-dumps are identical to |
|||
the register sets in `struct user' that is used for a.out |
|||
core-dumps, and is also used by `ptrace'. The corresponding types |
@ -1,11 +0,0 @@ |
|||
diff -u -r ../gdb-7.8.1/gdb/gdbserver/linux-arm-low.c ./gdb/gdbserver/linux-arm-low.c
|
|||
--- ../gdb-7.8.1/gdb/gdbserver/linux-arm-low.c 2014-10-29 15:45:50.000000000 -0400
|
|||
+++ ./gdb/gdbserver/linux-arm-low.c 2014-12-22 07:57:06.035702383 -0500
|
|||
@@ -26,6 +26,7 @@
|
|||
#endif |
|||
#include <sys/ptrace.h> |
|||
#include <signal.h> |
|||
+#include <linux/auxvec.h> /* for AT_HWCAP define */
|
|||
|
|||
/* Defined in auto-generated files. */ |
|||
void init_registers_arm (void); |
@ -1,23 +0,0 @@ |
|||
diff -u -r ../gdb-7.9/gdb/gdbserver/linux-x86-low.c ./gdb/gdbserver/linux-x86-low.c
|
|||
--- ../gdb-7.9/gdb/gdbserver/linux-x86-low.c 2015-02-19 06:58:07.000000000 -0500
|
|||
+++ ./gdb/gdbserver/linux-x86-low.c 2015-03-17 18:29:50.412805866 -0400
|
|||
@@ -38,6 +38,11 @@
|
|||
#include "tracepoint.h" |
|||
#include "ax.h" |
|||
|
|||
+#ifdef __ANDROID__
|
|||
+#include <sys/ucontext.h>
|
|||
+typedef fpregset_t elf_fpxregset_t;
|
|||
+#endif
|
|||
+
|
|||
#ifdef __x86_64__ |
|||
/* Defined in auto-generated file amd64-linux.c. */ |
|||
void init_registers_amd64_linux (void); |
|||
@@ -113,7 +118,6 @@
|
|||
#endif |
|||
|
|||
#include <sys/reg.h> |
|||
-#include <sys/procfs.h>
|
|||
#include <sys/ptrace.h> |
|||
#include <sys/uio.h> |
|||
|
@ -1,37 +0,0 @@ |
|||
diff -u -r ../gdb-7.8.1/gdb/gdbserver/linux-low.c ./gdb/gdbserver/linux-low.c
|
|||
--- ../gdb-7.8.1/gdb/gdbserver/linux-low.c 2014-10-29 15:45:50.000000000 -0400
|
|||
+++ ./gdb/gdbserver/linux-low.c 2014-12-22 07:51:39.355702157 -0500
|
|||
@@ -47,6 +47,7 @@
|
|||
#include "filestuff.h" |
|||
#include "tracepoint.h" |
|||
#include "hostio.h" |
|||
+#include <linux/auxvec.h> /* For AT_PHDR and AT_PHNUM defines */
|
|||
#ifndef ELFMAG0 |
|||
/* Don't include <linux/elf.h> here. If it got included by gdb_proc_service.h |
|||
then ELFMAG0 will have been defined. If it didn't get included by |
|||
@@ -108,7 +109,6 @@
|
|||
# include "linux-btrace.h" |
|||
#endif |
|||
|
|||
-#ifndef HAVE_ELF32_AUXV_T
|
|||
/* Copied from glibc's elf.h. */ |
|||
typedef struct |
|||
{ |
|||
@@ -121,9 +121,7 @@
|
|||
on 64-bit platforms and vice versa. */ |
|||
} a_un; |
|||
} Elf32_auxv_t; |
|||
-#endif
|
|||
|
|||
-#ifndef HAVE_ELF64_AUXV_T
|
|||
/* Copied from glibc's elf.h. */ |
|||
typedef struct |
|||
{ |
|||
@@ -136,7 +134,6 @@
|
|||
on 64-bit platforms and vice versa. */ |
|||
} a_un; |
|||
} Elf64_auxv_t; |
|||
-#endif
|
|||
|
|||
/* A list of all unknown processes which receive stop signals. Some |
|||
other process will presumably claim each of these as forked |
@ -1,24 +0,0 @@ |
|||
diff -u -r ../gdb-7.8.1/gdb/config/nm-linux.h ./gdb/config/nm-linux.h
|
|||
--- ../gdb-7.8.1/gdb/config/nm-linux.h 2014-06-11 12:34:41.000000000 -0400
|
|||
+++ ./gdb/config/nm-linux.h 2014-12-22 07:45:14.127701891 -0500
|
|||
@@ -20,5 +20,20 @@
|
|||
/* Use elf_gregset_t and elf_fpregset_t, rather than |
|||
gregset_t and fpregset_t. */ |
|||
|
|||
+#ifndef NM_CONFIG_LINUX_H
|
|||
+#define NM_CONFIG_LINUX_H
|
|||
+
|
|||
+#include <sys/ucontext.h>
|
|||
+
|
|||
+#ifdef __arm__
|
|||
+/* Structure to describe FPU registers. */
|
|||
+typedef struct fpregset { } fpregset_t;
|
|||
+#endif
|
|||
+
|
|||
+typedef gregset_t elf_gregset_t;
|
|||
+typedef fpregset_t elf_fpregset_t;
|
|||
+
|
|||
#define GDB_GREGSET_T elf_gregset_t |
|||
#define GDB_FPREGSET_T elf_fpregset_t |
|||
+
|
|||
+#endif
|
@ -1,11 +0,0 @@ |
|||
diff -u -r ../gdb-7.6.2/gdb/proc-service.c ./gdb/proc-service.c
|
|||
--- ../gdb-7.6.2/gdb/proc-service.c 2013-12-08 05:33:13.000000000 +0100
|
|||
+++ ./gdb/proc-service.c 2014-01-07 16:43:01.866311352 +0100
|
|||
@@ -27,7 +27,6 @@
|
|||
|
|||
#include "gdb_proc_service.h" |
|||
|
|||
-#include <sys/procfs.h>
|
|||
|
|||
/* Prototypes for supply_gregset etc. */ |
|||
#include "gregset.h" |
@ -1,23 +0,0 @@ |
|||
diff -u -r ../gdb-7.9/gdb/x86-linux-nat.c ./gdb/x86-linux-nat.c
|
|||
--- ../gdb-7.9/gdb/x86-linux-nat.c 2015-02-20 12:11:44.000000000 -0500
|
|||
+++ ./gdb/x86-linux-nat.c 2015-03-17 18:20:50.044805492 -0400
|
|||
@@ -23,7 +23,6 @@
|
|||
#include "gdb_proc_service.h" |
|||
#include <sys/ptrace.h> |
|||
#include <sys/user.h> |
|||
-#include <sys/procfs.h>
|
|||
#include <sys/uio.h> |
|||
|
|||
#include "x86-nat.h" |
|||
@@ -39,6 +38,11 @@
|
|||
#include "x86-xstate.h" |
|||
#include "nat/linux-btrace.h" |
|||
|
|||
+#ifdef __ANDROID__
|
|||
+#include <sys/ucontext.h>
|
|||
+typedef fpregset_t elf_fpxregset_t;
|
|||
+#endif
|
|||
+
|
|||
/* Per-thread arch-specific data we want to keep. */ |
|||
|
|||
struct arch_lwp_info |
@ -0,0 +1,24 @@ |
|||
Install git perl files to a local git-specific folder and |
|||
be sure to bring the private Error.pm copy with it. |
|||
|
|||
diff -u -r ../git-2.7.4/perl/Makefile.PL ./perl/Makefile.PL
|
|||
--- ../git-2.7.4/perl/Makefile.PL 2016-03-17 16:47:59.000000000 -0400
|
|||
+++ ./perl/Makefile.PL 2016-03-24 22:38:12.222059955 -0400
|
|||
@@ -38,15 +38,13 @@
|
|||
my $pm_path = $File::Find::name; |
|||
$pm_path =~ s{^\./}{}; |
|||
|
|||
- $pm{$pm_path} = '$(INST_LIBDIR)/'.$pm_path;
|
|||
+ $pm{$pm_path} = '@TERMUX_PREFIX@/share/git-perl/'.$pm_path;
|
|||
}, "Git", "Git.pm"; |
|||
|
|||
|
|||
# We come with our own bundled Error.pm. It's not in the set of default |
|||
# Perl modules so install it if it's not available on the system yet. |
|||
-if ( !eval { require Error } || $Error::VERSION < 0.15009) {
|
|||
- $pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';
|
|||
-}
|
|||
+ $pm{'private-Error.pm'} = '@TERMUX_PREFIX@/share/git-perl/Error.pm';
|
|||
|
|||
# redirect stdout, otherwise the message "Writing perl.mak for Git" |
|||
# disrupts the output for the target 'instlibdir' |
@ -1,6 +1,6 @@ |
|||
TERMUX_PKG_HOMEPAGE=http://www.gnuplot.info/ |
|||
TERMUX_PKG_DESCRIPTION="Command-line driven graphing utility" |
|||
TERMUX_PKG_VERSION=4.6.6 |
|||
TERMUX_PKG_VERSION=4.6.7 |
|||
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/gnuplot/gnuplot/${TERMUX_PKG_VERSION}/gnuplot-${TERMUX_PKG_VERSION}.tar.gz |
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-x --with-lua=no" |
|||
TERMUX_PKG_DEPENDS="libandroid-support, readline, pango" |
|||
|
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue