]>
git.ipfire.org Git - thirdparty/libsolv.git/log
David Brochart [Fri, 17 Apr 2020 13:48:09 +0000 (15:48 +0200)]
Move feature minimization to pool_buildversioncmp()
Michael Schroeder [Fri, 17 Apr 2020 12:39:57 +0000 (14:39 +0200)]
conda: deal with repositories containing both new and legacy packages
We ignore the legacy .tar.bz2 entry if we also have a .conda package
with the otherwise same filename.
Michael Schroeder [Fri, 17 Apr 2020 12:25:46 +0000 (14:25 +0200)]
Merge pull request #362 from wolfv/add_conda_packages
add parsing of the packages.conda key
Michael Schroeder [Thu, 16 Apr 2020 21:30:43 +0000 (23:30 +0200)]
Conda: de-priorize track features
Based on a pull request by Wolf Vollprecht. Thanks!
Michael Schroeder [Thu, 16 Apr 2020 21:29:00 +0000 (23:29 +0200)]
Add repo_lookup_count and solvable_lookup_count functions
Also refactor the way we access the dependencies in the solvable
a bit by adding a solvable_offsetptr helper function.
Michael Schroeder [Thu, 16 Apr 2020 21:26:46 +0000 (23:26 +0200)]
Add repodata_lookup_count function
This is currently internal only. It will be used to compare the
numbers of track_features entries in conda.
Wolf Vollprecht [Wed, 1 Apr 2020 07:11:47 +0000 (09:11 +0200)]
Merge pull request #1 from davidbrochart/add_conda_packages
Fix JSON parsing
David Brochart [Tue, 31 Mar 2020 15:10:12 +0000 (17:10 +0200)]
Fix JSON parsing
Michael Schroeder [Thu, 13 Feb 2020 15:11:49 +0000 (16:11 +0100)]
Merge pull request #368 from dralley/bindings-fix
Add ENABLE_PYTHON3 to the conditional that triggers building bindings
Daniel Alley [Wed, 12 Feb 2020 23:05:07 +0000 (18:05 -0500)]
Add ENABLE_PYTHON3 to the conditional that triggers building bindings
ENABLE_PYTHON3 is used in the CMakeLists.txt in the bindings
directory but if it's defined alone it won't trigger building the
bindings.
Michael Schroeder [Wed, 12 Feb 2020 10:33:58 +0000 (11:33 +0100)]
Fix ruleinfo of complex dependencies returning the wrong origin
We order the literals for complex dependencies, so the first
literal is not always the origin package. So patch the origin
when generating rule infos.
Fixes #367
Michael Schroeder [Wed, 22 Jan 2020 12:54:05 +0000 (13:54 +0100)]
Add changes, bump version to 0.7.11
Michael Schroeder [Wed, 22 Jan 2020 12:00:43 +0000 (13:00 +0100)]
Put the path to the database in the state
This allows us to make the path configurable if we need to
do this in the future. It also makes the ostree handling
a bit easier.
Michael Schroeder [Wed, 22 Jan 2020 11:56:21 +0000 (12:56 +0100)]
Simplify infarch rule generation
If bestscore is zero, badq will always be empty.
Michael Schroeder [Tue, 21 Jan 2020 14:16:25 +0000 (15:16 +0100)]
Make add_update_target work with multiversion installs
An installed targeted package is a target for all installed
packages with the same name.
We're currently ignoring obsoletes, but they should not be in
an installed state anyway.
Fixes issue #364
Michael Schroeder [Tue, 21 Jan 2020 13:59:40 +0000 (14:59 +0100)]
Update generated files
Michael Schroeder [Tue, 21 Jan 2020 13:59:09 +0000 (14:59 +0100)]
Update generated files
Michael Schroeder [Tue, 21 Jan 2020 13:51:10 +0000 (14:51 +0100)]
Merge pull request #358 from zoofood/patch-1
Minor changes for readability.
Michael Schroeder [Tue, 21 Jan 2020 13:49:45 +0000 (14:49 +0100)]
Merge pull request #361 from Conan-Kudo/fix-vendorchange-doc-typo
doc: Fix typo in description about libsolv vendor policies
Michael Schroeder [Tue, 21 Jan 2020 13:18:33 +0000 (14:18 +0100)]
solvversion.h: add missing LIBSOLVEXT_FEATURE_ZCHUNK_COMPRESSION
Should have been in commit
75d03059cdaf7770d2217fafaba6af732cd860ba
Michael Schroeder [Tue, 21 Jan 2020 11:00:40 +0000 (12:00 +0100)]
Treat retracted pathes as irrelevant
Wolf Vollprecht [Wed, 15 Jan 2020 17:37:30 +0000 (18:37 +0100)]
add parsing of the packages.conda key
Neal Gompa [Tue, 7 Jan 2020 13:18:17 +0000 (08:18 -0500)]
doc: Fix typo in description about libsolv vendor policies
Michael Schroeder [Thu, 19 Dec 2019 15:28:38 +0000 (16:28 +0100)]
Fix solv_zchunk decoding error if large chunks are used
Oops. This commit is a bit embarassing.
Jeff Rouse [Tue, 17 Dec 2019 07:46:32 +0000 (23:46 -0800)]
Minor changes for readability.
Michael Schroeder [Wed, 11 Dec 2019 14:55:48 +0000 (15:55 +0100)]
Make ENABLE_RPMDB_LIBRPM the default
Direct BerkeleyDB access can still be selected with ENABLE_RPMDB_BDB.
Michael Schroeder [Wed, 11 Dec 2019 13:01:22 +0000 (14:01 +0100)]
Simplify RpmHead handling in repo_rpmdb
Michael Schroeder [Tue, 10 Dec 2019 20:03:29 +0000 (21:03 +0100)]
build with -DENABLE_RPMDB_LIBRPM=1 on SUSE
Michael Schroeder [Tue, 10 Dec 2019 13:21:00 +0000 (14:21 +0100)]
Add changes, bump version to 0.7.10
Michael Schroeder [Tue, 10 Dec 2019 12:10:44 +0000 (13:10 +0100)]
Rework repo_rpmdb.c a bit
- Clean up package dabase handing
- Add rpm_stat_database() function that allows to stat the
package database
- Add rpm_hash_database_state() function that hashes the
package database state
- Use rpm's new rpmdbFStat() function if available
- Use rpmdbNextIteratorHeaderBlob() function (SUSE extension)
if available
Michael Schroeder [Thu, 21 Nov 2019 15:35:30 +0000 (16:35 +0100)]
Add changes, bump version to 0.7.9
Michael Schroeder [Fri, 15 Nov 2019 12:01:45 +0000 (13:01 +0100)]
Don't complain about constrains between two installed packages
Michael Schroeder [Fri, 15 Nov 2019 11:01:23 +0000 (12:01 +0100)]
Delete superflous queue_empty statements
solvable_lookup_idarray already empies the queue.
Michael Schroeder [Fri, 15 Nov 2019 10:58:54 +0000 (11:58 +0100)]
Rename prereqq to depq
We use it also for conda constrains nowadays.
Michael Schroeder [Fri, 15 Nov 2019 10:57:02 +0000 (11:57 +0100)]
Ignore constrains conflicting with itself, tweak constrains problem message
Michael Schroeder [Thu, 14 Nov 2019 14:53:23 +0000 (15:53 +0100)]
Remote unused test for brokeness from addedge
Michael Schroeder [Thu, 14 Nov 2019 13:16:59 +0000 (14:16 +0100)]
Add support for conda constrains
Michael Schroeder [Tue, 12 Nov 2019 10:37:02 +0000 (11:37 +0100)]
Add changes, bump version to 0.7.8
Michael Schroeder [Tue, 12 Nov 2019 10:22:50 +0000 (11:22 +0100)]
Make arch<->noarch pkg changes work for suse patches
This means we add a single pkg < evr conflict for noarch packages,
and both pkg.arch < evr and pkg.noarch < evr conflicts otherwise.
Michael Schroeder [Mon, 11 Nov 2019 11:53:55 +0000 (12:53 +0100)]
Add another SUSE hack: complex requires in ptf packages should only match package names
Michael Schroeder [Fri, 8 Nov 2019 14:09:54 +0000 (15:09 +0100)]
Add experimental support for self-destruct packages
Self-destruct packages will not be part of the transaction. But
they still will obsolete packages, thus updating to a self-destruct
package will lead to the erasure of the old package.
Michael Schroeder [Fri, 8 Nov 2019 13:34:18 +0000 (14:34 +0100)]
Add support for blacklisted packages
This will be used in SUSE's ptf packages and also to retract
released updates. The idea is that it is not possible to pull in
a blacklisted package via a dependency, they can only be installed
by a job that directly addresses them (the SETEVR bit is set).
Michael Schroeder [Tue, 22 Oct 2019 12:16:11 +0000 (14:16 +0200)]
Move marker argument in solvable_matchessolvable()
This makes it similar to the pool_whatmatchessolvable() function.
Michael Schroeder [Tue, 22 Oct 2019 12:08:23 +0000 (14:08 +0200)]
Add solvable_matchessolvable() function
Checks if one of the dependencies of a solvable is matched by
the provides of another solvable. It is also possible to get
the list of matching dependencies.
Michael Schroeder [Mon, 21 Oct 2019 12:52:31 +0000 (14:52 +0200)]
Add workaround to stat_database() to find other database backends
This is pretty horrible. Rpm upstream wants to add a function
that stats the database for us, so we may use that in some future
version.
Michael Schroeder [Mon, 21 Oct 2019 11:17:29 +0000 (13:17 +0200)]
repo_rpmdb.c: move "Packages" string into backend implementations
Other rpm database implementations like "ndb" use different names.
Michael Schroeder [Fri, 18 Oct 2019 11:30:21 +0000 (13:30 +0200)]
Add UPDATE_STATUS to knownids
Should have been in last commit.
Michael Schroeder [Fri, 18 Oct 2019 09:04:36 +0000 (11:04 +0200)]
Parse the patch status in the updateinfo xml
The status is usually 'stable', but can also be things like
'testing' or 'retracted'
Michael Schroeder [Fri, 18 Oct 2019 08:54:57 +0000 (10:54 +0200)]
Add changes, bump version to 0.7.7
Michael Schroeder [Mon, 14 Oct 2019 10:06:09 +0000 (12:06 +0200)]
Fix lto_cflags definition
Michael Schroeder [Tue, 8 Oct 2019 12:11:55 +0000 (14:11 +0200)]
Remove ununsed inline functions
Michael Schroeder [Tue, 8 Oct 2019 11:41:45 +0000 (13:41 +0200)]
Add testcases for POOL_FLAG_WHATPROVIDESWITHDISABLED
Michael Schroeder [Tue, 8 Oct 2019 11:40:45 +0000 (13:40 +0200)]
Fix handling of disabled installed packages in distupgrade
Such packages must not be touched, i.e. they must stay installed.
Michael Schroeder [Mon, 30 Sep 2019 12:35:57 +0000 (14:35 +0200)]
Add POOL_FLAG_WHATPROVIDESWITHDISABLED pool flag
This makes libsolv keep disabled packages (i.e. packages
not in the considered map) in the whatprovides hash.
It is useful if you want to modify the considered map after
the whatprovides hash is generated.
Note that using the flag will change the reported problems
as disabled packages are now seen by the solver but
considered uninstallable.
Michael Schroeder [Wed, 25 Sep 2019 13:37:11 +0000 (15:37 +0200)]
Fix updating of too many packages in focusbest mode
Michael Schroeder [Wed, 28 Aug 2019 12:56:21 +0000 (14:56 +0200)]
Add changes, bump version to 0.7.6
Michael Schroeder [Wed, 28 Aug 2019 12:45:51 +0000 (14:45 +0200)]
Merge pull request #344 from haoren3696/master
repodata_schema2id: fix heap-buffer-overflow in memcmp
StefanBruens [Mon, 12 Aug 2019 22:27:42 +0000 (00:27 +0200)]
Make code compatible with swig 4.0, remove obj0 instances
The deprecated "-aliasobj0" option was removed in swig 4.0, and
obj0, which was only meant as a porting helper, is no longer available:
https://github.com/swig/swig/commit/
cd8fc0a025fb
Use the correct "$self" notation, which is expanded to the correct
code regardless of swig version and options.
Zhipeng Xie [Tue, 6 Aug 2019 01:50:57 +0000 (09:50 +0800)]
repodata_schema2id: fix heap-buffer-overflow in memcmp
When the length of last schema in data->schemadata is
less than length of input schema, we got a read overflow
in asan test.
Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
Michael Schroeder [Fri, 2 Aug 2019 14:33:00 +0000 (16:33 +0200)]
Improve fix for issue #343
The old commit just checked if the package was identical to the
one we're updating. But we need to check against all the installed
packages.
Michael Schroeder [Fri, 2 Aug 2019 09:43:28 +0000 (11:43 +0200)]
Add a TODO entry
Michael Schroeder [Thu, 1 Aug 2019 14:28:00 +0000 (16:28 +0200)]
Special updaters handling: put identical to installed also on the list
We need to do this so that repo priority pruning does the right thing.
Fixes issue #343
Mikhail Terekhov [Mon, 29 Jul 2019 03:17:45 +0000 (23:17 -0400)]
typo
Daniel Alley [Wed, 17 Jul 2019 18:40:25 +0000 (14:40 -0400)]
Expose pool_whatcontainsdep() in the bindings
Document both pool_whatcontainsdep() and pool_whatmatchesdep()
closes #335
Michael Schroeder [Tue, 16 Jul 2019 11:20:12 +0000 (13:20 +0200)]
parseRichDep: merge duplicated code into a skipnonwhite() inline function
Michael Schroeder [Mon, 15 Jul 2019 14:49:02 +0000 (16:49 +0200)]
pool_match_dep: support interval REL_WITH deps
See https://bugzilla.redhat.com/show_bug.cgi?id=
1534123
I have a feeling that I'm going to regret this...
Michael Schroeder [Fri, 12 Jul 2019 12:12:51 +0000 (14:12 +0200)]
Merge pull request #336 from marxin/fix-static-library-lto-bytecode
Fix lto-bytecode errors:
Martin Liska [Wed, 10 Jul 2019 13:31:21 +0000 (15:31 +0200)]
Fix lto-bytecode errors:
[ 250s] libsolv-devel.x86_64: E: lto-bytecode (Badness: 10000) /usr/lib64/libsolv.a
[ 250s] libsolv-devel.x86_64: E: lto-bytecode (Badness: 10000) /usr/lib64/libsolvext.a
- Add -ffat-lto-objects to $optflags as the package provides
static libraries
- Remove NO_BRP_STRIP_DEBUG=true as brp-15-strip-debug will
not strip debug info for archives
Michael Schroeder [Tue, 9 Jul 2019 12:44:36 +0000 (14:44 +0200)]
bindings: make the selection filters return the self object
Michael Schroeder [Mon, 1 Jul 2019 12:52:24 +0000 (14:52 +0200)]
Always do nevr check for src rpms, even if there are provides
Newer rpm versions add a "rpmlib(DynamicBuildRequires)" provides
to source rpms in some cases. Sigh.
Michael Schroeder [Mon, 1 Jul 2019 11:12:26 +0000 (13:12 +0200)]
Document get/set_considered/disabled_list
Michael Schroeder [Mon, 1 Jul 2019 09:29:22 +0000 (11:29 +0200)]
Merge pull request #323 from wolfv/osx_rpath_cmake
OS X rpath handling
Wolf Vollprecht [Fri, 19 Apr 2019 10:16:07 +0000 (12:16 +0200)]
enable os x rpath usage in cmake
Michael Schroeder [Mon, 17 Jun 2019 11:11:02 +0000 (13:11 +0200)]
repo2solv: support zchunk compressed data
Michael Schroeder [Mon, 17 Jun 2019 09:20:04 +0000 (11:20 +0200)]
bindings: add get_disabled_list() and set_disabled_list()
Michael Schroeder [Thu, 13 Jun 2019 14:16:19 +0000 (16:16 +0200)]
Add changes
Michael Schroeder [Thu, 13 Jun 2019 14:07:46 +0000 (16:07 +0200)]
Extend the job to the install buddy for erase and lock jobs
This is needed so that a cleandeps erase of a pattern propagates
to the packages, as pattern packages are automagically marked
as userinstalled.
Michael Schroeder [Wed, 12 Jun 2019 11:39:44 +0000 (13:39 +0200)]
Add changes, bump version to 0.7.5
Michael Schroeder [Wed, 5 Jun 2019 14:35:30 +0000 (16:35 +0200)]
Do not use the broken RPMLIB_VERSION_LT macro
Michael Schroeder [Wed, 5 Jun 2019 14:16:09 +0000 (16:16 +0200)]
rpm-5.2 still had an array index
Michael Schroeder [Wed, 5 Jun 2019 13:58:55 +0000 (15:58 +0200)]
Make libsolv work with rpm 5.2
Version 5.2 still used native endian encoding for the database ids.
Michael Schroeder [Wed, 5 Jun 2019 13:19:28 +0000 (15:19 +0200)]
Add some casts for clarification
The rpm database id is a num, thus unsigned. But it gets stored into
an id array.
Michael Schroeder [Wed, 5 Jun 2019 13:18:26 +0000 (15:18 +0200)]
Allow the complete 32bit for the rpm database id
Michael Schroeder [Mon, 3 Jun 2019 14:12:24 +0000 (16:12 +0200)]
Remove unused 'basefile' var
Michael Schroeder [Mon, 3 Jun 2019 14:08:13 +0000 (16:08 +0200)]
Fix warnings found by clang
Michael Schroeder [Mon, 3 Jun 2019 14:01:07 +0000 (16:01 +0200)]
Another deb tweak
Michael Schroeder [Mon, 3 Jun 2019 13:59:46 +0000 (15:59 +0200)]
Make testcase run on debian
Michael Schroeder [Mon, 3 Jun 2019 13:45:37 +0000 (15:45 +0200)]
Add testcases for last commit
Michael Schroeder [Mon, 3 Jun 2019 13:45:00 +0000 (15:45 +0200)]
Make lock jobs trump dup and forcebest jobs
Michael Schroeder [Mon, 3 Jun 2019 13:21:28 +0000 (15:21 +0200)]
Make repo_lookup_type return the correct type for data stored in the solvable
Also clean up and speed up the code a bit.
Michael Schroeder [Tue, 14 May 2019 09:48:28 +0000 (11:48 +0200)]
Make peace with swig-4.0.0
Patch by Jitka PlesnĂková, thanks!
Michael Schroeder [Mon, 29 Apr 2019 12:26:27 +0000 (14:26 +0200)]
Add CVE numbers so that SUSE's maintenance engine is happy
Michael Schroeder [Thu, 18 Apr 2019 13:48:08 +0000 (15:48 +0200)]
Delete superfluous spaces
Michael Schroeder [Thu, 18 Apr 2019 13:44:38 +0000 (15:44 +0200)]
Move move_installed_to_front call after sort_by_common_dep
Staying with the already installed package name is more important
than a common dependency.
Michael Schroeder [Thu, 18 Apr 2019 13:43:59 +0000 (15:43 +0200)]
Deal with update/feature jobs in alternative printing
Michael Schroeder [Wed, 17 Apr 2019 11:30:36 +0000 (13:30 +0200)]
Also compare build version if only one of the solvables has it
Spotted by Wolf Vollprecht
Michael Schroeder [Wed, 17 Apr 2019 09:57:32 +0000 (11:57 +0200)]
Make the conda.h header file available
We have the pool_conda_matchspec() function in the public API.
Michael Schroeder [Wed, 17 Apr 2019 09:55:51 +0000 (11:55 +0200)]
repo_conda: Fix type check of build_number
It's a number, not a string. Problem spotted by Wolf Vollprecht,
thanks!
Michael Schroeder [Mon, 15 Apr 2019 13:46:46 +0000 (15:46 +0200)]
Fix two mem leaks
Michael Schroeder [Mon, 15 Apr 2019 11:24:27 +0000 (13:24 +0200)]
pool_conda_matchspec: Use '*' as version when creating a simple name glob