Commit Graph

28 Commits

Author SHA1 Message Date
Leonid Pliushch 46d333adba add licenses for more packages 2019-01-21 17:17:53 +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
Henrik Grimler 13147dbd80 texlive: remove no longer needed file lists 2018-05-13 01:06:42 +02:00
Henrik Grimler 7d8f39bb84 texlive-tlmgr: create a separate package and fix typo
Also simplify texlive/build.sh.

With this texlive-tlmgr can be updated without the need of bumping all of texlive.
2018-05-08 10:17:23 +02:00
Henrik Grimler 2d2c4a4014 texlive: update to 2018 and update poppler patches to work with 0.64 2018-05-01 23:09:34 +02:00
Henrik Grimler cf81ebc87f texlive-tlmgr: add subpackage
Tiny step in direction of fully packaged texlive
2018-05-01 23:09:34 +02:00
Henrik Grimler 43246f018e texlive: Correctly remove old files 2018-01-30 14:14:33 +01:00
Henrik Grimler 3aa89f668c texlive: patch texmf.cnf to point towards correct path
Necessary after files have been moved to standard path.
Also add remove file from texlive to avoid file clash with texlive-bin.
2018-01-30 14:14:33 +01:00
Henrik Grimler 5e08ebac2e texlive: Reshaping termux_step_extract_package to enable moving files to standard location
patch tlmgr to look for files in the right location. Patch texmf.cnf so that kpathsea finds files in the right location.
2018-01-30 14:14:33 +01:00
Henrik Grimler 3c27d8afbc texlive: move texmf.cnf from texlive to texlive-bin
Some files (like texmf.cnf) are patched/changed when building texlive-bin.
It is therefore better to include them in texlive-bin instead of using the
original files in texlive.
2018-01-30 14:14:33 +01:00
Henrik Grimler 7e2699df15 texlive: Move files to std locations [WIP] 2018-01-30 14:14:33 +01:00
Henrik Grimler 7926ba9299 texlive: fix postinst, prerm, preinst scripts (#1648)
* texlive: use bash instead of sh in preinst scripts

* texlive: remove old trailing comment

* texlive: use bash instead of sh in postinst and prerm scripts.

sh doesn't support "mkdir folder1/{folder2,folder3}" and similar.

* texlive: export TMPDIR in postinst so that fresh installation will work also in ssh shell
2017-10-11 00:48:35 +02:00
Henrik Grimler b5457c5b0f texlive-bin: enable extglob locally in preinst script (#1643)
* texlive-bin: enable extglob locally in preinst script. Solves https://github.com/termux/termux-packages/issues/1639

* texlive-bin: re-add TMPDIR to profile.d/texlive.sh

* texlive: use extglob in preinst script
2017-10-09 18:34:10 +02:00
its-pointless c2a0bc2bab put shebang in scripts 2017-08-17 00:26:27 +02:00
Henrik Grimler ce1c64ca2d Properly package texlive and split package into texlive & texlive-bin (#1203)
* texlive: enable makeindex and put man files and headers in proper location.

* texlive: upgrade to 2017

* texlive: split into texlive-bin and arch independent texlive-base.

Download texmf-dist and other tarballs and package necessary files instead of
using tlnet installer on device.

* texlive-base: extract only a minimal set of files from texmf-dist, do complete
uninstall on removal. Patch some files.

The texmf-dist tar is quite large so use --checkpoint to indicate progress.

* texlive: use gnupg2 instead of gnupg

* texlive: fix texlive profile

* texlive: added TL_BINDIR variable to simplify build scripts

* texlive: replace tlmgr symlink with small wrapper.

After `tlmgr update --self` has been run, the shebang of tlmgr.pl is
none-working and there is a reference to /bin/sh in TLUtils.pm. This wrapper
fixes this (if needed) before tlmgr is run.

* texlive: update command-not-found with a few common texlive commands.

* remove un-needed minimal.list

* Format generation working. xelatex activated.

Remove all texmf-dist files created by texlive-bin package.

* texlive: fix installation and removal of texlive-{bin,base}. All essential
fixes done.

Only thing remaining to fix is figuring out how to deal with the transition
texlive -> texlive-{bin,base}.

* texlive: use Breaks instead of Conflicts

* texlive: properly fix split into two packages [WIP]

* delete old termux-install-tl.sh

* texlive: Fix so that the upgrade from texlive 20170524-2 goes smoothly and
works as it should (with Breaks and Replaces). Also major clean up of texlive/build.sh.

* texlive: minor clean up of texlive/build.sh. Update patches to avoid (silent)
complaints from patching. Add previously forgotten install-tl.list with list
of files to take from install-tl-unx.tar.gz.

* texlive: make texlive-bin-dev properly replace texlive-dev.

Everything is done now, just need to wait for breaks and subpkg_replaces
before opening a pull request.

* texlive: skip format generation on install, rm old files in texlive-bin
as well.

Also decrease verbosity of installation

* texlive: when deleting old files, leave texmf-dist alone

* texlive: fix typo, correctly remove files from old texlive version
2017-08-09 23:09:01 +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 d452c5aa54 cairo: Update from 1.4.8 to 1.4.10
This required rebuilding cairo-using packages due to a shared
library name change (libcairo.so.2 -> libcairo.so).
2017-06-19 15:26:27 +02:00
Henrik Grimler 58a466a46d Texlive: fix #1068, #1069 by upgrading to texlive 2017 (#1072)
* texlive: enable makeindex and put man files and headers in proper location.

* texlive: use historic install-tl-unx.tar.gz version. (fixes #1068, #1069).

Also include profile.d/texlive.sh in package instead of creating it in termux-install-tl.

* texlive: remove files from old installation script preinst.

* texlive: remove bin/custom and texmf-dist prerm

* texlive: improve sed patch.

Otherwise, running termux-install-tl twice fails.

* texlive: use proper sys-man dir and sys-info dir.

* texlive: propose me as maintainer

* texlive: upgrade to 2017

* texlive: add gnupg to dep to allow tlmgr to check downloaded packages
2017-06-07 00:43:15 +02:00
Henrik Grimler 0a91a51e78 texlive: fix installation issues and reported shebang issue (#957)
* texlive: correctly move man pages, add wget as dependecy and fix shebangs of
some scripts.

* texlive: busybox version of rm doesn't support -d

* texlive: Don't fix shebangs in texmf-dist/scripts/texlive (gives error when installing), so far no one has reported shebang errors from files in this folder.
2017-04-24 13:43:30 +02:00
Fredrik Fornwall c35073b819 harfbuzz&texlive: Bump after libicu 59.1 update 2017-04-22 02:04:03 +02:00
Grimler91 099d4d4980 texlive: remove -N option from wget command in termux-install-tl. (#873)
Busybox version of wget doesn't support -N so wget shouldn't use -N (or be
added to package dependencies).
2017-03-22 21:10:30 +01:00
Fredrik Fornwall d5585b7585 texlive: Move man pages to normal path
This ensures that the man command works, and fixes complaints
from a validation script that thinks that all man pages should be
under $PREFIX/share/man.
2017-03-22 00:23:37 +01:00
Grimler91 d8a7fd1e31 texlive: Changed install-tl-unx.tar.gz to a historic version and removed the previous patch to install-tl. (#862) 2017-03-20 20:39:53 +01:00
rnauber d415b125a8 Enable texlive (#752) 2017-03-08 17:41:26 +01:00
Fredrik Fornwall cb958a2e23 texlive: Move to disable packages
There is some work remaining to build harfbuzz-icu and graphite
support in harfbuzz.
2017-01-19 06:03:56 +01:00
Fredrik Fornwall 290d898df5 texlive: Some work in progress 2017-01-19 06:01:54 +01:00
Fredrik Fornwall 7107b78bf9 texlive: Switch from luajit to lua 2017-01-19 04:26:04 +01:00
rnauber cb2a32e4df Add a TexLive package (#621)
* Add a TexLive package

* fix texlive installer

* some polish for texlive

* some more polish for texlive

* texlive: automatically trigger (post-)installation

* texlive: remove the bundled icu from the PR and polish some more...

* texlive: fix hardcoded build tuple and use popplers xpdf
2017-01-19 04:21:42 +01:00