summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-02-22db: fix apkindex path generationTimo Teräs1-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-21io_gunzip: fix handling short reads near end-of-fileTimo Teräs1-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-21fs_fsys: ignore mkdir EEXISTTimo Teräs1-1/+2
Be happy if the directory already exists.
2022-02-21tar: allow for space as numeric field terminatorptrcnull1-1/+1
2022-02-21solver: require package layer to be enabled for installTimo Teräs2-3/+7
2022-02-21adb: add layer to pkginfoTimo Teräs3-1/+4
2022-02-21db: sort world dependencies to layersTimo Teräs5-7/+27
2022-02-21db: prepare database writing for layersTimo Teräs1-135/+172
2022-02-21db: prepare database reading for layersTimo Teräs4-25/+58
2022-02-14support new index format without attaching archPaul Spooren1-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-14fs_uvol: take down volume before removalDaniel Golle1-0/+4
Make sure volume is in 'down' state before attempting to remove it. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-02-13context: fix 'uvol' default pathDaniel Golle1-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-03database: fix apk_db_cache_active returning true when cache not configuredAriadne Conill1-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-01mkpkg, adb: validate version and dependency formatTimo Teräs6-11/+26
Fail if the package or dependency version format is not valid. fixes #10807
2022-01-24fix typo on apk-add.8.scdThiago Perrotta1-1/+1
2022-01-21genhelp: fix upper case substitionTimo Teräs1-1/+1
2022-01-21cache: allow various flags, and addition of dependenciesTimo Teräs2-17/+67
Allow controlling 'cache download' more closely to 'upgrade' so it can be used to pre-download packages for ugprade.
2022-01-17package: fail on invalid control dataTimo Teräs2-11/+18
Handle meta data error to produce hard failure. fixes #10806
2022-01-13support building with uncompressed help databasesAriadne Conill4-19/+41
2021-12-29package: factor out /dev initialization to linux-specific helper functionAriadne Conill1-8/+20
2021-12-29database: refactor mounting and unmounting /procAriadne Conill1-19/+44
2021-12-29database: relocate find_mountpoint()Ariadne Conill1-29/+29
2021-12-29database: refactor cache remountingAriadne Conill1-5/+15
2021-12-29database: refactor tmpfs root detection and cache setupAriadne Conill1-39/+73
2021-12-29portability: add sys/sysmacros.h wrapper for makedev/major/minorAriadne Conill1-0/+9
2021-12-29portability: include environ in overlaid unistd.hAriadne Conill1-0/+5
2021-12-29portability: implement pipe2 and mknodatAriadne Conill5-0/+64
2021-12-29ci: use meson on debian, not legacy build systemAriadne Conill1-4/+5
2021-12-29portability: take over strlcpyAriadne Conill5-17/+18
2021-12-29io: use opendirectory for UID/GID lookups on macOSAriadne Conill1-2/+8
macOS has no concept of a chroot-specific UID/GID database, as the database is actually LDAP. ref #10794
2021-12-29abstract differences between GNU and Apple xattr functionsAriadne Conill3-5/+35
2021-12-29database: isolate linux-specific mountpoint headersAriadne Conill1-5/+8
2021-12-29legacy build system: include libportability headersAriadne Conill1-1/+1
2021-12-29portability: add endian.h wrapperAriadne Conill1-0/+61
2021-12-29portability: implement skeleton with memrchr functionAriadne Conill5-1/+60
2021-12-29apk_adb: add missing compare functionsTimo Teräs1-0/+2
fixes #10803
2021-12-29database: use SA_RESETHAND instead of SA_ONESHOT when registering a SIGALRM ↵Ariadne Conill1-1/+1
handler SA_ONESHOT is a GNU-specific alias for POSIX SA_RESETHAND.
2021-12-29gitignore: add build/Paul Spooren1-0/+1
The folder is commonly used for meson, ignore it. Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-12-29use fstatat, not fstatat64Ariadne Conill2-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-29meson: define _FILE_OFFSET_BITS=64 for glibcAriadne Conill1-0/+3
2021-12-29apk: add --preserve-env optionPaul Spooren4-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-29apk: add --force-no-chroot optionPaul Spooren2-0/+9
[TT: reoder changes to alphabetically sorted locations] Signed-off-by: Paul Spooren <mail@aparcar.org>
2021-12-27make stderr line bufferedTimo Teräs1-0/+2
2021-12-27print: improve indented printing apiTimo Teräs4-42/+68
- make sure all commit errors go to stderr - make it a bit more api like
2021-12-27list: sort options alphabeticallyTimo Teräs2-20/+20
2021-12-27list --manifestPaul Spooren2-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-27io: fix tee error handling pathTimo Teräs1-3/+6
Make sure the from is not dereferenced/used on error path, and cancel the ostream. fixes #10800
2021-12-23add option --no-logfileDaniel Golle3-1/+6
2021-12-20io.c: add missing limits.hPaul Spooren1-0/+1
Fixes compilation on MacOS X
2021-12-18ci: strip static binaryKevin Daudt1-1/+1
To reduce the file size, strip the static binary.