]> git.ipfire.org Git - thirdparty/libsolv.git/log
thirdparty/libsolv.git
10 years agoAvoid linker flags when not available, fixes OS X 84/head
Clemens Lang [Mon, 11 May 2015 17:54:51 +0000 (19:54 +0200)] 
Avoid linker flags when not available, fixes OS X

The build currently fails on OS X because the OS X linker ld64 does not
support --as-needed or --version-script. Fix this by checking whether
these flags are supported by the currently used linker and only passing
them if they are.

10 years agoMerge pull request #82 from coolo/master
Michael Schroeder [Tue, 5 May 2015 15:37:21 +0000 (17:37 +0200)] 
Merge pull request #82 from coolo/master

fix ruby calls

10 years agofix ruby calls 82/head
Stephan Kulow [Tue, 5 May 2015 15:27:34 +0000 (17:27 +0200)] 
fix ruby calls

10 years agoPostpone creation of alternatives until all other rules are resolved
Michael Schroeder [Wed, 8 Apr 2015 11:22:58 +0000 (13:22 +0200)] 
Postpone creation of alternatives until all other rules are resolved

Also optimize the sort_by_common_deps code a bit.

10 years agoAdd SOLVER_FLAG_NEED_UPDATEPROVIDE
Michael Schroeder [Tue, 7 Apr 2015 14:31:10 +0000 (16:31 +0200)] 
Add SOLVER_FLAG_NEED_UPDATEPROVIDE

This flag makes the solver only consider packages providing the
old package name as update candidates.

10 years agocommit GET_USERINSTALLED_NAMEARCH bits
Michael Schroeder [Thu, 26 Mar 2015 11:43:36 +0000 (12:43 +0100)] 
commit GET_USERINSTALLED_NAMEARCH bits

The repo_deb part was already committed by mistake...

10 years agoAdd str2dep testcases using the genid feature
Michael Schroeder [Mon, 23 Mar 2015 14:13:37 +0000 (15:13 +0100)] 
Add str2dep testcases using the genid feature

10 years agofix namespace escaping in testcase_dep2str
Michael Schroeder [Mon, 23 Mar 2015 14:12:56 +0000 (15:12 +0100)] 
fix namespace escaping in testcase_dep2str

10 years agoadd support for id generation to testcase.c
Michael Schroeder [Mon, 23 Mar 2015 11:45:59 +0000 (12:45 +0100)] 
add support for id generation to testcase.c

This will be used to unit test testcase_dep2str and testcase_str2dep.

10 years agocheck_complex_dep: ignore blocks with no positive literals
Michael Schroeder [Sat, 21 Mar 2015 17:53:41 +0000 (18:53 +0100)] 
check_complex_dep: ignore blocks with no positive literals

10 years agoallow dumping of all rules in testcases
Michael Schroeder [Fri, 20 Mar 2015 15:31:54 +0000 (16:31 +0100)] 
allow dumping of all rules in testcases

We can use this to write tests for the rule generation of
complex dependencies.

10 years agorefactor check_complex_dep/recheck_complex_deps
Michael Schroeder [Fri, 20 Mar 2015 12:54:50 +0000 (13:54 +0100)] 
refactor check_complex_dep/recheck_complex_deps

Now much easier to understand...

10 years agosupport feature checks in testcases
Michael Schroeder [Fri, 20 Mar 2015 12:49:32 +0000 (13:49 +0100)] 
support feature checks in testcases

10 years agorefactor complex deps code a bit
Michael Schroeder [Thu, 19 Mar 2015 15:42:16 +0000 (16:42 +0100)] 
refactor complex deps code a bit

10 years agoremove NAMESPACE_INSTALLED from the documentation
Michael Schroeder [Thu, 19 Mar 2015 12:23:28 +0000 (13:23 +0100)] 
remove NAMESPACE_INSTALLED from the documentation

10 years agoFix (harmless) typo in testcase
Michael Schroeder [Thu, 19 Mar 2015 12:21:02 +0000 (13:21 +0100)] 
Fix (harmless) typo in testcase

10 years agokill NAMESPACE_INSTALLED support
Michael Schroeder [Thu, 19 Mar 2015 12:19:43 +0000 (13:19 +0100)] 
kill NAMESPACE_INSTALLED support

