| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
`s[len - 1]` is not allowed for strings whose length is 0.
Caught by clang's UBSAN.
PR: https://github.com/gentoo/portage-utils/pull/28
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
* Libtool was only used for convenience libraries, which can
be done in vanilla Automake. This allows passing `static`
in LDFLAGS.
Bug: https://bugs.gentoo.org/841898
Signed-off-by: David Seifert <soap@gentoo.org>
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
| |
Bug: https://bugs.gentoo.org/852197
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
|
| |
Version comparisons are complex, stick with strict PMS definition for
it, so we produce the same results as Portage.
Bug: https://bugs.gentoo.org/838856
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
ensure we break out of the config-protect directories loop, instead of
just skipping one directory, such that we don't produce bogus amounts of
files, and also don't check despite we were told not to check (-P)
Bug: https://bugs.gentoo.org/837188
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
condense conditional and use-deps to a single line when there's a single
target, e.g.:
use? ( cat/pkg )
instead of
use? (
cat/pkg
)
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
|
| |
some weird basename-lgpl problems occur with the newer gnulib snapshot,
so stick with older version for now
Bug: https://bugs.gentoo.org/834136
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
| |
Bug: https://bugs.gentoo.org/834136
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
| |
this actually hides a problem, and we don't want that
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
|
| |
This reverts commit 704a36ae325d8cbd3cee5b40cd4ad7bf937ab724.
It actually hides a problem (as seen in bug #829837)
Bug: https://bugs.gentoo.org/829837
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Thanks to Michael Yagliyan for finding this bug and proposing the fix.
We cannot perform merge-sort if the comparison in use is different
between sorting and processing afterwards. Use case-sensitive sort
everywhere, for it is cheaper, matches Portage and is safer/more
correct/inline with PMS. This does change the default output ordering
of the flags though.
Added a test that ensures capital USE-flag is now matched correctly.
Bug: https://bugs.gentoo.org/829579
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
these tests are somewhat expensive, so reduce them
- style is kind of personal
- noone should really have the need to use PATH_MAX any more (wrapped)
- combine obsolete funcs and headers
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
| |
This caused memory corruption, and a subsequent crash in qmanifest.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
| |
- sendfile() additions to configure.ac
- autoupdate for 2.71
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
| |
- unify best_version and grab_binpkg_info, into single function using
tree_match_atom to benefit from cache and abstract any particulars
- default to install action when no action given
- unmerge previous package on merge upgrade again
- possibly fix bug #792273 by exporting vars
Bug: https://bugs.gentoo.org/792273
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
|
| |
We have no real need to test what Portage's doing here, and dropping the
test means we're Python and Portage free.
Bug: https://bugs.gentoo.org/772983
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
| |
Somehow Travis env cannot be replicated, and still has a coredumping
valgrind
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
|
| |
After some manual testing and fixes on a Bionic VM, valgrind no longer
dumps core there, so let's hope we can finally run the full suite using
valgrind on Travis too.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
| |
While we had support for installing various compressed binpkgs, we never
tested this at all. Especially since zstd now became the new standard
Portage uses, it is a good idea to ensure we cope well with this.
This new blob of tests, checks qtbz2, qlist and qmerge to disassemble,
assemble and install binpkgs with all known supported compressors.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
| |
it's really a shame that valgrind crashes so often in the travis setup
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
Portage seems to inject PORTDIR (with a weird value) in the environment.
This shows up during make check on some systems. (Bug #701402.)
Always remove it from the environment to avoid interference.
Bug: https://bugs.gentoo.org/701402
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
|
| |
this tests the case from the archives:
/usr/foo -/usr/foo/bar /usr/foo/bar/baz
Bug: https://bugs.gentoo.org/699376
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
| |
Bug: https://bugs.gentoo.org/699376
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
|
| |
This tests INSTALL_MASK on a simple and a inversed path, with one level
difference.
Bug: https://bugs.gentoo.org/699376
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
| |
rework allocations somewhat, and make sure PVR does NOT include -r0, in
addition add PF to the structure, so this one can be grabbed more easily
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
This make portage-utils dep-free (when qmanifest/qtegrity are not
compiled in) again, thus easier for the static binary case.
Small bonus is that the repo order is now deterministic (as found in the
config file(s)), which may help reduce test differences.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
|
|
| |
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|