]> git.ipfire.org Git - thirdparty/libsolv.git/log
thirdparty/libsolv.git
9 years agoputs $op instead of $p in Transaction summary. 105/head
Jackson Isaac [Fri, 2 Oct 2015 06:50:48 +0000 (12:20 +0530)] 
puts $op instead of $p in Transaction summary.

Print $op in the second part of puts when the package is to be
upgraded or downgraded. Previously same package info was been
printed.

9 years agoAlso check the installed package for multiversion
Michael Schroeder [Wed, 30 Sep 2015 11:42:34 +0000 (13:42 +0200)] 
Also check the installed package for multiversion

Thus, both the to-be-installed and the already installed
package must have the multiversion bit set.
Otherwise, a dependency verify later on will complain.

9 years agoAdd changes, bump version to 0.6.13 0.6.13
Michael Schroeder [Fri, 25 Sep 2015 09:57:47 +0000 (11:57 +0200)] 
Add changes, bump version to 0.6.13

9 years agoSupport a generic string for pattern-visible()
Michael Schroeder [Thu, 24 Sep 2015 12:23:24 +0000 (14:23 +0200)] 
Support a generic string for pattern-visible()

9 years agoadd bug number to changes
Michael Schroeder [Mon, 21 Sep 2015 14:48:08 +0000 (16:48 +0200)] 
add bug number to changes

9 years agofix tcl var parsing in the docs
Michael Schroeder [Mon, 21 Sep 2015 11:55:03 +0000 (13:55 +0200)] 
fix tcl var parsing in the docs

9 years agoSupport SOLVER_ALLOWUNINSTALL jobs
Michael Schroeder [Mon, 21 Sep 2015 11:47:02 +0000 (13:47 +0200)] 
Support SOLVER_ALLOWUNINSTALL jobs

This works like the SOLVER_FLAG_ALLOW_UNINSTALL flag, but limited
to a specific set of packages.

9 years agosplit order.c from transaction.c
Michael Schroeder [Tue, 15 Sep 2015 09:23:24 +0000 (11:23 +0200)] 
split order.c from transaction.c

9 years agosimplify the code
Michael Schroeder [Tue, 15 Sep 2015 09:11:31 +0000 (11:11 +0200)] 
simplify the code

9 years agomake SOLVER_TRANSACTION_KEEP_ORDERCYCLES work if we don't save the other orderdata
Michael Schroeder [Tue, 15 Sep 2015 09:03:33 +0000 (11:03 +0200)] 
make SOLVER_TRANSACTION_KEEP_ORDERCYCLES work if we don't save the other orderdata

9 years agorenumber cycleids
Michael Schroeder [Tue, 15 Sep 2015 08:52:48 +0000 (10:52 +0200)] 
renumber cycleids

9 years agosolv: refactor find_repo
Michael Schroeder [Mon, 14 Sep 2015 13:27:07 +0000 (15:27 +0200)] 
solv: refactor find_repo

9 years agomove yum_substitute data freeing to free_repoinfos call
Michael Schroeder [Mon, 14 Sep 2015 13:06:58 +0000 (15:06 +0200)] 
move yum_substitute data freeing to free_repoinfos call

9 years agoadd ordercycles introspection methods
Michael Schroeder [Mon, 14 Sep 2015 11:35:48 +0000 (13:35 +0200)] 
add ordercycles introspection methods

9 years agomake mkmask robust against zero elements
Michael Schroeder [Mon, 14 Sep 2015 10:20:10 +0000 (12:20 +0200)] 
make mkmask robust against zero elements

9 years agosupport 'recommends' in repo_mdk.c for mageia
Michael Schroeder [Mon, 14 Sep 2015 10:19:24 +0000 (12:19 +0200)] 
support 'recommends' in repo_mdk.c for mageia

9 years agosupport MAGEIA as build target
Michael Schroeder [Mon, 14 Sep 2015 10:19:00 +0000 (12:19 +0200)] 
support MAGEIA as build target

9 years agosplit solv C example into multiple files
Michael Schroeder [Mon, 14 Sep 2015 10:18:09 +0000 (12:18 +0200)] 
split solv C example into multiple files

9 years agosimplify how compressed data is dealt with
Michael Schroeder [Mon, 14 Sep 2015 09:11:30 +0000 (11:11 +0200)] 
simplify how compressed data is dealt with

