]>
git.ipfire.org Git - thirdparty/libsolv.git/log
Maxin B. John [Tue, 17 May 2016 15:13:19 +0000 (18:13 +0300)]
CMakeLists.txt: fix MAN_INSTALL_DIR
It checks ${CMAKE_INSTALL_PREFIX}/share/man when configure, but it may
not exist when crosscompile, for example, when CMAKE_INSTALL_PREFIX="/",
it is OK, but when CMAKE_INSTALL_PREFIX="/some/path/else", then it
doesn't exist, and the man dir would be set to "/usr/man" which is
incorrect.
Signed-off-by: Robert Yang liezhi.yang@windriver.com
Signed-off-by: Maxin B. John <maxin.john@intel.com>
Michael Schroeder [Fri, 13 May 2016 13:03:39 +0000 (15:03 +0200)]
Add the SOLVER_FLAG_URPM_REORDER solver flag
It makes the solver reorder alternatives more
closely to what urpm does.
Michael Schroeder [Fri, 6 May 2016 12:13:44 +0000 (14:13 +0200)]
Check POOL_FLAG_IMPLICITOBSOLETEUSESCOLORS instead of POOL_FLAG_OBSOLETEUSESCOLORS
This was forgotten when we changed the default for fedora.
Fixes issue #94
Michael Schroeder [Fri, 6 May 2016 12:12:21 +0000 (14:12 +0200)]
Treat TAG_FILECOLORS as optional header element
SUSE has a patch that makes rpmbuild not add the FILECOLORS tag.
So insisting on its presence when RPM_ITERATE_FILELIST_WITHCOL
is used is wrong.
Michael Schroeder [Fri, 6 May 2016 10:10:17 +0000 (12:10 +0200)]
Note that pool_setarch must not come before pool_setdisttype.
Michael Schroeder [Fri, 6 May 2016 10:01:42 +0000 (12:01 +0200)]
Work around gcc warning
Michael Schroeder [Fri, 6 May 2016 09:50:46 +0000 (11:50 +0200)]
Change how pool_setarch deals with unknown architectures
Before this commit, pool_setarch switched to a "" policy for
unknown architectures, i.e. no non-noarch package could be
installed. After this change, we allow packages of the provided
arch string.
Because of this, we also can delete all dummy policies from
the archpolicies array.
Michael Schroeder [Wed, 4 May 2016 09:11:23 +0000 (11:11 +0200)]
Support alternative disfavor in example solver
Just for testing purposes...
Michael Schroeder [Tue, 3 May 2016 15:41:09 +0000 (17:41 +0200)]
Show alternatives in example solver
Michael Schroeder [Tue, 3 May 2016 15:39:05 +0000 (17:39 +0200)]
Also call prefer_favored at the end of reorder_dq_for_jobrules
Otherwise we may select the wrong package.
Michael Schroeder [Tue, 3 May 2016 14:22:06 +0000 (16:22 +0200)]
Implement SOLVER_FAVOR and SOLVER_DISFAVOR
Michael Schroeder [Fri, 22 Apr 2016 13:52:02 +0000 (15:52 +0200)]
Rename selection_make_containsdep to selection_make_matchdepid
And support SELECTION_MATCH_DEPSTR for exact id match
Michael Schroeder [Fri, 22 Apr 2016 13:39:54 +0000 (15:39 +0200)]
Add pool_whatcontainsdep, selection_make_containsdep, and SELECTION_MATCH_DEPSTR
Michael Schroeder [Thu, 21 Apr 2016 10:11:04 +0000 (12:11 +0200)]
Merge pull request #131 from dburm/bindings/setdisttype
bindings: implement pool_setdisttype
Michael Schroeder [Wed, 20 Apr 2016 11:15:50 +0000 (13:15 +0200)]
Add -r option to deb2solv to make it read repo metadata instead of deb packages
Michael Schroeder [Wed, 20 Apr 2016 11:10:41 +0000 (13:10 +0200)]
Add code for reason testing
Michael Schroeder [Mon, 18 Apr 2016 15:40:26 +0000 (17:40 +0200)]
Fix of by one error in repo_deb that could lead to missing packages
Dmitry Burmistrov [Sat, 16 Apr 2016 19:07:53 +0000 (22:07 +0300)]
bindings: implement pool_setdisttype
Michael Schroeder [Mon, 11 Apr 2016 14:01:33 +0000 (16:01 +0200)]
Make the pool_parserpmrichdep function public
Michael Schroeder [Sat, 9 Apr 2016 11:21:53 +0000 (13:21 +0200)]
Bump RPMDB_COOKIE_VERSION as we added SOLVABLE_PREREQ_IGNOREINST
Michael Schroeder [Fri, 8 Apr 2016 13:38:56 +0000 (15:38 +0200)]
Add changes, bump version to 0.6.20
Michael Schroeder [Fri, 8 Apr 2016 13:33:57 +0000 (15:33 +0200)]
Better support of complex deps in pool_match_dep and selection_make_matchdeps
Michael Schroeder [Fri, 8 Apr 2016 12:46:44 +0000 (14:46 +0200)]
Make SOLVER_REASON_CLEANDEPS_ERASE introspection reason work again
Fixes issue#127
Michael Schroeder [Fri, 8 Apr 2016 12:18:26 +0000 (14:18 +0200)]
Make dep2str use rpm-like output for complex deps if disttype is rpm
Michael Schroeder [Fri, 8 Apr 2016 09:31:50 +0000 (11:31 +0200)]
Support SOLVABLE_PREREQ_IGNOREINST in testcases
Because it influences dependency solving...
Michael Schroeder [Fri, 8 Apr 2016 09:07:33 +0000 (11:07 +0200)]
Simplify ignorepre queue creation
Michael Schroeder [Thu, 7 Apr 2016 15:09:14 +0000 (17:09 +0200)]
Implement filtering of Requires(pre,post) for installed packages
Should fix issue#126. Except that we need to support it in
the testcases as well.
Michael Schroeder [Thu, 7 Apr 2016 13:55:16 +0000 (15:55 +0200)]
We can put reldeps into incore for some time now
So remove the triggers workaround
Michael Schroeder [Thu, 10 Mar 2016 12:03:04 +0000 (13:03 +0100)]
Simplify handling of pseudo package updates
We extend the updatemap to the instbuddies instead of doing complex
stuff in the package update code. Lets see if this is sufficient...
Michael Schroeder [Thu, 10 Mar 2016 10:48:52 +0000 (11:48 +0100)]
Do not try to update pseudo packages when we update the linked package as well
(bnc#967006)
Michael Schroeder [Thu, 10 Mar 2016 10:48:24 +0000 (11:48 +0100)]
Fix character count of pattern: string
Michael Schroeder [Mon, 7 Mar 2016 13:09:40 +0000 (14:09 +0100)]
Rework orphan handling in dup mode
The old code had problems when the updaters contained other
installed packages.
Michael Schroeder [Thu, 3 Mar 2016 14:18:34 +0000 (15:18 +0100)]
Make _Pool_tmpspace definition internal
Michael Schroeder [Thu, 3 Mar 2016 14:08:38 +0000 (15:08 +0100)]
Split diskusage and fileprovides code into separate files
Michael Schroeder [Thu, 3 Mar 2016 11:59:18 +0000 (12:59 +0100)]
rpmmd diskusage: prepend a '/' to the dir if not already there
Makes the code consistent with repo_susetags.
Michael Schroeder [Mon, 29 Feb 2016 13:14:05 +0000 (14:14 +0100)]
Fix comments
Michael Schroeder [Mon, 29 Feb 2016 12:49:48 +0000 (13:49 +0100)]
Use less memory when extending packages
Implement a hash instead of mis-using a string pool.
Michael Schroeder [Fri, 26 Feb 2016 12:40:28 +0000 (13:40 +0100)]
solv_hex2bin: don't eat nibbles
Michael Schroeder [Fri, 26 Feb 2016 10:45:27 +0000 (11:45 +0100)]
Do not create a checksum hash when we're not extending
Many repos don't have extension data, so we postpone the
hash creation until we need it.
Michael Schroeder [Fri, 26 Feb 2016 10:45:09 +0000 (11:45 +0100)]
Add repodata_lookup_dirstrarray_uninternalized method
Needed for next commit.
Michael Schroeder [Mon, 15 Feb 2016 15:47:19 +0000 (16:47 +0100)]
Add changes, bump version to 0.6.19
Michael Schroeder [Tue, 9 Feb 2016 12:41:13 +0000 (13:41 +0100)]
Parse media number from baseurl
Use 'createrepo -u media:// --split dir1 dir2...' to create
a multi-volume repository.
Michael Schroeder [Tue, 9 Feb 2016 10:57:23 +0000 (11:57 +0100)]
Support susedata.<lang>.xml language files
Michael Schroeder [Fri, 29 Jan 2016 13:19:53 +0000 (14:19 +0100)]
bump version, add changes
Michael Schroeder [Fri, 29 Jan 2016 13:06:23 +0000 (14:06 +0100)]
bindings: add python __hash__ method for some classes
Michael Schroeder [Fri, 15 Jan 2016 15:15:41 +0000 (16:15 +0100)]
linked packages: fix rule generation
Add multiple rules for different package names instead of ORing
them all together. I hope this works out better for our applications.
Michael Schroeder [Tue, 22 Dec 2015 10:50:00 +0000 (11:50 +0100)]
Add changes, bump version to 0.6.17
Michael Schroeder [Tue, 22 Dec 2015 10:48:24 +0000 (11:48 +0100)]
Add back code to set specialupdaters for multiversion packages that should be updated
Michael Schroeder [Tue, 22 Dec 2015 10:43:08 +0000 (11:43 +0100)]
Add multiversion update testcase
Michael Schroeder [Mon, 21 Dec 2015 12:00:30 +0000 (13:00 +0100)]
Add changes, bump version to 0.6.16
Michael Schroeder [Mon, 21 Dec 2015 11:58:39 +0000 (12:58 +0100)]
Add more dup tests
Michael Schroeder [Mon, 21 Dec 2015 11:55:34 +0000 (12:55 +0100)]
Fix assertion rule test
just checking for !r->d is not enough
Michael Schroeder [Fri, 18 Dec 2015 16:42:24 +0000 (17:42 +0100)]
Do not create dup rules for orphaned packages
This was deleted with commit
98352a506ba091a62bccc29d044e60e64d07f338
by accident.
Michael Schroeder [Mon, 14 Dec 2015 14:53:29 +0000 (15:53 +0100)]
Add changes, bump version to 0.6.15
Michael Schroeder [Mon, 14 Dec 2015 14:46:16 +0000 (15:46 +0100)]
Spelling fixes from Debian
Michael Schroeder [Mon, 14 Dec 2015 14:42:20 +0000 (15:42 +0100)]
Merge pull request #115 from openSUSE/ma-helix
No release must not be mapped to an empty release.
Michael Schroeder [Mon, 14 Dec 2015 14:41:29 +0000 (15:41 +0100)]
Small optimization for last commit
Michael Schroeder [Fri, 11 Dec 2015 16:31:37 +0000 (17:31 +0100)]
Implement extra evr comparison for linked packages
Michael Schroeder [Fri, 11 Dec 2015 15:26:39 +0000 (16:26 +0100)]
Revert "Revert "Also consider the buildtime when linking products""
Oh well. I hope they make up their minds at some point.
This reverts commit
fa1d0de3e6fa244e47a9e50092a47b1435dc5cc8 .
Michael Schroeder [Fri, 11 Dec 2015 14:49:10 +0000 (15:49 +0100)]
Rework multiversion orphaned handling
We now create a (-p|u1|u2|u3) dup rule for multiversion orphans.
We also test keeporphans/allowuninstall with dup.
Michael Schroeder [Fri, 11 Dec 2015 11:08:36 +0000 (12:08 +0100)]
Move setting of data->incoreoffset[entry]
We need the old value when we copy the complete old entry
Michael Schroeder [Thu, 10 Dec 2015 16:26:24 +0000 (17:26 +0100)]
Fix typo in last commit
Hmm, I wonder why it worked with my tests...
Michael Schroeder [Thu, 10 Dec 2015 14:52:47 +0000 (15:52 +0100)]
Make fixarray schema mismatches non-fatal
We just ignore all elements in that case.
Michael Schroeder [Thu, 10 Dec 2015 14:35:41 +0000 (15:35 +0100)]
repodata_internalize: implement support for key type changed
The old code just added both types to the schema. For quite
some time now, we only want one type for each keyname.
Michael Schroeder [Mon, 7 Dec 2015 12:20:10 +0000 (13:20 +0100)]
Allow serialization of REPOKEY_TYPE_DELETED
Michael Schroeder [Mon, 7 Dec 2015 12:17:47 +0000 (13:17 +0100)]
If it doesn't call exit, it is not fatal
Michael Schroeder [Thu, 3 Dec 2015 10:12:30 +0000 (11:12 +0100)]
Merge pull request #117 from nikai3d/master
Fix typos in doc
Nicolas Kaiser [Wed, 2 Dec 2015 20:28:49 +0000 (21:28 +0100)]
Fix typos in doc
Michael Schroeder [Tue, 1 Dec 2015 10:21:37 +0000 (11:21 +0100)]
Merge pull request #116 from nikai3d/patch-1
Fix typo in README
Nicolas Kaiser [Mon, 30 Nov 2015 23:10:06 +0000 (00:10 +0100)]
Fix typo in README
Michael Andres [Fri, 27 Nov 2015 09:06:20 +0000 (10:06 +0100)]
No release must not be mapped to an empty release.
Michael Schroeder [Tue, 24 Nov 2015 14:47:51 +0000 (15:47 +0100)]
Revert "Also consider the buildtime when linking products"
We'll change libzypp instead.
This reverts commit
6afdd003980478664998fbb3de2dd6de3aea2377 .
Michael Schroeder [Tue, 24 Nov 2015 14:14:47 +0000 (15:14 +0100)]
Also consider the buildtime when linking products
Michael Schroeder [Mon, 23 Nov 2015 10:55:51 +0000 (11:55 +0100)]
Add more statistics
Michael Schroeder [Fri, 20 Nov 2015 16:15:56 +0000 (17:15 +0100)]
Merge pull request #106 from Conan-Kudo/mga-dnf-fixes
Turn on hawkey-specific behaviors in libsolv for Mageia for DNF
Michael Schroeder [Wed, 18 Nov 2015 14:52:15 +0000 (15:52 +0100)]
Also parse metainfo.xml as installed appdata files
Michael Schroeder [Wed, 18 Nov 2015 14:41:45 +0000 (15:41 +0100)]
Move rounding to block size into solv_extend_realloc()
As this is not not very often and thus does not need to be
inlined.
Michael Schroeder [Wed, 18 Nov 2015 14:28:49 +0000 (15:28 +0100)]
Use APPDATA_SEARCH_UNINTERNALIZED_FILELIST for installed appdata entries
Michael Schroeder [Wed, 18 Nov 2015 14:26:41 +0000 (15:26 +0100)]
Rework appdata handling
Use a concrete package name wherever we can. This means looking
into the file list for installed applications, which can be
enabled with APPDATA_SEARCH_UNINTERNALIZED_FILELIST.
Michael Schroeder [Wed, 18 Nov 2015 14:25:57 +0000 (15:25 +0100)]
Allow appdata linking with package names
Michael Schroeder [Wed, 18 Nov 2015 14:25:10 +0000 (15:25 +0100)]
Add repodata_lookup_dirstrarray_uninternalized()
Search the filelist of not yet internalized solvables.
Needed for the following commits.
Michael Schroeder [Tue, 17 Nov 2015 14:33:52 +0000 (15:33 +0100)]
Overshoot size for large memory chunks in solv_extend
We now dynamically round up the size to some ppower of two. This
brings down the number of mremap calls fro 96163 to 675 when
converting Fedora22's Everything repo, which makes no real difference
on my system but seems to help a lot if this is done in a Xen
guest. See libsolv issue#111 on github.
Michael Schroeder [Thu, 15 Oct 2015 20:43:06 +0000 (22:43 +0200)]
Fix last commit
We can't add the multiversion orphan to the update rules, as that
would mean we no longer enforce an update to one of the repo
packages. So we now just detect the multiversion orphan and do not
add a dup rule.
Note that this is still not correct, as we don't enforce that the
orphan is not erased in keep_orphan mode. In that case we really
need two independent rules. I'm currently not sure where to put
the extra rule...
Michael Schroeder [Wed, 14 Oct 2015 12:30:46 +0000 (14:30 +0200)]
Make keep_orphans also keep multiversion orphans installed
Also make keep_orphanse add multiversion orphans to the
update rule, thus enforcing that they stay installed.
Michael Schroeder [Wed, 14 Oct 2015 09:12:53 +0000 (11:12 +0200)]
Speed up choice rule generation
Reduce the amount of package filtering calls. Brings down the choice
rule creation time from 18ms to 8ms on my system.
Michael Schroeder [Tue, 13 Oct 2015 11:28:56 +0000 (13:28 +0200)]
Fix typo in comment
Michael Schroeder [Tue, 13 Oct 2015 11:24:49 +0000 (13:24 +0200)]
Rename hasdupjobs to needduprules
Michael Schroeder [Tue, 13 Oct 2015 11:22:14 +0000 (13:22 +0200)]
Drop inline from solver_addtodupmaps
The compiler knows best...
Michael Schroeder [Tue, 13 Oct 2015 08:36:58 +0000 (10:36 +0200)]
Simplify solver_addduprules a bit
Michael Schroeder [Mon, 12 Oct 2015 12:04:54 +0000 (14:04 +0200)]
Fix spelling, duh...
Michael Schroeder [Mon, 12 Oct 2015 12:03:55 +0000 (14:03 +0200)]
Check keep_orphans flag in solver_addduprules
solver_addduprules is called if allowuninstall is set
Michael Schroeder [Mon, 12 Oct 2015 12:03:25 +0000 (14:03 +0200)]
Prefer to autouninstall orphans
Michael Schroeder [Mon, 12 Oct 2015 11:43:05 +0000 (13:43 +0200)]
Move allowuninstall map creation
We need to test for them when we have dup jobs
Michael Schroeder [Mon, 5 Oct 2015 11:30:34 +0000 (13:30 +0200)]
Add changes, bump version to 0.6.14
Michael Schroeder [Mon, 5 Oct 2015 11:14:15 +0000 (13:14 +0200)]
Mark the shared objects generated by the bindings as MODULE
Fixes build on mageia if %cmake is used.
Michael Schroeder [Mon, 5 Oct 2015 09:45:16 +0000 (11:45 +0200)]
Fix build on Mageia
Patch by Thierry Vignaud <thierry.vignaud@gmail.com>
Michael Schroeder [Mon, 5 Oct 2015 09:44:52 +0000 (11:44 +0200)]
Give ex type int to silence the compiler
Neal Gompa (ニール・ゴンパ) [Fri, 2 Oct 2015 14:33:21 +0000 (10:33 -0400)]
Add RPM-MD repodata support with Mageia
Neal Gompa (ニール・ゴンパ) [Fri, 2 Oct 2015 13:33:02 +0000 (09:33 -0400)]
Turn on Fedora-specific behaviors in libsolv for Mageia for DNF
Consistent with work to enable DNF for Mageia as an alternate
repository manager, definitions expected by hawkey from libsolv
need to be set for the MAGEIA definition as well.
For more information on the work to enable DNF for Mageia, see
https://wiki.mageia.org/en/Feature:Add_DNF_as_Alternate_Repository_Manager
Michael Schroeder [Fri, 2 Oct 2015 12:03:52 +0000 (14:03 +0200)]
Update obsoletes pruning in weak deps handling
This still implemented the old "obsoletes uses provides" handling.
Sync with the rest of the code, so that keepexplicitobsoletes,
obsoleteusesprovides and obsoleteusescolors are obeyed.