Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-12-14 | portability: take over strlcpyfeature/macos | Ariadne Conill | 3 | -13/+14 | |
2021-12-14 | legacy build system: include libportability headers | Ariadne Conill | 1 | -1/+1 | |
2021-12-14 | portability: take over apk_endian.h | Ariadne Conill | 4 | -34/+69 | |
2021-12-14 | portability: implement skeleton with memrchr function | Ariadne Conill | 6 | -10/+51 | |
2021-12-14 | apk_defines: use more generic stat64 symbols even on x86 macs | Ariadne Conill | 1 | -1/+1 | |
2021-12-14 | io: use opendirectory for UID/GID lookups on macOS | Ariadne Conill | 1 | -10/+8 | |
macOS has no concept of a chroot-specific UID/GID database, as the database is actually LDAP. ref #10794 | |||||
2021-12-14 | apk_defines: define stub stat64/fstatat64 symbols for macOS variants with ↵ | Ariadne Conill | 2 | -9/+5 | |
only 64-bit ino_t ref #10794 | |||||
2021-12-14 | everywhere: only do xattr on linux, use fstatfs on non-linux instead of ↵ | Ariadne Conill | 6 | -10/+79 | |
fstatfs64 | |||||
2021-12-14 | blob: add memrchr implementation from musl | Ariadne Conill | 2 | -0/+14 | |
2021-12-14 | use apk_endian.h wrapper instead of including endian.h directly. | Ariadne Conill | 4 | -3/+37 | |
endian.h is a GNU extension. sys/endian.h and machine/endian.h are incompatible BSD equivalents. assume Linux systems have endian.h, provide macOS wrapper on Apple systems. ref #10794 | |||||
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 | |||||
2021-11-15 | fix fetching of depdencies only packages | Timo Teräs | 4 | -16/+12 | |
Remove the APK_REPOSITORY_CACHED bit from dependencies only packages (that is, installed_size == 0). For fetch, the problem is that apk_db_select_repo() would return the cache repository, but the package would not be there. Update also the locations needed to handle these packages correctly without the cached repository bit being set. | |||||
2021-11-12 | fetch: add --url option to print the download URLs | Timo Teräs | 2 | -6/+17 | |
2021-11-11 | pkg: fix reading of v3 package meta data | Timo Teräs | 1 | -1/+1 | |
The adb object for apk_pkg_from_adb() was changed in commit 7d6de220 "database: support loading v3 indexes" which also addressed the broken site in question but omitted updating the argument. fixes #10783 | |||||
2021-11-11 | pathbuilder: fix push return value | Timo Teräs | 1 | -2/+2 | |
Always return the original length; not the one with trailing '/' amended. fixes c60b7424 "optimize apk_pathbuilder_pop to get the old length" ref #10784 | |||||
2021-11-11 | extract_v3: fix extraction of zero length files | Timo Teräs | 1 | -2/+3 | |
The apk_istream is null for zero length files, and needs special handling. fixes #10784 | |||||
2021-11-09 | optimize apk_pathbuilder_pop to get the old length | Timo Teräs | 5 | -21/+21 | |
avoids memrchr | |||||
2021-11-09 | adbdump: fix dumping signatures | Timo Teräs | 1 | -1/+4 | |
give a fake trust root allowing anything. adbdump code will verify and dump each signature individually. | |||||
2021-11-09 | database: support loading v3 indexes | Timo Teräs | 5 | -20/+56 | |
2021-11-09 | database: implement uvol support | Timo Teräs | 19 | -434/+710 | |
by adding an abstraction layer to the file system | |||||
2021-11-03 | db: purge temporary files without explicit modification check | Timo Teräs | 1 | -1/+2 | |
When extraction failed, the user has had no opportunity to edit any files. Just clean up. | |||||
2021-11-03 | extract: move uvol extraction code to extract | Timo Teräs | 4 | -97/+99 | |
fix also the progress callback on uvol extraction | |||||
2021-11-03 | db, extract: handle waitpid returning EINTR | Timo Teräs | 2 | -3/+3 | |
2021-11-03 | db, audit: support sha256-160 hashes for v3 pkg compat | Timo Teräs | 6 | -13/+33 | |
2021-10-27 | db, add: support adding v3 package files | Timo Teräs | 9 | -14/+144 | |
2021-10-25 | mkpkg: make unique-id field a blob | Timo Teräs | 4 | -2/+30 | |
2021-10-25 | version: increase number of digits supported in version component | Timo Teräs | 3 | -3/+8 | |
Report also version numbers as invalid if there's more than 18 digits. fixes #10774 | |||||
2021-10-04 | enable uvol support by default | Timo Teräs | 1 | -1/+1 | |
2021-09-13 | adb: fix --allow-untrusted to work again | Timo Teräs | 2 | -4/+11 | |
and fix the error code if untrusted adb is seen |