9 years agoallow a filelist right after the primary data for rpmmd
Michael Schroeder [Fri, 11 Sep 2015 20:05:22 +0000 (22:05 +0200)] 
allow a filelist right after the primary data for rpmmd

9 years agoAdd changes, bump version to 0.6.12 0.6.12
Michael Schroeder [Tue, 1 Sep 2015 11:46:50 +0000 (13:46 +0200)] 
Add changes, bump version to 0.6.12

9 years agoget rid of RPMSENSE_RICH
Michael Schroeder [Tue, 1 Sep 2015 11:45:57 +0000 (13:45 +0200)] 
get rid of RPMSENSE_RICH

also lowercase and/or/if/else, this seems to be currently prefered.

9 years agoAllow trailings slashes for the filenames in deb packages
Michael Schroeder [Tue, 1 Sep 2015 11:12:43 +0000 (13:12 +0200)] 
Allow trailings slashes for the filenames in deb packages

Trailing slashes ar used by sysv ar to allow spaces in
filenames...

9 years agobindings: clean up conversion error handling
Michael Schroeder [Tue, 1 Sep 2015 09:45:22 +0000 (11:45 +0200)] 
bindings: clean up conversion error handling

9 years agobindings: delete that perl comment, it makes some swig versions trip
Michael Schroeder [Mon, 31 Aug 2015 13:16:45 +0000 (15:16 +0200)] 
bindings: delete that perl comment, it makes some swig versions trip

9 years agobindings: fix bugs in appdata refcounting
Michael Schroeder [Mon, 31 Aug 2015 10:50:27 +0000 (12:50 +0200)] 
bindings: fix bugs in appdata refcounting

For perl, values put on the stack must be moralized. For tcl,
Tcl_SetObjResult already does the increment of the result.

9 years agoAdd some forgotten SWIGINTERNs
Michael Schroeder [Fri, 28 Aug 2015 15:06:32 +0000 (17:06 +0200)] 
Add some forgotten SWIGINTERNs

9 years agoimprove readability of appdata helpers
Michael Schroeder [Fri, 28 Aug 2015 14:27:42 +0000 (16:27 +0200)] 
improve readability of appdata helpers

9 years agofix typo in comment
Michael Schroeder [Fri, 28 Aug 2015 13:52:42 +0000 (15:52 +0200)] 
fix typo in comment

9 years agoMake xfopen return file handles with close-on-exec set
Michael Schroeder [Fri, 28 Aug 2015 13:42:59 +0000 (15:42 +0200)] 
Make xfopen return file handles with close-on-exec set

Also add a cloexec() method to turn close-on-exec off again.

9 years agoSupport the meta datapos hack in dataiterator_init
Michael Schroeder [Fri, 28 Aug 2015 13:40:44 +0000 (15:40 +0200)] 
Support the meta datapos hack in dataiterator_init

A datapos with solvid SOLVID_META and no repodataid set means
search all the repo's metadata.

9 years agoexamples: initialize extcookie
Michael Schroeder [Fri, 28 Aug 2015 12:20:56 +0000 (14:20 +0200)] 
examples: initialize extcookie

9 years agoAdd a Chksum::from_bin to the bindings
Michael Schroeder [Fri, 28 Aug 2015 11:59:15 +0000 (13:59 +0200)] 
Add a Chksum::from_bin to the bindings

Also make use of the new solv_chksum_cmp function.

9 years agoexport solv_chksum_cmp
Michael Schroeder [Fri, 28 Aug 2015 11:26:37 +0000 (13:26 +0200)] 
export solv_chksum_cmp

9 years agoadd solv_chksum_cmp()
Michael Schroeder [Fri, 28 Aug 2015 11:20:56 +0000 (13:20 +0200)] 
add solv_chksum_cmp()

To compare two checksums.

9 years agoget rid of checking extcookie existence by looking at the first byte
Michael Schroeder [Fri, 28 Aug 2015 11:19:29 +0000 (13:19 +0200)] 
get rid of checking extcookie existence by looking at the first byte

9 years agoRemove appdata_link again
Michael Schroeder [Fri, 28 Aug 2015 09:48:54 +0000 (11:48 +0200)] 
Remove appdata_link again

