Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-12-29 | portability: add sys/sysmacros.h wrapper for makedev/major/minor | Ariadne Conill | 1 | -0/+9 | |
2021-12-29 | portability: include environ in overlaid unistd.h | Ariadne Conill | 1 | -0/+5 | |
2021-12-29 | portability: implement pipe2 and mknodat | Ariadne Conill | 5 | -0/+64 | |
2021-12-29 | ci: use meson on debian, not legacy build system | Ariadne Conill | 1 | -4/+5 | |
2021-12-29 | portability: take over strlcpy | Ariadne Conill | 5 | -17/+18 | |
2021-12-29 | io: use opendirectory for UID/GID lookups on macOS | Ariadne Conill | 1 | -2/+8 | |
macOS has no concept of a chroot-specific UID/GID database, as the database is actually LDAP. ref #10794 | |||||
2021-12-29 | abstract differences between GNU and Apple xattr functions | Ariadne Conill | 3 | -5/+35 | |
2021-12-29 | database: isolate linux-specific mountpoint headers | Ariadne Conill | 1 | -5/+8 | |
2021-12-29 | legacy build system: include libportability headers | Ariadne Conill | 1 | -1/+1 | |
2021-12-29 | portability: add endian.h wrapper | Ariadne Conill | 1 | -0/+61 | |
2021-12-29 | portability: implement skeleton with memrchr function | Ariadne Conill | 5 | -1/+60 | |
2021-12-29 | apk_adb: add missing compare functions | Timo Teräs | 1 | -0/+2 | |
fixes #10803 | |||||
2021-12-29 | database: use SA_RESETHAND instead of SA_ONESHOT when registering a SIGALRM ↵ | Ariadne Conill | 1 | -1/+1 | |
handler SA_ONESHOT is a GNU-specific alias for POSIX SA_RESETHAND. | |||||
2021-12-29 | gitignore: add build/ | Paul Spooren | 1 | -0/+1 | |
The folder is commonly used for meson, ignore it. Signed-off-by: Paul Spooren <mail@aparcar.org> | |||||
2021-12-29 | use fstatat, not fstatat64 | Ariadne Conill | 2 | -5/+5 | |
the stat64 family of functions were provided as transitional functions, but when building on glibc with _GNU_SOURCE, or any other supported system, the stat functions are equivalent to their stat64 counterparts | |||||
2021-12-29 | meson: define _FILE_OFFSET_BITS=64 for glibc | Ariadne Conill | 1 | -0/+3 | |
2021-12-29 | apk: add --preserve-env option | Paul Spooren | 4 | -2/+10 | |
This options is useful for (post)install scripts to run with the same environment variables as apk is executed. [TT: minor stylistic changes] Signed-off-by: Paul Spooren <mail@aparcar.org> | |||||
2021-12-29 | apk: add --force-no-chroot option | Paul Spooren | 2 | -0/+9 | |
[TT: reoder changes to alphabetically sorted locations] Signed-off-by: Paul Spooren <mail@aparcar.org> | |||||
2021-12-27 | make stderr line buffered | Timo Teräs | 1 | -0/+2 | |
2021-12-27 | print: improve indented printing api | Timo Teräs | 4 | -42/+68 | |
- make sure all commit errors go to stderr - make it a bit more api like | |||||
2021-12-27 | list: sort options alphabetically | Timo Teräs | 2 | -20/+20 | |
2021-12-27 | list --manifest | Paul Spooren | 2 | -1/+18 | |
print installed packages in `<name> <version>` format. The format is currently used in OpenWrt and allows downstream tools to compare what's installed in the firmware. Signed-off-by: Paul Spooren <mail@aparcar.org> | |||||
2021-12-27 | io: fix tee error handling path | Timo Teräs | 1 | -3/+6 | |
Make sure the from is not dereferenced/used on error path, and cancel the ostream. fixes #10800 | |||||
2021-12-23 | add option --no-logfile | Daniel Golle | 3 | -1/+6 | |
2021-12-20 | io.c: add missing limits.h | Paul Spooren | 1 | -0/+1 | |
Fixes compilation on MacOS X | |||||
2021-12-18 | ci: strip static binary | Kevin Daudt | 1 | -1/+1 | |
To reduce the file size, strip the static binary. | |||||
2021-12-18 | ci: use arch-tagged images for static build | Kevin Daudt | 1 | -1/+1 | |
For 32-bits arches, we use 64-bit arches in 32-bit mode. Docker by default wants to pull the image for the native arch, so unless we take care, the binaries will be built for the wrong arch. Use the arch tagged images we build to make sure we get the correct image. | |||||
2021-12-17 | libfetch: Allow special characters in http basic auth | Jan Hendrik Farr | 1 | -14/+62 | |
Currently, special characters in the username or password are not handled correctly (when set in $http_proxy and $https_proxy). They should be percent encoded in the environment variables then decoded by libfetch and reencoded using base64. This implementation is mainly taken from the current FreeBSD source and adapted to the apk-tools version of libfetch. fixes #10775 | |||||
2021-12-14 | adb: use sys/uio.h for iovec operations | Ariadne Conill | 1 | -0/+1 | |
readv/writev and struct iovec are declared in sys/uio.h per POSIX. using it without sys/uio.h is a GNU extension. ref #10794 | |||||
2021-12-14 | applet: suppress is_error warning on clang | Ariadne Conill | 1 | -2/+3 | |
clang does not ignore inline functions when checking for unused functions ref #10794 | |||||
2021-12-14 | uvol: cast size data to intmax_t | Ariadne Conill | 1 | -1/+1 | |
this ensures the %ju format parameter is always passed an integer that is appropriately sized, e.g. on mac where off_t is normally 32-bit. ref #10794 | |||||
2021-12-14 | defines: provide APKE_REMOTE_IO as portable alternative to EREMOTEIO | Ariadne Conill | 3 | -2/+3 | |
2021-12-14 | meson: fix underlinking issue with lua module | Ariadne Conill | 1 | -1/+1 | |
2021-12-14 | libfetch: use static_deps when compiling libfetch under meson | Ariadne Conill | 1 | -0/+1 | |
2021-12-14 | applet: rework APK_DEFINE_APPLET to use constructor attribute | Ariadne Conill | 4 | -17/+3 | |
this allows the applet registration to work in a portable way, without having to weird things with the linker. ref #10794 | |||||
2021-12-14 | ci: create release from tags | Kevin Daudt | 1 | -0/+47 | |
2021-12-14 | ci: add job to build static binary | Kevin Daudt | 1 | -0/+26 | |
2021-12-14 | libfetch: use pkg-config to find openssl cflags | Ariadne Conill | 1 | -0/+7 | |
on mac, openssl is usually provided by Homebrew or some other third-party package management system, which means pkg-config is needed to find it. we already use pkg-config to find openssl when building apk itself. ref #10794 | |||||
2021-12-14 | everywhere: use stdlib.h for malloc(3) definition, not GNU-specific malloc.h | Ariadne Conill | 8 | -8/+1 | |
musl implements support for malloc.h, but it is only a stub. we do not use any of the GNU-specific malloc interfaces, so just use POSIX stdlib.h instead. ref #10794 | |||||
2021-12-13 | lua: remove features.h | Ariadne Conill | 1 | -1/+0 | |
features.h is a GNU-specific header, and is not required for POSIX-compatible code macOS does not provide features.h ref #10794 | |||||
2021-12-09 | libfetch: avoid use of strdupa GNU extension | Ariadne Conill | 1 | -1/+2 | |
ref #10794 | |||||
2021-12-03 | extract_v3: make sure empty file's hash is copied too | Timo Teräs | 1 | -2/+2 | |
fixes #10785 | |||||
2021-12-03 | db: convert v3 scripts to ipkg on install | Timo Teräs | 4 | -9/+32 | |
fixes #10796 | |||||
2021-12-02 | extract: fix uvol to not be called for uvol directory | Timo Teräs | 1 | -2/+8 | |
2021-11-22 | db: synthesize symlink hashes for v3 packages | Timo Teräs | 2 | -11/+18 | |
The v3 format will not require the hash, but synthesize it to the DB so v3 packages can get installed properly. fixes #10785 | |||||
2021-11-22 | db: fix regression in creating .apk-new files | Timo Teräs | 2 | -4/+6 | |
The apk_fsdir_file_digest() servers dual purpose: to calculate the checksum, but also to determine if the file exists. Move it's error check where it originally was. fixes #10791 | |||||
2021-11-15 | db: lazy create directories with --initdb | Timo Teräs | 3 | -88/+73 | |
fixes #10778 | |||||
2021-11-15 | fs_fsys: fix extraction of symlinks | Timo Teräs | 1 | -6/+8 | |
Symlinks should use the real target filename instead of the temporary extraction name. | |||||
2021-11-15 | extract_v2: handle "untrusted package" as normal error | Timo Teräs | 1 | -1/+1 | |
The "untrusted" error is higher priority than malformed package. But given that we expect valid .apk or index as argument, the untrusted error is likely more accurate than having malformed package. | |||||
2021-11-15 | commit: print download size of packages in interactive mode | Timo Teräs | 1 | -3/+12 | |
ref #10788 |