Nobody needs it and it was not functual anyway.

10 years agoUnify supplements alreadyinstalled handling
Michael Schroeder [Wed, 18 Mar 2015 16:02:01 +0000 (17:02 +0100)] 
Unify supplements alreadyinstalled handling

We now use the installsuppdepq idea for packages as well. This also
has the positive side-effect that a supplements with an OR is
installed if one of the ORed packages is installed/updated and the
other was already installed.

10 years agoadd changes, bump version 0.6.10
Michael Schroeder [Wed, 18 Mar 2015 10:05:46 +0000 (11:05 +0100)] 
add changes, bump version

10 years agoFix a bug in dislike_old_versions that could make a package id negative
Michael Schroeder [Wed, 18 Mar 2015 10:00:02 +0000 (11:00 +0100)] 
Fix a bug in dislike_old_versions that could make a package id negative

This lead to a segfault in sort_by_common_dep later on. Also, the
commit cleans up the dislike_old_versions code.

10 years agoadd changes, bump version 0.6.9
Michael Schroeder [Mon, 9 Mar 2015 15:46:46 +0000 (16:46 +0100)] 
add changes, bump version

10 years agorework splitprovides handling
Michael Schroeder [Mon, 9 Mar 2015 14:08:47 +0000 (15:08 +0100)] 
rework splitprovides handling

We no longer consult the updatmap, but now check if a package was
updated with the update rule. This is so that we don't get
false positives if a package can't be updated for whatever
reason.

10 years agoadd experimental alternatives bindings
Michael Schroeder [Wed, 4 Mar 2015 12:28:02 +0000 (13:28 +0100)] 
add experimental alternatives bindings

10 years agoadd solver_alternative2str
Michael Schroeder [Wed, 4 Mar 2015 12:23:50 +0000 (13:23 +0100)] 
add solver_alternative2str

10 years agomake reorder_dq_for_jobrules also look at recommends/suggests
Michael Schroeder [Wed, 4 Mar 2015 12:21:28 +0000 (13:21 +0100)] 
make reorder_dq_for_jobrules also look at recommends/suggests

10 years agoAdd alternative introspection functions & testcase support
Michael Schroeder [Tue, 3 Mar 2015 13:54:44 +0000 (14:54 +0100)] 
Add alternative introspection functions & testcase support

10 years agoAllow auto-minimization with the same level
Michael Schroeder [Thu, 26 Feb 2015 17:13:26 +0000 (18:13 +0100)] 
Allow auto-minimization with the same level

This is for some odd case where one of the possible packages
requires the other one.

10 years agoRework branch handling
Michael Schroeder [Thu, 26 Feb 2015 17:02:01 +0000 (18:02 +0100)] 
Rework branch handling

We now store more information for introspection. Also, some
bugs in the auto-minimization code have been fixed.

10 years agoCleaned up branch creation code
Michael Schroeder [Wed, 25 Feb 2015 12:23:01 +0000 (13:23 +0100)] 
Cleaned up branch creation code

10 years agoSupport userinstalled flags in pool_deb_get_autoinstalled
Michael Schroeder [Wed, 25 Feb 2015 11:01:22 +0000 (12:01 +0100)] 
Support userinstalled flags in pool_deb_get_autoinstalled

(This is so that we can support a name+arch flag later)

10 years agoAdd testcases for the last change
Michael Schroeder [Tue, 24 Feb 2015 18:00:00 +0000 (19:00 +0100)] 
Add testcases for the last change

10 years agoImprove package choosing code
Michael Schroeder [Tue, 24 Feb 2015 17:56:48 +0000 (18:56 +0100)] 
Improve package choosing code

Multiple changes:
- we no longer prune to suggests/enhances, instead we move them
  to the front so that a branch is created. This enables auto-minimization
  later on.
- we de-prefer old versions, i.e. packages that have an update candidate.
- If there are common versioned dependencies, we use them to order
  the packages.

10 years agoAdd debug output for branch creation
Michael Schroeder [Tue, 24 Feb 2015 17:55:20 +0000 (18:55 +0100)] 
Add debug output for branch creation

10 years agoanother REL_COMPAT special case
Michael Schroeder [Thu, 19 Feb 2015 15:04:39 +0000 (16:04 +0100)] 
another REL_COMPAT special case