As it turned out that you can only link to global variables, you
might as well just store the name of the variable with the normal
appdata mechanism.

9 years agoDo not use appdata_link
Michael Schroeder [Fri, 28 Aug 2015 09:44:12 +0000 (11:44 +0200)] 
Do not use appdata_link

It will be removed with the next commit

9 years agoimplement appdata_disown for perl in a cleaner way
Michael Schroeder [Thu, 27 Aug 2015 16:13:27 +0000 (18:13 +0200)] 
implement appdata_disown for perl in a cleaner way

9 years agotclsolv: use new appdata_link mechanism
Michael Schroeder [Thu, 27 Aug 2015 15:22:29 +0000 (17:22 +0200)] 
tclsolv: use new appdata_link mechanism

9 years agoReworked appdata handling
Michael Schroeder [Thu, 27 Aug 2015 15:18:01 +0000 (17:18 +0200)] 
Reworked appdata handling

We now do proper reference management when overwriting a set
appdata value. Also, we no longer by default do not increment the
reference count to allow circular links between the pool and its
appdata.
Instead, we now have a appdata_disown() pool method that does
the referenct tweaking. So you have to really know what you're
doing if you call appdata_disown.

We also now have an "appdata_linked" method for tcl, as tcl does
not have references which makes the normal appdata mechanism
kind of useless.

9 years agoAdd a tcl chapter to the bindings documentation
Michael Schroeder [Wed, 26 Aug 2015 19:45:37 +0000 (21:45 +0200)] 
Add a tcl chapter to the bindings documentation

9 years agoexample solvers: bugfixing & refactoring
Michael Schroeder [Wed, 26 Aug 2015 15:35:40 +0000 (17:35 +0200)] 
example solvers: bugfixing & refactoring

9 years agoexample solvers: small fixes
Michael Schroeder [Wed, 26 Aug 2015 13:12:41 +0000 (15:12 +0200)] 
example solvers: small fixes

9 years agotclsolv: support delayed fetching of filelists
Michael Schroeder [Wed, 26 Aug 2015 13:05:35 +0000 (15:05 +0200)] 
tclsolv: support delayed fetching of filelists

To test the loadcallback code of the bindings...

9 years agotcl bindings: fix loadcallback
Michael Schroeder [Wed, 26 Aug 2015 13:04:50 +0000 (15:04 +0200)] 
tcl bindings: fix loadcallback

9 years agotclsolv: implement solving, package downloading and installation
Michael Schroeder [Wed, 26 Aug 2015 10:06:39 +0000 (12:06 +0200)] 
tclsolv: implement solving, package downloading and installation

9 years agotcl bindings: rename __str__ to str, __repr__ to repr, __eq__ to ==, and __ne__ to !=
Michael Schroeder [Wed, 26 Aug 2015 09:23:07 +0000 (11:23 +0200)] 
tcl bindings: rename __str__ to str, __repr__ to repr, __eq__ to ==, and __ne__ to !=

Also rename __repr__ to repr for the perl bindings.

9 years agotcl bindings: implement the solver->solve method the hard way
Michael Schroeder [Wed, 26 Aug 2015 09:16:25 +0000 (11:16 +0200)] 
tcl bindings: implement the solver->solve method the hard way

9 years agoUpdate tclsolv, still work in progress
Michael Schroeder [Tue, 25 Aug 2015 15:21:17 +0000 (17:21 +0200)] 
Update tclsolv, still work in progress

* use arrays instead of dics for the repos, so we can use the $foo(bar)
  syntax which makes the code a bit more readable
* implement susetags reading and cache writing

9 years agobindings: fix SWIG_AsCharPtrAndSize usage
Michael Schroeder [Tue, 25 Aug 2015 15:09:39 +0000 (17:09 +0200)] 
bindings: fix SWIG_AsCharPtrAndSize usage

The returned size seems to be always incremented for some reason.

9 years agotcl bindings: use Tcl_GetByteArrayFromObj to get the raw binary data
Michael Schroeder [Tue, 25 Aug 2015 14:43:38 +0000 (16:43 +0200)] 
tcl bindings: use Tcl_GetByteArrayFromObj to get the raw binary data

We do not want utf8 encoding of binary data...

