Commit Graph

34 Commits

Author SHA1 Message Date
Wetitpig
13cec16263 Spaces to tabs 2019-02-09 21:06:31 +02:00
Wetitpig
5f8864c10d Improve formatting of parantheses for functions 2019-02-09 21:06:31 +02:00
Fredrik Fornwall
ca5ead6780 Update latest android platform and build-tools 2019-01-27 09:03:08 +01:00
Leonid Pliushch
361d8c519f [incomplete] set licenses for packages 2019-01-20 22:41:50 +01:00
Fredrik Fornwall
1aec3833d3 aapt: Build with -fPIC 2018-09-20 22:46:51 +02:00
Fredrik Fornwall
33e80f9944 Make checksums for downloads mandatory
Use SKIP_CHECKSUM if you really want to avoid checksums.
2018-08-21 00:35:50 +02:00
Fredrik Fornwall
6988f30ee7 Bump c++-using packages 2018-06-26 13:29:06 +02:00
Henrik Grimler
c1b82abd09 Add fixes for debug builds (#2296)
* build-package.sh: add possibility for debug patches and TERMUX_PKG_HAS_DEBUG

Setting TERMUX_PKG_HAS_DEBUG=no disables attempt to build debug build of
package.
Useful for example if a debug build doesn't make sense, as for python-packages
and texlive.

* aapt: skip D_FORTIFY_SOURCE=2 for libandroid-cutils when doing debug build

* lftp: skip D_FORTIFY_SOURCE=2 for debug build

* libflac: don't use -g3 for debug build

Configure script removes it otherwise.

* nano: skip -D_FORTIFY_SOURCE=2 for debug build

* vifm: skip -D_FORTIFY_SOURCE=2 for debug build

* mc: skip -D_FORTIFY_SOURCE=2 for debug build

* dropbear: add __attribute__((overloadable)) to XMEMSET and XMEMCPY if debug

* gdb: add __attribute__((overloadable)) to strchr if debug

* gnuit: add __attribute__((overloadable)) to strchr and strcpy if debug

* gperf: add __attribute__((overloadable)) to strlen if debug

* inetutils: add __attribute__((overloadable)) to strrchr and strchr if debug

* readline: add __attribute__((overloadable)) to strchr if debug

* tsocks: add __attribute__((overloadable)) to poll if debug

* units: add __attribute__((overloadable)) to strchr if debug

* liblua: fix bug in loslib.c that emerged in debug build

Use strncpy instead of strcpy.
Original error message:
loslib.c:169:3: error: 'strcpy' called with string bigger than buffer
  lua_tmpnam(buff, err);
  ^
loslib.c:122:37: note: expanded from macro 'lua_tmpnam'
       strcpy(b, LUA_TMPNAMTEMPLATE); \
                                   ^

* alpine: include our getpass.h in imap's mtest.c to declare getpass

Debug build complained about the previous implicit declaration.

* nginx: use --with-debug instead of --debug

* cboard: skip -D_FORTIFY_SOURCE=2 for debug build

* gettext: add __attribute__((overloadable)) to getcwd if debug

* oathtool: skip -D_FORTIFY_SOURCE=2 for debug build

* php: add __attribute__((overloadable)) to strlcpy and strlcat if debug

* expect: add __attribute__((overloadable)) to strchr if debug

* texlive: set TERMUX_PKG_HAS_DEBUG=no

* asciinema: set TERMUX_PKG_HAS_DEBUG=no

* libllvm: set TERMUX_PKG_HAS_DEBUG=no

Debug build fails with:
home/builder/.termux-build/libllvm/src/lib/Support/Unix/Path.inc:740:19: error: no matching function for call to 'RetryAfterSignal'                                                                                                      if ((ResultFD = sys::RetryAfterSignal(-1, open, P.begin(), OpenFlags)) < 0)

* build-package.sh: set TERMUX_PKG_REPLACES=package if debug build

Hopefully allows us to install debug packages without breaking dependecies.

Should be looked over and be made more similar to how debian does this in any case

* Update build.sh
2018-06-13 02:12:36 +02:00
Fredrik Fornwall
ea61862721 Add scripts/lint-packages.py
Harmonize the layout by having the first two lines of a package
definition always be the homepage and the description.
2017-12-05 22:48:12 +01:00
Fredrik Fornwall
d94c342761 aapt&ecj: Use jar instead of zip 2017-11-21 05:26:30 +01:00
Fredrik Fornwall
0c0af59332 Update NDK used to r16
Run scripts/update-docker.sh to update the docker image.
2017-11-15 16:48:35 +01:00
Fredrik Fornwall
79e16f68e4 aapt: Remove __android_log_error_write reference
Removing a reference to __android_log_error_write hopefully fixes
an issue on Android 5 (see #1306).
2017-08-23 21:59:09 +02:00
Fredrik Fornwall
c3f11ac209 aapt: Update from 7.0.0.14 to 7.1.2.33 2017-08-19 11:31:02 +02:00
Fredrik Fornwall
64666c40b2 Update android platform setup
- Update to build tools 26.0.1.
- Update from android-25 to android-26.
- Add android-16 for use in https://github.com/termux/termux-packages/pull/1133
2017-08-11 14:09:32 +02:00
Fredrik Fornwall
6c29aaa1c7 Transition from gnustl to libc++
This will make things as std::to_string() and other C++ features
work with a modern and supported C++ library.

We package up libc++_shared.so and bump the revision of every C++
using package to make it rebuild against it.

Users who have built C++ using libraries or programs will probably
need to rebuild them if they are linked against Termux-supplied
libraries, as user code was previously linked against gnustl while
the system libraries are now using libc++, and it's not a good idea
to mix C++ standard libraries in a program.
2017-07-14 00:23:37 +02:00
Fredrik Fornwall
ff91813fdb Switch over to building with unified headers 2017-07-01 00:04:02 +02:00
Fredrik Fornwall
da50c9575e aapt: Fix building with unified headers 2017-06-28 15:43:54 +02:00
Fredrik Fornwall
81c7229f5a Update android tools and build tools
The Docker image has been rebuilt, update with:

scripts/update-docker.sh
2017-05-20 21:17:00 +02:00
Fredrik Fornwall
544181cd4f Use more source checksums 2017-03-27 01:56:11 +02:00
Fredrik Fornwall
b26283d4a7 Update from NDK r13 to r14
For those using Docker build environments: run scripts/update-docker.sh
to pull the latest Docker image with r14 installed.

Otherwise, remove the $NDK directory (defaults to
$HOME/lib/android-ndk if not setup in the environment) and run
scripts/setup-android-sdk.sh to setup a r14 installation.
2017-03-04 22:03:54 +01:00
Fredrik Fornwall
dbd30a8cc5 Remove TERMUX_PKG_CLANG=yes as it is now default 2017-01-19 03:53:00 +01:00
Fredrik Fornwall
af4dc416ed s/TERMUX_PKG_BUILD_REVISION/TERMUX_PKG_REVISION/ 2017-01-11 01:21:42 -05:00
Fredrik Fornwall
d94b319967 aapt: Patch in a default platform package (-I) 2016-10-07 15:36:03 -04:00
Fredrik Fornwall
0f4e6b84b1 aapt: Update and tweak compiler flags 2016-10-06 17:20:34 -04:00
Fredrik Fornwall
aa9890c598 aapt: Fix running on Android 5.x
See #444.
2016-09-11 08:34:07 -04:00
Fredrik Fornwall
b664f5dd2e aapt: Update to latest 7.0.0 tag revision
Also link against liblog when needed.

Fixes #444.
2016-09-10 11:01:10 -04:00
Fredrik Fornwall
60f09ba592 aapt: Update to latest version, bundle zipalign 2016-09-04 11:07:13 -04:00
Fredrik Fornwall
cceed36f7f aapt: Bump build revision after libexpat update 2016-08-14 08:43:47 -04:00
Fredrik Fornwall
3f300a10fc Setup libstdc++.so -> libgnustl_shared.so early
Let build-package.sh setup the $PREFIX/lib/libstdc++.so symlink
before building any package, to make sure that all C++ applications
link against a fully featured C++ standard library.

Avoid explicitly declaring a dependency on the libgnustl package
since everyone may link against it at will and instead mark it as
essential.
2016-08-10 19:45:41 -04:00
Fredrik Fornwall
59ff7c032a ndk_patches: Remove JNIHelp.h 2016-05-08 16:04:56 -04:00
Fredrik Fornwall
ac398bf4e0 aapt: Fix 64-bit build 2016-02-05 18:05:14 -05:00
Fredrik Fornwall
5d423738a0 Bump build revision for aapt and imagemagick after termux-elf-cleaner rebuild 2015-07-30 10:33:08 -04:00
Fredrik Fornwall
14719d1c29 aapt: Update tag 2015-07-25 19:25:05 -04:00
Fredrik Fornwall
59f0d218a6 Initial push 2015-06-13 01:03:31 +02:00