Commit Graph

3740 Commits

Author SHA1 Message Date
Juan RP
8663c3bd75
lib/fetch/common.c: fix CID 284959 (NULL returns).
Also fix previous CID.
2020-04-19 11:53:28 +02:00
Juan RP
359721baa6
lib/fetch/common.c: fix CID 284966 (Resource leak). 2020-04-19 11:43:54 +02:00
Juan RP
7b623783c8
lib/package_alternatives.c: fix CID 284970 (Resource leak).
Also fix calloc args order.
2020-04-19 11:38:09 +02:00
Juan RP
c5904cc6ef
lib/conf.c: fix CID 284952 (Identical branches). 2020-04-19 11:22:17 +02:00
Juan RP
96acc6d8ef
lib/portableproplib/prop_object.c: fix CID 284969 (Double free). 2020-04-19 11:17:39 +02:00
Juan RP
83d87ce05b
lib/transaction_files.c: fix CID 284958 (Resource leak). 2020-04-19 11:17:02 +02:00
Juan RP
debfcf1273
Use xbps_repo_release() where applicable. 2020-04-19 11:09:05 +02:00
Duncan Overbruck
cb580a5c1a bin/xbps-query: use puts instead of printf("%s\n", ...) 2020-04-19 11:05:00 +02:00
Duncan Overbruck
910bb5674c bin/xbps-query: simplify list printing (with truncation) 2020-04-19 11:05:00 +02:00
Duncan Overbruck
a2c7f5fc29 bin/xbps-query: simplify search result printing (with truncation)
This should also fix a useless error from lgtm
2020-04-19 11:05:00 +02:00
Duncan Overbruck
df5f2a9378
README.md: add coverity.com badge 2020-04-18 16:13:57 +02:00
Duncan Overbruck
8d3063b5d2
.github/workflows/coverity-scan.yml: do scheduled coverity scan 2020-04-18 15:45:33 +02:00
Duncan Overbruck
c9837b9a9e
.github/workflows/coverity-scan.yml: fix tar 2020-04-18 15:39:00 +02:00
Duncan Overbruck
bed16c48db
.github/workflows/coverity-scan.yml: ignore lock files 2020-04-18 15:29:17 +02:00
Duncan Overbruck
a1f54ea4b6
.github/workflows/coverity-scan.yml: enable tests 2020-04-18 15:23:46 +02:00
Duncan Overbruck
2bc25a3369
.github/workflows/coverity-scan.yml: simplify 2020-04-18 15:17:10 +02:00
Duncan Overbruck
ef4937ecb7
.github/workflows/coverity-scan.yml: fix syntax 2020-04-18 15:10:20 +02:00
Duncan Overbruck
cf59b4a3b1
.github/workflows/coverity-scan.yml: use voidlinux/voidlinux docker container to build 2020-04-18 15:08:38 +02:00
Duncan Overbruck
65cd539f2d
.github/workflows/coverity-scan.yml: once again I'm asking you to do a coverity scan 2020-04-18 14:55:15 +02:00
Duncan Overbruck
13babcb5c0
.github/workflows/coverity-scan.yml: fix url again 2020-04-18 14:49:27 +02:00
Duncan Overbruck
6ff38bc320
.github/workflows/coverity-scan.yml: fix coverity scan tool urls 2020-04-18 14:47:38 +02:00
Duncan Overbruck
2bb6fae5d3
.github/workflows/coverity-scan.yml: fix openssl dependency 2020-04-18 14:44:28 +02:00
Duncan Overbruck
284f41c16c
.github/workflows/coverity-scan.yml: do it on push for now 2020-04-18 14:42:16 +02:00
Duncan Overbruck
537ef657d2
add github action for coverity scan 2020-04-18 14:36:35 +02:00
Juan RP
db1766986c
configure: accept any openssl version. 2020-04-16 14:57:18 +02:00
Juan RP
3164e9c7ce
README.md: openssl >= 1.1 has been tested. 2020-04-16 14:46:30 +02:00
Juan RP
4990a2dd91 lib/Makefile: bump LIBXBPS_MICRO. 2020-04-14 20:27:54 +02:00
Juan RP
70efe5c63a repo: introduce xbps_repo_release(), misc changes.
- xbps_repo_release(): new function to release all resources
  associated with a repository object.

- xbps_repo_close(): this now just closes the file descriptor
  associated with the archive and associated resources.