9 years ago[backend] support a -T option that writes a testcase
Michael Schroeder [Tue, 25 Aug 2015 12:00:32 +0000 (14:00 +0200)] 
[backend] support a -T option that writes a testcase

Useful for verification purposes.

9 years agoRemove support for THEN, make ELSE work with IF
Michael Schroeder [Tue, 25 Aug 2015 11:59:46 +0000 (13:59 +0200)] 
Remove support for THEN, make ELSE work with IF

9 years agoFix REL_COND for weak deps corner cases
Michael Schroeder [Tue, 25 Aug 2015 10:48:05 +0000 (12:48 +0200)] 
Fix REL_COND for weak deps corner cases

9 years agoAdd support for REL_ELSE
Michael Schroeder [Mon, 24 Aug 2015 20:06:41 +0000 (22:06 +0200)] 
Add support for REL_ELSE

Also make REL_COND strictly OR_NOT, even in an OR
context like Conflicts or Supplements.

9 years agowork in progress: the solv tool written in tcl
Michael Schroeder [Fri, 21 Aug 2015 15:26:45 +0000 (17:26 +0200)] 
work in progress: the solv tool written in tcl

9 years agotcl bindings: add solv::iter for iterator support
Michael Schroeder [Fri, 21 Aug 2015 11:05:37 +0000 (13:05 +0200)] 
tcl bindings: add solv::iter for iterator support

Usage: solv::iter var iterator code

9 years agotcl bindings: fix appdata code
Michael Schroeder [Fri, 21 Aug 2015 09:26:57 +0000 (11:26 +0200)] 
tcl bindings: fix appdata code

9 years agofix binary data handling in tcl
Michael Schroeder [Thu, 20 Aug 2015 16:00:31 +0000 (18:00 +0200)] 
fix binary data handling in tcl

9 years agoSupport the solver.describe_weakdep_decision method
Michael Schroeder [Thu, 20 Aug 2015 10:32:00 +0000 (12:32 +0200)] 
Support the solver.describe_weakdep_decision method

It returns an array of 3-tuples.

9 years agofix pc file directory
Michael Schroeder [Wed, 12 Aug 2015 14:00:12 +0000 (16:00 +0200)] 
fix pc file directory

9 years agoAdapt specfile for libsolv.pc
Michael Schroeder [Wed, 12 Aug 2015 13:38:07 +0000 (15:38 +0200)] 
Adapt specfile for libsolv.pc

9 years agoMerge pull request #67 from kirgene/master
Michael Schroeder [Wed, 12 Aug 2015 13:33:46 +0000 (15:33 +0200)] 
Merge pull request #67 from kirgene/master

Added pkg-config file for library.

10 years agoChange mandriva disttag/distepoch handling
Michael Schroeder [Wed, 5 Aug 2015 09:50:19 +0000 (11:50 +0200)] 
Change mandriva disttag/distepoch handling

It's now more in sync with what mandriva's perl-URPM does, and it
also does not penalize mageia anymore.

10 years agoSpecify PYTHONLIBS_VERSION_STRING on the FIND_PACKAGE call
Michael Schroeder [Tue, 4 Aug 2015 12:30:04 +0000 (14:30 +0200)] 
Specify PYTHONLIBS_VERSION_STRING on the FIND_PACKAGE call

Otherwise the configure will fail for newer cmake versions, as
they expect _MAJOR/_MINOR/_COUNT to be set as well.

10 years agoMerge pull request #96 from mtoman/add_mips
Michael Schroeder [Tue, 4 Aug 2015 09:45:56 +0000 (11:45 +0200)] 
Merge pull request #96 from mtoman/add_mips

Extend support for MIPS architectures

10 years agoExtend support for MIPS architectures 96/head
Michal Toman [Tue, 4 Aug 2015 07:30:44 +0000 (09:30 +0200)] 
Extend support for MIPS architectures

Signed-off-by: Michal Toman <mtoman@fedoraproject.org>
10 years agoSupport testcase writing in bindings
Michael Schroeder [Mon, 3 Aug 2015 09:29:45 +0000 (11:29 +0200)] 
Support testcase writing in bindings

10 years agoAdd "const" to some args
Michael Schroeder [Mon, 3 Aug 2015 09:27:50 +0000 (11:27 +0200)] 
Add "const" to some args

