classabbyamp
f68893ec9a
lib/transaction_fetch.c: don't rely on digest being NULL
...
caused issues when .xbps existed locally but .sig2 did not.
2023-08-30 21:00:37 +02:00
classabbyamp
192fac7cfd
configure: workaround for openssl3 compat
2023-08-30 21:00:37 +02:00
classabbyamp
406f109100
lib/, bin/: fix signature type, now called *.sig2
...
Since 8d5c48b
, xbps has used a sha1 ASN1 prefix with a sha256 hash, and
as of openssl v3, openssl cares about this. This works around that in a
compatible way by moving to a second sig file, binpkg.sig2.
For xbps-remove -O and xbps-rindex -r, also clean up obselete .sig files.
2023-08-30 21:00:37 +02:00
Duncan Overbruck
e2ab72082e
NEWS: add latest merges
2023-06-24 19:06:09 +02:00
Duncan Overbruck
ee770cb8e4
bin/xbps-remove: allow removing uninstalled packages from the cache
...
Change "obsolete packages" to "outdated packages" when describing the
old behaviour.
2023-06-24 18:58:22 +02:00
Duncan Overbruck
6d940e647f
lib/transaction_files: fix reinstall removal of shared directories
2023-06-24 18:56:31 +02:00
Duncan Overbruck
f37a78b9b5
tests: add test case for not deleting shared directories on package reinstall
2023-06-24 18:56:31 +02:00
Duncan Overbruck
fc9d32dcf7
NEWS: add XBPS_FLAG_INSTALL_AUTO fix
2023-06-24 18:55:35 +02:00
Duncan Overbruck
2ef15e76c4
tests: add another install mode test
2023-06-24 18:49:31 +02:00
Duncan Overbruck
825f1f30f9
lib: with XBPS_FLAG_INSTALL_AUTO only mark new installs as automatic
...
Closes: https://github.com/void-linux/xbps/issues/556
2023-06-24 18:49:31 +02:00
Duncan Overbruck
c1176447f3
lib: fix preservation of install mode for updated dependencies
2023-06-24 18:49:28 +02:00
classabbyamp
50fb2017d0
xbps-uhelper: add verbose output for cmpver/pkgmatch
...
I can never remember which retval means which thing. This only prints if
-v/--verbose is specified.
Examples:
```
$ ./bin/xbps-uhelper/xbps-uhelper -v cmpver 1 2 ; echo ret: $?
1 < 2
ret: 255
$ ./bin/xbps-uhelper/xbps-uhelper -v cmpver 1 1 ; echo ret: $?
1 = 1
ret: 0
$ ./bin/xbps-uhelper/xbps-uhelper -v cmpver 2 1 ; echo ret: $?
2 > 1
ret: 1
$ ./bin/xbps-uhelper/xbps-uhelper -v pkgmatch 'foo-1.0_1' 'foo>=0' ; echo ret: $?
foo-1.0_1 matches foo>=0
ret: 1
$ ./bin/xbps-uhelper/xbps-uhelper -v pkgmatch 'foo-1.0_1' 'foo<0.1_1' ; echo ret: $?
foo-1.0_1 does not match foo<0.1_1
ret: 0
```
it also seems that getting an error from pkgmatch is currently impossible
2023-06-01 20:21:57 +02:00
classabbyamp
b5b26630e9
lib/fetch/http.c: remove unused variable
...
thanks clang!
fetch/http.c:605:9: error: variable 'r' set but not used [-Werror,-Wunused-but-set-variable]
int t, r;
^
2023-05-30 21:20:05 +02:00
classabbyamp
79f29ed53e
bin/xbps-pkgdb: use -errno values for error states
...
...when checking a package. This will give more relevant information
than before, removes a message that is misleading in many cases, and
allows for some minor simplification.
before:
```
$ doas xbps-pkgdb runit-void; echo $?
ERROR: runit-void: hash mismatch for /etc/runit/2.
ERROR: runit-void: files check FAILED.
Failed to check `runit-void': Operation not permitted
1
```
after:
```
$ doas xbps-pkgdb runit-void; echo $?
ERROR: runit-void: hash mismatch for /etc/runit/2.
ERROR: runit-void: files check FAILED.
1
```
this does not change the behaviour of `xbps-pkgdb -a`
2023-05-30 21:20:05 +02:00
classabbyamp
c78231f00c
.github/workflows: add doxygen deployment to github pages
2023-02-21 03:24:23 +01:00
Duncan Overbruck
48c3a8208d
doc: tweak doxygen a bit
2023-02-21 02:44:57 +01:00
classabbyamp
426b3090f8
bin/xbps-create/xbps-create.1: add --sourcepkg, alphabetise
...
for #538
alpha order used: shortopts (upper before lower for each letter), then longopts
2023-02-15 21:46:51 +01:00
Duncan Overbruck
e0144062a4
bin/xbps-create: add sourcepkg metadata variable
...
This can be used similar to source-revisions, it should be set to the
pkgver of the template. This then allows to find removed subpackages by
looking for packages with outdated sourcepkg versions.
2023-02-15 21:46:43 +01:00
classabbyamp
305404744b
.github/workflows/ci.yaml: disable pcc CI
2023-02-11 21:33:14 +01:00
classabbyamp
d2f5317469
configure: add optional verbose output for flag tests
...
to aid future debugging, this will show stderr from the compiler when
--verbose is passed to configure.
2023-02-11 21:33:14 +01:00
Duncan Overbruck
be2525adc0
bin/xbps-uhelper: format usage like other xbps binaries
2023-02-11 21:32:36 +01:00
classabbyamp
e0317cc6d7
data/_xbps: add xbps-uhelper getname, getversion to completions
2023-02-11 19:32:44 +01:00
classabbyamp
9056a63701
bin/xbps-uhelper/xbps-uhelper.1: add manpage
2023-02-11 19:32:44 +01:00
classabbyamp
6010b9f091
bin/xbps-uhelper: add longopts for -CdrV
...
also adjust help output to be more clear, and removed examples (moving
those to the manpage)
2023-02-11 19:32:44 +01:00
classabbyamp
a5cb441f45
tests/xbps/xbps-fetch: update test for changed error message
2023-02-11 14:23:51 +01:00
classabbyamp
1271a3dbed
bin/: use xbps logging functions more
2023-02-11 14:23:51 +01:00
classabbyamp
7391a7b213
bin/xbps-uhelper: add getname and getversion actions
...
these actions are kind of "meta" actions, combining getpkgdepname and
getpkgname (and the respective version actions) so that a list of mixed
pkgvers and package patterns can be interpreted. This uses the internal
format check of `xbps_pkgpattern_{name,version}()` to allow for a
fallback to `xbps_pkg_{name,version}()` for exact versions, then falls
back to displaying an error message if that also fails.
2023-02-10 21:34:16 +01:00
classabbyamp
83e66e215a
bin/xbps-uhelper: allow multiple arguments for many actions
2023-02-10 21:34:16 +01:00
classabbyamp
06fbbba2e5
manpages: small formatting improvements
...
- use `.Os` to show "Void Linux" in the footer
- use `Aq Mt` to display email addresses
- use `.Lk` for the bug link
- remove unnecessary use of `.Nm <name>` when already defined
- add xbps-alternatives(1) to SEE ALSO where missing
- bump date
2023-02-10 21:33:51 +01:00
classabbyamp
6de3c0f1fd
lib/repo.c: add user-facing error message when repodata doesn't exist
...
Instead of just cryptically exiting 0 when opening a non-existant
repodata or stagedata, with the only message existing in the debug
output, show an error to the user on stderr.
mentioned in #519
2023-01-30 15:32:55 +01:00
Duncan Overbruck
a1a0167d80
add XBPS_SYSLOG environment variable to overwrite configuration
2022-12-24 14:29:24 +01:00
Duncan Overbruck
d962eaaf3c
lib: remove xhp argument from xbps_pubkey2fp
2022-12-24 14:29:24 +01:00
Duncan Overbruck
9efba6749f
lib: remove xhp argument from xbps_plist_{array,dictionary}_from_file
2022-12-24 14:29:24 +01:00
Duncan Overbruck
de484e9369
lib: change xbps_dbg_printf to not require xbps_handle
...
This allows to simplify a lot of code by not having to pass around
the xbps handle everywhere just to print some debug information.
2022-12-24 14:29:23 +01:00
Duncan Overbruck
1a3d1ea56c
bin/xbps-create: unify error messages and replace asserts with error checks
2022-12-22 22:16:47 +01:00
Duncan Overbruck
c70c55b19a
bin/xbps-create: cleanup filetype handling
2022-12-22 22:00:47 +01:00
Duncan Overbruck
9a46051499
bin/xbps-create: cleanup readlink related code
2022-12-22 21:42:32 +01:00
Duncan Overbruck
2deb156beb
lib: only include fetch.h where required
...
This results in a lot of places where limits.h was missing, so
this diff is larger than necessary.
2022-12-22 16:47:05 +01:00
classabbyamp
be7e532c3c
xbps-reconfigure: add ability to reconfigure dependencies
...
adds `-x/--deps` and `--fulldeptree`, that behave similar to the xbps-query modes
fixes #464
2022-12-22 13:47:33 +01:00
Fotios Valasiadis
f5d84e8339
changed order for readability
2022-12-22 13:37:22 +01:00
Fotios Valasiadis
97db203822
update xbps_transaction_update_packages(3) doc
2022-12-22 13:37:22 +01:00
classabbyamp
51e74505c2
README.md: update status badges
2022-12-11 14:09:30 +01:00
classabbyamp
0d0a2b9657
bin/xbps-rindex/remove-obsoletes.c: always opendir() pwd
...
If repodir is given as a relative path, it will not work because it will
try to open the dir relative to itself because it already chdir()ed into
repodir. This fixes xbps-rindex -r when relative paths are specified.
fixes #519
2022-12-09 20:45:29 +01:00
classabbyamp
0990b2ec81
CI: minor improvements to build/test workflow
...
- add a concurrency group so things aren't run on push *and*
pull_request update
- add a name to steps missing one
2022-12-09 20:32:54 +01:00
classabbyamp
e43d8d90fa
CI: migrate from LGTM to Github CodeQL
...
Github now runs the same service:
https://github.blog/2022-08-15-the-next-step-for-lgtm-com-github-code-scanning/
2022-12-09 20:32:54 +01:00
Duncan Overbruck
c7a88e5013
ci: coverity scan install and use curl
2022-08-30 14:11:21 +02:00
Duncan Overbruck
eaf47d6e06
ci: fix coverity scan PATH
2022-08-30 13:55:30 +02:00
Duncan Overbruck
4dd9d17e08
ci: fix coverity scan build command
2022-08-30 13:51:13 +02:00
Duncan Overbruck
3a2162b668
ci: allow triggering coverity-scan manually
2022-08-30 13:45:00 +02:00
Duncan Overbruck
46522edb2b
ci: use ghcr void containers in coverity-scan
2022-08-30 13:39:34 +02:00