Commit Graph

63 Commits

Author SHA1 Message Date
Tee KOBAYASHI
57c85cf5d2 aapt: Update to 12.0.0.27 2022-02-08 10:26:57 +09:00
Tee KOBAYASHI
9b0a99a4d4 aapt: Update to 11.0.0.48 2022-02-07 11:38:05 +09:00
Tee KOBAYASHI
eb3ebc715a aapt: Include aidl
as a subpackage.
2022-02-06 18:06:23 +09:00
Tee KOBAYASHI
32dadeb22f aapt: Update to 8.1.0.81 2022-02-06 18:06:23 +09:00
Tee KOBAYASHI
74f15f607a aapt: Include aapt2
as a subpackage.
2022-02-03 08:05:08 +09:00
Tee KOBAYASHI
c2eb93ac13 aapt: Add necessary -fPIC
as a follow-up of commit 653a110ddb.
2021-12-29 08:26:45 +02:00
Henrik Grimler
df86bb85e5 aapt: bump revision 2021-10-23 09:26:45 +02:00
Henrik Grimler
a2187e62df Bump all packages depending on libc++
As part of ndk-r23 upgrade.
2021-10-22 23:05:45 +02:00
Henrik Grimler
e410863adc aapt: fix build with ndk-r23
As we have seen [1], i686 seem to explicitly need -fPIC.  Pass
CPPFLAGS in more places when building aapt, to avoid an error like:

ld: error: relocation R_386_PC32 cannot be used against symbol config_free; recompile with -fPIC
>>> defined in /tmp/config_utils-70060d.o
>>> referenced by config_utils.c
>>>               /tmp/config_utils-70060d.o:(config_free)

[1] https://github.com/termux/termux-packages/issues/7215#issuecomment-906154438
2021-10-22 23:05:45 +02:00
Henrik Grimler
2a6eaf824f aapt: bump to rebuild
Package on repo has another revision.
2021-06-26 22:46:53 +02:00
Yaksh Bariya
3ff91e45e6 aapt: Revise version to force rebuild 2021-06-24 12:00:29 +03:00
Lucy Phipps
b48c36333b
Revert "aapt: update to 7.1.2.39"
This reverts commit 51ded61030.
2021-02-22 15:15:59 +00:00
Lucy Phipps
51ded61030
aapt: update to 7.1.2.39 2021-02-22 14:58:34 +00:00
Henrik Grimler
742d86b568 Remove _FORTIFY_SOURCE workaround for some pkgs for debug builds
Not necessary after __USE_FORTIFY_LEVEL is set. No need to rebuild any
packages for this though:
%ci:no-build
2021-02-03 16:57:21 +01:00
Leonid Pliushch
37375312b9
explicitly set maintainer for each package
In issue https://github.com/termux/termux-packages/issues/6160 I have found
that community repo "its-pointless.github.io" specifies us as maintainer
for its packages. This is NOT TRUE and potentially misleads people using
these packages.

Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral
and not specify maintainer. So all packages now have to override it to
the correct value.

[skip ci]
%ci:no-build
2020-12-20 15:16:34 +02:00
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