10 years agochain comparison ops with REL_COMPAT
Michael Schroeder [Wed, 18 Feb 2015 15:20:48 +0000 (16:20 +0100)] 
chain comparison ops with REL_COMPAT

10 years agoswitch to new testcase dependency format
Michael Schroeder [Wed, 18 Feb 2015 13:23:34 +0000 (14:23 +0100)] 
switch to new testcase dependency format

No more dependency rewiting, plus support for complex deps.
Note that we can no longer support the .arch suffix, as many
dependency names contain a '.' and we don't know all valid
architectures. So you need to use 'name . arch' instead of
'name.arch'.

10 years agoAdd repo version info to namespaceprovides.t
Michael Schroeder [Wed, 18 Feb 2015 12:42:11 +0000 (13:42 +0100)] 
Add repo version info to namespaceprovides.t

10 years agoadd experimental pool_deb_get_autoinstalled
Michael Schroeder [Tue, 3 Feb 2015 13:21:55 +0000 (14:21 +0100)] 
add experimental pool_deb_get_autoinstalled

This can be used to read the autoinstalled package list from
/var/lib/apt/extended_states. Note that the pool must have
the whatprovides hash in place for this to work.

10 years agodo not ignore the only repodata we have
Michael Schroeder [Mon, 2 Feb 2015 15:22:15 +0000 (16:22 +0100)] 
do not ignore the only repodata we have

10 years agorename DEB_DEBSTATUS to SOLVABLE_INSTALLSTATUS
Michael Schroeder [Thu, 29 Jan 2015 14:16:43 +0000 (15:16 +0100)] 
rename DEB_DEBSTATUS to SOLVABLE_INSTALLSTATUS

Also move it to the end of knownid to not break the ABI.

10 years agoMerge pull request #68 from kirgene/deb-status
Michael Schroeder [Thu, 29 Jan 2015 14:06:05 +0000 (15:06 +0100)] 
Merge pull request #68 from kirgene/deb-status

Save "Status" field of debian packages during parsing of packages list.

10 years agoSave "Status" field of debian packages during parsing of packages list. 68/head
Yevhen Kyriukha [Thu, 29 Jan 2015 02:03:04 +0000 (04:03 +0200)] 
Save "Status" field of debian packages during parsing of packages list.

When populating packages from "/var/lib/dpkg/status" into repo that should be marked as "installed repo",
there should be possible to filter partially installed packages based on their "Status" field.
This commit makes saving this field for later manual filtering.

10 years agofix solver_addpkgrulesforweak missing some splitprovide packages
Michael Schroeder [Wed, 21 Jan 2015 12:28:21 +0000 (13:28 +0100)] 
fix solver_addpkgrulesforweak missing some splitprovide packages

This was because the updatemap gets extended when the dup rules
are created, but the map already gets used in solver_splitprovides.
So temporarily set updatemap_all in that case.

10 years agorich deps: use f[i] instead of flags
Michael Schroeder [Thu, 15 Jan 2015 10:09:46 +0000 (11:09 +0100)] 
rich deps: use f[i] instead of flags

Found by Lubos Kardos.

10 years agoadd parser for rpm rich deps
Michael Schroeder [Wed, 14 Jan 2015 12:07:58 +0000 (13:07 +0100)] 
add parser for rpm rich deps

This is work in progress, the rpm format may still change. Also,
THEN/ELSE ops are not yet supported.

10 years agomake build with ENABLE_COMPLEX_DEPS work again
Michael Schroeder [Wed, 14 Jan 2015 11:11:10 +0000 (12:11 +0100)] 
make build with ENABLE_COMPLEX_DEPS work again

10 years agoadd changes, bump version to 0.6.8 0.6.8
Michael Andres [Wed, 14 Jan 2015 08:02:54 +0000 (09:02 +0100)] 
add changes, bump version to 0.6.8

10 years agoFix spec url (gitorious -> github)
Klaus Kämpf [Wed, 14 Jan 2015 07:20:12 +0000 (08:20 +0100)] 
Fix spec url (gitorious -> github)

