Commit Graph

48 Commits

Author SHA1 Message Date
Leonid Pliushch c757f6cbc6 aapt: bump revision 2020-08-01 02:29:13 +03:00
Henrik Grimler 325c152a3f aapt: bump to rebuild 2020-07-09 18:23:33 +02:00
Henrik Grimler 37ea624f96 aapt: bump again to build with new docker image 2020-07-09 16:03:38 +02:00
Henrik Grimler 70dec97ce7 aapt: bump to rebuild 2020-07-09 13:54:07 +02:00
its-pointless 5c1249295f fix aapt build 2020-07-09 13:51:35 +02:00
Leonid Pliushch 8701462951 add new linter script & fix packages where needed
Linter will check packages submitted for CI build. If error was found,
build will not be allowed.

To ensure that all build.sh scripts are consistent and have at least
minimal allowed quality, linter is permanently enabled for all branches
and pull requests.
2019-08-14 14:27:55 +03:00
Leonid Pliushch c352216c63 packages: standardize values of several control variables for build.sh
Variables

 TERMUX_PKG_PLATFORM_INDEPENDENT
 TERMUX_DEBUG
 TERMUX_PKG_HAS_DEBUG
 TERMUX_PKG_ESSENTIAL
 TERMUX_SUBPKG_ESSENTIAL
 TERMUX_PKG_NO_STATICSPLIT
 TERMUX_PKG_BUILD_IN_SRC
 TERMUX_PKG_FORCE_CMAKE
 TERMUX_PKG_HOSTBUILD

should not accept arbitrary values for marking them "enabled". Instead
they should accept boolean values which makes them easier to handle and
also makes their meaning clear.

build-package.sh should make decision based on variable's value but not on
whether it is set or empty.

%ci:no-build
2019-08-12 18:49:13 +03:00
Leonid Pliushch c81d4c8698 add stubs to prevent on-device building packages with dangerous operations in build.sh
%ci:no-build
2019-08-08 16:58:34 +03:00
Leonid Pliushch a99e5a1dc1 aapt: bump revision 2019-06-19 21:12:28 +03:00
Leonid Pliushch 153669ae6c aapt: use https for homepage 2019-05-15 02:37:52 +03:00
Leonid Pliushch e17f5f69b5 aapt: fix compilation error after adding own zlib 2019-04-14 20:05:50 +03:00
Leonid Pliushch 11200afa32 add zlib to dependencies where needed 2019-04-14 16:00:23 +03:00
Fredrik Fornwall f24dca7956 aapt: Respect LDFLAGS more
This fixes DT_RUNPATH (see #3490).
2019-03-10 23:42:51 +01:00
Leonid Pliushch 2c16db52fc bump C++ packages for NDK-19 2019-02-23 13:57:09 +02:00
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