- repo_open_local: after getting the repository dictionaries,
  use xbps_repo_close() to release archive resources.

Bump XBPS_API_VERSION.
2020-04-14 20:27:54 +02:00
Juan RP
b9fb5e1cc8 xbps-uchroot: support read-only bind mounts, misc improvements.
- Added -B src:dest (like -b) but this makes bind mounts in
  read-only mode.

- Get rid of setfsuid(), it's unnecessary.

- Make sure chrootdir is not '/', use realpath().

- Always set SECBIT_NOROOT, see capabilities(7).

- Do not mount recursively, right now this only mounts
  /dev (ro), /dev/shm (rw), /sys (ro) and /proc (ro).
  Previously any mount below any specific mount were recursively
  mounted in chrootdir.
2020-04-14 20:01:44 +02:00
Juan RP
ae87662547 xbps-fbulk.1: sync with reality. 2020-04-14 19:57:23 +02:00
Juan RP
da2c104d16 xbps-fbulk: calloc -> malloc.
No need to use calloc here because its members are initialized
later on.
2020-04-14 19:57:23 +02:00
Juan RP
5d81aec07f xbps-fbulk: create log files with txt extension. 2020-04-14 19:57:23 +02:00
Juan RP
4f8e07aa64 xbps-fbulk: parallel working implementation.
- Removed -a, this won't work due to dependency cycles between
  host/target.
- Do the process in two steps: collect deps and then build.
- Cleaned up the whole code.
2020-04-14 19:57:23 +02:00
Anthony Iliopoulos
a3a103a194 travis: build on bionic
Change the build environment from the current travis default (xenial) to
bonic, so that we can run on a newer kernel. This gets rid of issues
related with coreutils due to the statx syscall which is unavailable on
xenial kernels.
2020-04-02 13:11:22 +02:00
Juan RP
bfad1afff3
Prepare for 0.59.1. 2020-04-01 11:32:37 +02:00
Juan RP
bd707acfee
repo: fix a double free with invalid repodata.
Fixes #248

Added new test case to verify.
2020-03-31 18:36:04 +02:00
Juan RP
743e76938f
xbps-install: fix regression in stats.
Updated packages will also be configured, so take this into
account in the stats.
2020-03-31 17:26:38 +02:00
Piraty
8b0d54c736 _xbps_src: update archs, add 'sort-dependencies' 2020-03-31 13:04:49 +02:00
Juan RP
0113b676ba
tests: rename transaction_check_revdeps to make .gitignore effective. 2020-03-31 12:32:31 +02:00
Juan RP
0524b12f74
Revert "travis: needs coreutils for stat(1) (used in tests)."
This reverts commit 58baccc6fb.

Does not fix the real issue unfortunately
2020-03-31 11:53:10 +02:00
Juan RP
58baccc6fb
travis: needs coreutils for stat(1) (used in tests). 2020-03-31 11:48:49 +02:00
Duncan Overbruck
ffa5bea178
tests: add expected failure test case for cc alternatives removal 2020-03-25 14:37:31 +01:00
Piraty
8aef141772 _xbps_src: correct spelling for -q 2020-03-12 12:15:03 +01:00
Đoàn Trần Công Danh
a46e179716 zsh-completion: xbps-src: complete -q
See-also: https://github.com/void-linux/void-packages/pull/19927
2020-03-08 05:58:49 +01:00
Piotr Wójcik
7b933a87a8 Testcase for xbps_transaction_check_revdeps regression #245 2020-03-06 06:58:35 +01:00
Duncan Overbruck
b0904b32d2
bin/xbps-fetch: fix output when not using shasum mode 2020-03-05 12:53:48 +01:00
Duncan Overbruck
044f75450b
lib/transaction_check_revdeps.c: fix previous fix
Don't set transaction type from inside the revdep check,
if the package is being removed then there is not point
in continueing checking if its breaks.

Referencing #245
2020-03-05 00:40:47 +01:00
Duncan Overbruck
aed9402d62
lib/transaction_check_revdeps.c: fix regression in revdeps check
this is probably the same as reported in #245.

Its again not resetting/initializing a variable in a loop,
falling back to the previous set value.
2020-03-04 23:51:06 +01:00
Duncan Overbruck
4d40179a8a
bin/xbps-install: fix regression in small transaction stats
fixes #242
2020-03-04 12:46:48 +01:00
Juan RP
40e14203f7
NEWS: release time! 2020-03-03 08:56:17 +01:00