10 years agoMerge pull request #65 from kkaempf/fix_comment_characters
Klaus Kämpf [Wed, 14 Jan 2015 07:17:21 +0000 (08:17 +0100)] 
Merge pull request #65 from kkaempf/fix_comment_characters

Fix comment characters (# -> /* ... */)

10 years agoFix comment characters (# -> /* ... */) 65/head
Klaus Kämpf [Wed, 14 Jan 2015 07:08:02 +0000 (08:08 +0100)] 
Fix comment characters (# -> /* ... */)

10 years agoMerge pull request #62 from openSUSE/bnc#896224 0.6.7
Michael Andres [Fri, 19 Dec 2014 10:50:24 +0000 (11:50 +0100)] 
Merge pull request #62 from openSUSE/bnc#896224

Bnc#896224 - add product:regflavor attribute

10 years agoadd changes, bump version to 0.6.7 62/head
Michael Andres [Fri, 19 Dec 2014 08:04:05 +0000 (09:04 +0100)] 
add changes, bump version to 0.6.7

10 years agoadd product:regflavor attribute [bnc#896224]
Michael Andres [Fri, 19 Dec 2014 08:03:17 +0000 (09:03 +0100)] 
add product:regflavor attribute [bnc#896224]

10 years agosave and restore branches when creating solutions
Michael Schroeder [Mon, 15 Dec 2014 15:11:15 +0000 (16:11 +0100)] 
save and restore branches when creating solutions

10 years agodisable build of the solv tool for unsupported system types
Michael Schroeder [Fri, 7 Nov 2014 15:19:50 +0000 (16:19 +0100)] 
disable build of the solv tool for unsupported system types

Also gets rid of the no longer used NOSYSTEM.

10 years agoDocument pool_setdisttype return value
Michael Schroeder [Thu, 9 Oct 2014 13:27:22 +0000 (15:27 +0200)] 
Document pool_setdisttype return value

10 years agoalways provide pool_setdisttype
Michael Schroeder [Thu, 9 Oct 2014 13:22:15 +0000 (15:22 +0200)] 
always provide pool_setdisttype

Also return an error for unsupported distributions.

10 years agoadd changes, bump version to 0.6.6 0.6.6
Michael Schroeder [Tue, 7 Oct 2014 12:41:37 +0000 (14:41 +0200)] 
add changes, bump version to 0.6.6

10 years agofix bug in reorder_dq_for_jobrules
Michael Schroeder [Mon, 6 Oct 2014 15:19:13 +0000 (17:19 +0200)] 
fix bug in reorder_dq_for_jobrules

The next level is actually "level + 1", so by using level we punch
zeros in our decisionmap leading to some nasty bugs later on
(e.g. when we need to revert).

10 years agorename rpm rules to pkg rules
Michael Schroeder [Mon, 29 Sep 2014 09:29:20 +0000 (11:29 +0200)] 
rename rpm rules to pkg rules

Long overdue as we support debian/haiku/arch since a long time now.
No ABI change, as we have legacy defines.

10 years agoThe last tools manpages
Michael Schroeder [Thu, 25 Sep 2014 14:53:06 +0000 (16:53 +0200)] 
The last tools manpages

10 years agoeven more manpages
Michael Schroeder [Wed, 24 Sep 2014 16:42:21 +0000 (18:42 +0200)] 
even more manpages

10 years agoadd more man pages
Michael Schroeder [Wed, 24 Sep 2014 16:29:22 +0000 (18:29 +0200)] 
add more man pages

10 years agoMerge pull request #57 from akozumpl/master
Michael Schroeder [Tue, 23 Sep 2014 14:26:22 +0000 (16:26 +0200)] 
Merge pull request #57 from akozumpl/master

repo_rpmdb's freestate() can free rootdir only after closedbenv() finish...

10 years agorepo_rpmdb's freestate() can free rootdir only after closedbenv() finishes. 57/head
Ales Kozumplik [Tue, 23 Sep 2014 12:19:22 +0000 (14:19 +0200)] 
repo_rpmdb's freestate() can free rootdir only after closedbenv() finishes.

Because serialize_dbenv_ops() still uses rootdir.

10 years agoStart adding man-pages for the tools
Michael Schroeder [Mon, 22 Sep 2014 16:25:43 +0000 (18:25 +0200)] 
Start adding man-pages for the tools

10 years agoFix grammar and spelling errors in man pages
Mike Gabriel [Mon, 22 Sep 2014 15:40:39 +0000 (17:40 +0200)] 
Fix grammar and spelling errors in man pages

10 years agoProvide support for multi-arch include directory
Mike Gabriel [Mon, 22 Sep 2014 15:37:53 +0000 (17:37 +0200)] 
Provide support for multi-arch include directory

10 years agoremove strange livsolv-tools requires from the devel package
Michael Schroeder [Mon, 22 Sep 2014 12:37:28 +0000 (14:37 +0200)] 
remove strange livsolv-tools requires from the devel package

10 years agoTweak the README (suggested by Michael Tautschnig)
Michael Schroeder [Wed, 17 Sep 2014 11:50:18 +0000 (13:50 +0200)] 
Tweak the README (suggested by Michael Tautschnig)

10 years agomake sure that we have a dirid when adding du data
Michael Schroeder [Tue, 16 Sep 2014 12:47:35 +0000 (14:47 +0200)] 
make sure that we have a dirid when adding du data

10 years agoadd changes, bump version to 0.6.5 0.6.5
Michael Schroeder [Thu, 11 Sep 2014 15:38:43 +0000 (17:38 +0200)] 
add changes, bump version to 0.6.5

10 years agosupport flags in DUChanges struct, support DUCHANGES_ONLYADD flag
Michael Schroeder [Thu, 11 Sep 2014 15:17:25 +0000 (17:17 +0200)] 
support flags in DUChanges struct, support DUCHANGES_ONLYADD flag

This was done for btrfs, which doesn't free disk space if the
overwritten files are on a snapshop. In this case, we only add the
new needed space.
The code also uses installed package with the same name or an
obsoleted package if no du data is available.

This is actually a API change, a new element to the struct had
to be added. Fortunately only libzypp uses this function, and
libzypp is linked against a static version of libsolv.

10 years agoadd whatmatchesdep to bindings
Michael Schroeder [Fri, 5 Sep 2014 13:39:43 +0000 (15:39 +0200)] 
add whatmatchesdep to bindings

10 years agoget rid of different const qualifiers warning
Michael Schroeder [Fri, 29 Aug 2014 12:00:07 +0000 (14:00 +0200)] 
get rid of different const qualifiers warning

10 years agoget rid of a couple of warnings for msvc
Michael Schroeder [Fri, 29 Aug 2014 11:10:14 +0000 (13:10 +0200)] 
get rid of a couple of warnings for msvc

11 years agosupport pool->considered in testcases
Michael Schroeder [Thu, 31 Jul 2014 14:17:29 +0000 (16:17 +0200)] 
support pool->considered in testcases

11 years agorename split to yumobs
Michael Schroeder [Tue, 29 Jul 2014 09:38:20 +0000 (11:38 +0200)] 
rename split to yumobs

11 years agoMerge pull request #48 from akozumpl/master
Michael Schroeder [Tue, 29 Jul 2014 09:37:19 +0000 (11:37 +0200)] 
Merge pull request #48 from akozumpl/master

Add a testcase for SOLVER_FLAG_YUM_OBSOLETES splits.

11 years agoAdd a testcase for SOLVER_FLAG_YUM_OBSOLETES splits. 48/head
Ales Kozumplik [Tue, 29 Jul 2014 08:04:01 +0000 (10:04 +0200)] 
Add a testcase for SOLVER_FLAG_YUM_OBSOLETES splits.

11 years agoMerge pull request #47 from akozumpl/master
Michael Schroeder [Mon, 28 Jul 2014 11:59:07 +0000 (13:59 +0200)] 
Merge pull request #47 from akozumpl/master

Free a forgotten queue in solver_addyumobsrules().

11 years agoFree a forgotten queue in solver_addyumobsrules(). 47/head
Ales Kozumplik [Mon, 28 Jul 2014 11:52:37 +0000 (13:52 +0200)] 
Free a forgotten queue in solver_addyumobsrules().

11 years agosupport yum style obsolete handling for package splits
Michael Schroeder [Fri, 25 Jul 2014 16:22:43 +0000 (18:22 +0200)] 
support yum style obsolete handling for package splits

Actually slightly modified: we insist that the dependencies in
the split group are exactly identical. Let's see how this works
out in practice...

11 years agorepo_arch: fix bad space skipping code
Michael Schroeder [Fri, 25 Jul 2014 15:52:55 +0000 (17:52 +0200)] 
repo_arch: fix bad space skipping code

Credits to dcb314 for noticing.

11 years agofix potential memory leak in makemultiversionconflict()
Michael Schroeder [Fri, 18 Jul 2014 14:59:46 +0000 (16:59 +0200)] 
fix potential memory leak in makemultiversionconflict()

11 years agoalways call selection_filelist if SELECTION_FILELIST is set
Michael Schroeder [Mon, 14 Jul 2014 11:37:18 +0000 (13:37 +0200)] 
always call selection_filelist if SELECTION_FILELIST is set

Also checks for impossible matches in selection_filelist.

11 years agotestsolv: only use SELECTION_FILELIST if the arg starts with a '/'
Michael Schroeder [Mon, 14 Jul 2014 11:24:55 +0000 (13:24 +0200)] 
testsolv: only use SELECTION_FILELIST if the arg starts with a '/'

11 years agoadd changes, bump version 0.6.4
Michael Schroeder [Tue, 8 Jul 2014 12:14:59 +0000 (14:14 +0200)] 
add changes, bump version

11 years agotweak solver_identical so that applications ignore requires
Michael Schroeder [Tue, 8 Jul 2014 12:11:18 +0000 (14:11 +0200)] 
tweak solver_identical so that applications ignore requires

Fixes bug 885830.

11 years agofix instbuddy generation code
Michael Schroeder [Tue, 8 Jul 2014 12:09:48 +0000 (14:09 +0200)] 
fix instbuddy generation code

we iterated over the wrong array, thus the rpm -> buddy link
did not work.

11 years agoadd '-m' option to test the solution callback
Michael Schroeder [Tue, 24 Jun 2014 11:41:26 +0000 (13:41 +0200)] 
add '-m' option to test the solution callback

11 years agorework branch handling so that the old decisions are still available
Michael Schroeder [Tue, 24 Jun 2014 11:40:02 +0000 (13:40 +0200)] 
rework branch handling so that the old decisions are still available

This allows us to auto-minimize packages that got supplemented
later on.

11 years agosupport -X option in rpmmd2solv, make add_autopattern available in bindings
Michael Schroeder [Mon, 23 Jun 2014 14:44:48 +0000 (16:44 +0200)] 
support -X option in rpmmd2solv, make add_autopattern available in bindings

11 years agochanges 0.6.3
Michael Andres [Fri, 13 Jun 2014 10:16:27 +0000 (12:16 +0200)] 
changes 0.6.3

11 years ago[hotfix] Relax solvable_identical check for producs [bnc#881493]
Michael Andres [Fri, 13 Jun 2014 06:27:27 +0000 (08:27 +0200)] 
[hotfix] Relax solvable_identical check for producs [bnc#881493]

11 years agochanges 0.6.2
Michael Andres [Fri, 6 Jun 2014 09:40:58 +0000 (11:40 +0200)] 
changes 0.6.2

11 years agoProvide PRODUCT_REGISTER_TARGET for available products [bnc#881320]
Michael Andres [Fri, 6 Jun 2014 09:40:27 +0000 (11:40 +0200)] 
Provide PRODUCT_REGISTER_TARGET for available products [bnc#881320]

11 years agofix bugs in solver_describe_decision and solver_describe_weakdep_decision
Michael Schroeder [Tue, 3 Jun 2014 14:31:15 +0000 (16:31 +0200)] 
fix bugs in solver_describe_decision and solver_describe_weakdep_decision

11 years agorepo_appdata: add missing break statement
Michael Schroeder [Fri, 16 May 2014 14:54:32 +0000 (16:54 +0200)] 
repo_appdata: add missing break statement

11 years agoadd the SOLVER_FLAG_FOCUS_INSTALLED solver flag
Michael Schroeder [Thu, 15 May 2014 12:48:30 +0000 (14:48 +0200)] 
add the SOLVER_FLAG_FOCUS_INSTALLED solver flag

Setting this flag means that the solver will prefer picking
a package version that fits the other installed packages
over updating installed packages.