Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-03-21 | adb: use qsort_r | Timo Teräs | 1 | -33/+35 | |
2022-03-21 | portability: add qsort_r | Timo Teräs | 3 | -0/+34 | |
2022-03-21 | mkndx, adb: fix index searching | Timo Teräs | 4 | -78/+97 | |
Additioal logic is needed to search objects on array: the object comparer needs separate modes to match index, template or exact object template. This should fix mkndx to be able to use old index. fixes #10828 | |||||
2022-03-21 | mkndx: fix index generation for v2 and v3 packages | Timo Teräs | 3 | -36/+50 | |
For v2 packages, the identity was never set. For v3 packages, the file size was never set. This fixes both issues. | |||||
2022-03-07 | portability, fetch: drop static_deps dependencies | Daniel Kolesa | 2 | -2/+0 | |
This is not actually needed, and it results in both static and shared versions of zlib and openssl linked into libapk otherwise, which is bad. | |||||
2022-03-07 | adb: fix handling of conflicts | Daniel Kolesa | 3 | -6/+14 | |
Ensure not to mask away previously set APK_VERSION_CONFLICT when serializing. When deserializing, make sure to actually write out the conflict flag when no version part is set. When creating apk_dependency, ensure to set the conflict bit correctly and mask it off result_mask. Fixes https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10824 | |||||
2022-03-07 | test: fix tests by setting sane active_layers without state | Timo Teräs | 1 | -0/+1 | |
finally fixes #10821 | |||||
2022-03-06 | db: fix APK_OPENF_NO_STATE check | Daniel Kolesa | 1 | -1/+1 | |
fixes #10821 | |||||
2022-03-06 | mkpkg: use -I for --info | Timo Teräs | 1 | -1/+1 | |
-i is already global option fixes #10822 | |||||
2022-03-06 | mkpkg: check apk_ostream_to_file/adb_compress error | Timo Teräs | 1 | -1/+6 | |
fixes #10823 | |||||
2022-03-06 | db: honor APK_OPENF_NO_STATE again | Timo Teräs | 1 | -8/+10 | |
Do not call apk_db_read_layer() or try to process the layer if APK_OPENF_NO_STATE is specified. It might fail because of non-existing database directory. Based on patch by Daniel. fixes commit 9e4dd29f "db: prepare database reading for layers" Fixes #10821 Reported-and-analyzed-by: Daniel Kolesa <daniel@octaforge.org> | |||||
2022-02-24 | pkg: use lib/apk/exec as the package script execution directory | Timo Teräs | 1 | -11/+15 | |
var/cache is also reported to be mounted noexec on hardened systems. Document some of the issues, and use lib/apk/exec for the time being. Keep the scripts still in separate directory from lib/apk so we can just delete directory if needed. fixes #6591 | |||||
2022-02-24 | solver: do not auto select virtual-only package with one provider | Timo Teräs | 5 | -2/+12 | |
This reverts most of 0dcbd933 which allowed automatic selection of package with a "virtual provides" having only one provider. While convenient, it creates problems if multiple versions of the same package exist, or if in future other providers would be added to one of the repositories. This restore the original behaviour, and improve the error message to tell the user to mention one of the providers explicitly. fixes #10810 | |||||
2022-02-22 | db, uvol: commit regular files before uvol volumes | Timo Teräs | 4 | -4/+30 | |
add priority to order fsdir commit sequence | |||||
2022-02-22 | db: fix apkindex path generation | Timo Teräs | 1 | -1/+1 | |
remove the left over apk_blob_push_fmt() call that corrupted uri and trim the path end from trailing slashes to get original functionality. fixes commit be4ce407 "support new index format without attaching arch" | |||||
2022-02-21 | io_gunzip: fix handling short reads near end-of-file | Timo Teräs | 1 | -12/+15 | |
The gzip library can drain all of the input to internal buffers and still keep providing data even if avail_in is zero. Previously it was assumed that avail_in != 0 if there is still data expected out, but this logic breaks near end-of-file for multiple short reads. Adjust logic to not process end-of-file event too early. fixes #10809 | |||||
2022-02-21 | fs_fsys: ignore mkdir EEXIST | Timo Teräs | 1 | -1/+2 | |
Be happy if the directory already exists. | |||||
2022-02-21 | tar: allow for space as numeric field terminator | ptrcnull | 1 | -1/+1 | |
2022-02-21 | solver: require package layer to be enabled for install | Timo Teräs | 2 | -3/+7 | |
2022-02-21 | adb: add layer to pkginfo | Timo Teräs | 3 | -1/+4 | |
2022-02-21 | db: sort world dependencies to layers | Timo Teräs | 5 | -7/+27 | |
2022-02-21 | db: prepare database writing for layers | Timo Teräs | 1 | -135/+172 | |
2022-02-21 | db: prepare database reading for layers | Timo Teräs | 4 | -25/+58 | |
2022-02-14 | support new index format without attaching arch | Paul Spooren | 1 | -8/+20 | |
By default the package architecture is attached to the repository url. With this commit it is possible to define new indexes ending on `.adb`. If such index file is detected the packages must be in the same folder as the index. Signed-off-by: Paul Spooren <mail@aparcar.org> | |||||
2022-02-14 | fs_uvol: take down volume before removal | Daniel Golle | 1 | -0/+4 | |
Make sure volume is in 'down' state before attempting to remove it. Signed-off-by: Daniel Golle <daniel@makrotopia.org> | |||||
2022-02-13 | context: fix 'uvol' default path | Daniel Golle | 1 | -1/+1 | |
'uvol' is installed to /usr/sbin by default. Assume that path if not set by APK_UVOL environment variable. Signed-off-by: Daniel Golle <daniel@makrotopia.org> | |||||
2022-02-03 | database: fix apk_db_cache_active returning true when cache not configured | Ariadne Conill | 1 | -1/+1 | |
this regression was caused by refactoring of the options handling into the apk_ctx struct in 354713d2, presumably a little too much innovation with sed fixes #10799 | |||||
2022-02-01 | mkpkg, adb: validate version and dependency format | Timo Teräs | 6 | -11/+26 | |
Fail if the package or dependency version format is not valid. fixes #10807 | |||||
2022-01-24 | fix typo on apk-add.8.scd | Thiago Perrotta | 1 | -1/+1 | |
2022-01-21 | genhelp: fix upper case substition | Timo Teräs | 1 | -1/+1 | |
2022-01-21 | cache: allow various flags, and addition of dependencies | Timo Teräs | 2 | -17/+67 | |
Allow controlling 'cache download' more closely to 'upgrade' so it can be used to pre-download packages for ugprade. | |||||
2022-01-17 | package: fail on invalid control data | Timo Teräs | 2 | -11/+18 | |
Handle meta data error to produce hard failure. fixes #10806 | |||||
2022-01-13 | support building with uncompressed help databases | Ariadne Conill | 4 | -19/+41 | |
2021-12-29 | package: factor out /dev initialization to linux-specific helper function | Ariadne Conill | 1 | -8/+20 | |
2021-12-29 | database: refactor mounting and unmounting /proc | Ariadne Conill | 1 | -19/+44 | |
2021-12-29 | database: relocate find_mountpoint() | Ariadne Conill | 1 | -29/+29 | |
2021-12-29 | database: refactor cache remounting | Ariadne Conill | 1 | -5/+15 | |
2021-12-29 | database: refactor tmpfs root detection and cache setup | Ariadne Conill | 1 | -39/+73 | |
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 |