10 years agoEnable the comps parser for SUSE
Michael Schroeder [Mon, 20 Jul 2015 13:16:29 +0000 (15:16 +0200)] 
Enable the comps parser for SUSE

This is to allow kiwi to deal with comps groups.

10 years agodo not ignore the result of solv_realloc when shrinking whatprovidesauxdata
Michael Schroeder [Wed, 15 Jul 2015 09:47:54 +0000 (11:47 +0200)] 
do not ignore the result of solv_realloc when shrinking whatprovidesauxdata

As we're always shrinking the code worked with glibc, but resulted
in a segfault under valgrind.

10 years agoMerge pull request #90 from neverpanic/master
Michael Schroeder [Thu, 11 Jun 2015 11:46:25 +0000 (13:46 +0200)] 
Merge pull request #90 from neverpanic/master

Implement Tcl bindings

10 years agoFix incorrect comparison with multiple values 90/head
Clemens Lang [Sat, 30 May 2015 19:56:22 +0000 (21:56 +0200)] 
Fix incorrect comparison with multiple values

  a == X || Y
is valid C, but does interesting things and probably not what you would
expect. Luckily, clang warns for this kind of problem:
  warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
Fix this by using the proper comparison logic, which is
  a == X || a == Y

Signed-off-by: Clemens Lang <neverpanic@gmail.com>
10 years agoFix library install names on OS X
Clemens Lang [Wed, 10 Jun 2015 23:07:16 +0000 (01:07 +0200)] 
Fix library install names on OS X

Libraries on OS X are referenced using abolute paths. When linking
against a library, its so-called install name is copied into the binary
to reference the library. CMake supports setting this install name using
the INSTALL_NAME_DIR target property.

Signed-off-by: Clemens Lang <neverpanic@gmail.com>
10 years agoAdd warnings for missing parts in new languages
Clemens Lang [Wed, 10 Jun 2015 23:14:59 +0000 (01:14 +0200)] 
Add warnings for missing parts in new languages

This should simplify porting the libsolv bindings to new languages
because rather than failing with a cryption SWIG error, these warnings
should give developers a hint what needs to be done at minimum.

Signed-off-by: Clemens Lang <neverpanic@gmail.com>
10 years agoImplement libsolv Tcl bindings
Clemens Lang [Sat, 30 May 2015 13:29:43 +0000 (15:29 +0200)] 
Implement libsolv Tcl bindings

Add the necessary build system changes and modifications in the SIWG
interface definition file to enable generation of Tcl bindings. The
build system generates and installs a Tcl module that can used from
tclsh using
  % package require solv
Constants and operations are available in the solv:: namespace, e.g.
  % puts $solv::Solver_POLICY_ILLEGAL_DOWNGRADE
will echo "1".

Rudimentary testing has been done, but this should be considered
experimental for now. We will fix problems as we encounter them.

Signed-off-by: Clemens Lang <neverpanic@gmail.com>
10 years agoadd changes, bump version 0.6.11
Michael Schroeder [Tue, 2 Jun 2015 09:45:09 +0000 (11:45 +0200)] 
add changes, bump version

10 years agoAdd SHA512 also to data_skip_verify for completeness
Michael Schroeder [Tue, 2 Jun 2015 09:40:13 +0000 (11:40 +0200)] 
Add SHA512 also to data_skip_verify for completeness

data_skip_verify is currently unused.

10 years agoAdd forgotten checksum types to data_skip.
Michael Schroeder [Mon, 1 Jun 2015 16:57:34 +0000 (18:57 +0200)] 
Add forgotten checksum types to data_skip.

This should have been in commit c8164bfecf2ba8bcf4c24329534d3104f19da73c.
Thanks to tuxmaster for helping me to reproduce the crash.

10 years agoABI compat: move whatprovidesaux to private part of pool
Michael Schroeder [Mon, 1 Jun 2015 12:29:03 +0000 (14:29 +0200)] 
ABI compat: move whatprovidesaux to private part of pool

10 years agoFix distupgrade with allowuninstall
Michael Schroeder [Mon, 1 Jun 2015 11:43:41 +0000 (13:43 +0200)] 
Fix distupgrade with allowuninstall

It used to dump core in rare circumstances, it also did not
always produce the correct result.

10 years agoAdd POOL_FLAG_NOWHATPROVIDESAUX pool flag
Michael Schroeder [Fri, 29 May 2015 11:28:06 +0000 (13:28 +0200)] 
Add POOL_FLAG_NOWHATPROVIDESAUX pool flag

The whatprovidesaux data takes up a lot of mem, so if mem is rare
you can turn it off now.

10 years agoPrepare for disabling of whatprovidesaux
Michael Schroeder [Fri, 29 May 2015 09:41:25 +0000 (11:41 +0200)] 
Prepare for disabling of whatprovidesaux

10 years agoAdd whatprovidesaux helper arrays
Michael Schroeder [Thu, 28 May 2015 15:16:06 +0000 (17:16 +0200)] 
Add whatprovidesaux helper arrays

They need quite a bit of space, but may speed up whatprovides_rel
creation significantly in some cases.

10 years agoSome cleanup
Michael Schroeder [Wed, 27 May 2015 14:52:13 +0000 (16:52 +0200)] 
Some cleanup

10 years agosolver_reset no longer creates problems
Michael Schroeder [Wed, 27 May 2015 09:39:19 +0000 (11:39 +0200)] 
solver_reset no longer creates problems

10 years agoDo rule assertions in the main solver loop
Michael Schroeder [Wed, 27 May 2015 09:34:16 +0000 (11:34 +0200)] 
Do rule assertions in the main solver loop

We now start with level == 0, which means that we need to do
the assertions. Also, we now return 0 from analyze_unsolvable,
meaning the assertions are no longer done there.

10 years agoUse level == -1 as unsolvable marker
Michael Schroeder [Wed, 27 May 2015 08:36:21 +0000 (10:36 +0200)] 
Use level == -1 as unsolvable marker

So that we can use level 0 for the initial decisions.

10 years agoCleanup analyze and analyze_unsolvable
Michael Schroeder [Wed, 27 May 2015 08:21:23 +0000 (10:21 +0200)] 
Cleanup analyze and analyze_unsolvable

Use the FOR_RULELITERAL macro, rename some stuff.

10 years agoconvert some testcase to "any disttype"
Michael Schroeder [Tue, 26 May 2015 14:00:37 +0000 (16:00 +0200)] 
convert some testcase to "any disttype"

10 years agoSupport multiple dist types in testcases
Michael Schroeder [Tue, 26 May 2015 13:59:22 +0000 (15:59 +0200)] 
Support multiple dist types in testcases

and * as "march any" dist type.

10 years agoinstallcheck: support archlinux repos
Michael Schroeder [Fri, 22 May 2015 13:45:10 +0000 (15:45 +0200)] 
installcheck: support archlinux repos

10 years agoMake MULTI_SEMANTICS more prominent
Michael Schroeder [Fri, 22 May 2015 13:44:51 +0000 (15:44 +0200)] 
Make MULTI_SEMANTICS more prominent

10 years agoTreat an unsupported disttype as missing feature
Michael Schroeder [Fri, 22 May 2015 13:43:38 +0000 (15:43 +0200)] 
Treat an unsupported disttype as missing feature

Doesn't help much as no test will be run if 'rpm' is
not supported, but hey...

10 years agoOld cmake does not support parenthetical expressions
Michael Schroeder [Wed, 20 May 2015 13:21:37 +0000 (15:21 +0200)] 
Old cmake does not support parenthetical expressions

10 years agoFix linker checks
Michael Schroeder [Wed, 20 May 2015 13:05:05 +0000 (15:05 +0200)] 
Fix linker checks

10 years agoReduce the number if identical conflict rules
Michael Schroeder [Mon, 18 May 2015 12:40:18 +0000 (14:40 +0200)] 
Reduce the number if identical conflict rules

reduces memory usage and speeds up rule creation a bit.

10 years agomove the "requires provided by same package" check
Michael Schroeder [Fri, 15 May 2015 10:10:53 +0000 (12:10 +0200)] 
move the "requires provided by same package" check

So that we don't add the other requires to the todo list, thus
reducing the number of packages to look at.

10 years agoallow complex erase jobs
Michael Schroeder [Wed, 13 May 2015 15:28:45 +0000 (17:28 +0200)] 
allow complex erase jobs