]> git.ipfire.org Git - thirdparty/libsolv.git/log
thirdparty/libsolv.git
8 years agoAdd armv5tl to armsfp arch list 192/head
Neal Gompa [Wed, 12 Apr 2017 15:10:10 +0000 (11:10 -0400)] 
Add armv5tl to armsfp arch list

8 years agoAdd missing part from last commit
Michael Schroeder [Wed, 22 Mar 2017 10:17:54 +0000 (11:17 +0100)] 
Add missing part from last commit

8 years agoDeal with installed packages with both "forcebest" and "allowuninstall"
Michael Schroeder [Mon, 13 Mar 2017 14:58:05 +0000 (15:58 +0100)] 
Deal with installed packages with both "forcebest" and "allowuninstall"

In this case we're using negative best rules to turn off all packages
that are not in the best set. This allows allowuninstall to do its
job. (We're not always using negative rules to save rule space.
Maywe we need to revisit this in the future.)

8 years agoDo not erase solvables of a different color when requesting a specific solvable
Michael Schroeder [Mon, 13 Mar 2017 12:04:47 +0000 (13:04 +0100)] 
Do not erase solvables of a different color when requesting a specific solvable

8 years agoIgnore dirstr entries with Id zero when copying
Michael Schroeder [Tue, 7 Mar 2017 10:30:54 +0000 (11:30 +0100)] 
Ignore dirstr entries with Id zero when copying

We currently can't handle them, so the code runs into an
assertion.

8 years agoMerge pull request #184 from ignatenkobrain/py3-defined
Michael Schroeder [Mon, 6 Mar 2017 16:18:07 +0000 (17:18 +0100)] 
Merge pull request #184 from ignatenkobrain/py3-defined

build: do not ignore PYTHON3_EXECUTABLE

8 years agobuild: do not ignore PYTHON3_EXECUTABLE 184/head
Igor Gnatenko [Mon, 6 Mar 2017 11:13:21 +0000 (12:13 +0100)] 
build: do not ignore PYTHON3_EXECUTABLE

Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
8 years agoMake dir2str return "/" if did == 1 and suf == NULL
Michael Schroeder [Fri, 3 Mar 2017 15:48:40 +0000 (16:48 +0100)] 
Make dir2str return "/" if did == 1 and suf == NULL

It used to return "", which is wrong. did == 1 is somewhat of
a special case.

8 years agoChange example specfile to build with libxml2
Michael Schroeder [Tue, 28 Feb 2017 14:06:10 +0000 (15:06 +0100)] 
Change example specfile to build with libxml2

8 years agoRename ENABLE_LIBXML2 to WITH_LIBXML2
Michael Schroeder [Tue, 28 Feb 2017 13:59:11 +0000 (14:59 +0100)] 
Rename ENABLE_LIBXML2 to WITH_LIBXML2

Like with the autotools. Enable is for enabling features.

8 years agoAllow to build with libxml2 instead of libexpat
Michael Schroeder [Fri, 24 Feb 2017 14:20:40 +0000 (15:20 +0100)] 
Allow to build with libxml2 instead of libexpat

libxml2 seems to be a tiny bit faster...

8 years agoClean up header includes in tools
Michael Schroeder [Thu, 23 Feb 2017 16:57:52 +0000 (17:57 +0100)] 
Clean up header includes in tools

8 years agoGet rid of unneded header file includes
Michael Schroeder [Thu, 23 Feb 2017 16:51:09 +0000 (17:51 +0100)] 
Get rid of unneded header file includes

8 years agoHaiku nowadays has fopencookie
Michael Schroeder [Thu, 23 Feb 2017 16:33:22 +0000 (17:33 +0100)] 
Haiku nowadays has fopencookie

8 years agoMake zlib compression somewhat optional
Michael Schroeder [Thu, 23 Feb 2017 16:30:29 +0000 (17:30 +0100)] 
Make zlib compression somewhat optional

Also do not search for expat if it is not needed.

8 years agoGet rid of no longer needed zlib includes
Michael Schroeder [Thu, 23 Feb 2017 16:15:16 +0000 (17:15 +0100)] 
Get rid of no longer needed zlib includes

8 years agoRefactor xml parsing code
Michael Schroeder [Thu, 23 Feb 2017 14:28:18 +0000 (15:28 +0100)] 
Refactor xml parsing code

Now the parser internals are in solv_xmlparser.c. This makes
it easy to support other parser libraries.

8 years agoRefactor disk usage generation code
Michael Schroeder [Wed, 22 Feb 2017 13:20:35 +0000 (14:20 +0100)] 
Refactor disk usage generation code

8 years agoBring filelist and diskusage in sync for rpm parsers
Michael Schroeder [Wed, 22 Feb 2017 10:34:56 +0000 (11:34 +0100)] 
Bring filelist and diskusage in sync for rpm parsers

8 years agoChange example specfile so that libsolvext.pc is in the file list
Michael Schroeder [Thu, 16 Feb 2017 10:41:55 +0000 (11:41 +0100)] 
Change example specfile so that libsolvext.pc is in the file list

8 years agoAdd bugzilla reference
Michael Schroeder [Wed, 15 Feb 2017 12:25:33 +0000 (13:25 +0100)] 
Add bugzilla reference

8 years agoAdd changes, bump version to 0.6.26 0.6.26
Michael Schroeder [Wed, 15 Feb 2017 10:37:49 +0000 (11:37 +0100)] 
Add changes, bump version to 0.6.26

8 years agoExport solvable_matchesdep function, as we now use it in the bindings
Michael Schroeder [Wed, 15 Feb 2017 10:37:22 +0000 (11:37 +0100)] 
Export solvable_matchesdep function, as we now use it in the bindings

8 years agoMerge pull request #177 from adelcast/dev/adelcast/split_pkgconfig
Michael Schroeder [Mon, 13 Feb 2017 10:56:58 +0000 (11:56 +0100)] 
Merge pull request #177 from adelcast/dev/adelcast/split_pkgconfig

Split libsolvext into it's own pkg-config file

8 years agoSplit libsolvext into it's own pkg-config file 177/head
Alejandro del Castillo [Thu, 26 Jan 2017 23:10:29 +0000 (17:10 -0600)] 
Split libsolvext into it's own pkg-config file

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
8 years agoAdd changes, bump version to 0.6.25 0.6.25
Michael Schroeder [Tue, 7 Feb 2017 12:20:53 +0000 (13:20 +0100)] 
Add changes, bump version to 0.6.25

8 years agoClean up directory handling a bit
Michael Schroeder [Wed, 1 Feb 2017 10:43:41 +0000 (11:43 +0100)] 
Clean up directory handling a bit

Improvie copying of a zero dirid (which actually should never
happen). Make the code more readable.

8 years agoMake sure that we have a zero dir entry if repodata_str2dir returns zero
Michael Schroeder [Wed, 1 Feb 2017 10:36:25 +0000 (11:36 +0100)] 
Make sure that we have a zero dir entry if repodata_str2dir returns zero

Should not make any difference, but just to be on the safe side...

8 years agoReject solv files with bad directories
Michael Schroeder [Wed, 1 Feb 2017 10:23:02 +0000 (11:23 +0100)] 
Reject solv files with bad directories

Bad meaning that there is a block with does not have a single
component. Such a block will trip directory traversion leading
to nasty things.

8 years agoGuard against dirpool_add_dir being called with an illegal component id
Michael Schroeder [Mon, 30 Jan 2017 15:18:46 +0000 (16:18 +0100)] 
Guard against dirpool_add_dir being called with an illegal component id

8 years agoFix otherprovides() parsing
Michael Schroeder [Wed, 25 Jan 2017 10:05:59 +0000 (11:05 +0100)] 
Fix otherprovides() parsing

Do not search for the first '(', because the dependency
may contain it. Just remove the last character like with
the supplements.

8 years agosolver_problemruleinfo2str: return reason why a package is not installable
Michael Schroeder [Wed, 18 Jan 2017 12:34:09 +0000 (13:34 +0100)] 
solver_problemruleinfo2str: return reason why a package is not installable

8 years agoAllow filtering in raw_decisions()
Michael Schroeder [Wed, 14 Dec 2016 10:34:33 +0000 (11:34 +0100)] 
Allow filtering in raw_decisions()

8 years agoAdd new solver flags to the documentation
Michael Schroeder [Wed, 14 Dec 2016 10:34:13 +0000 (11:34 +0100)] 
Add new solver flags to the documentation

8 years agoAdd experimental createshadow moveshadow raw_decisions methods
Michael Schroeder [Mon, 12 Dec 2016 14:53:28 +0000 (15:53 +0100)] 
Add experimental createshadow moveshadow raw_decisions methods

So patchcheck can be re-implemented in python (and moved out
of libsolv).

8 years agoMerge pull request #164 from roman-neuhauser/fbsd-compat
Michael Schroeder [Thu, 8 Dec 2016 16:11:16 +0000 (17:11 +0100)] 
Merge pull request #164 from roman-neuhauser/fbsd-compat

Fbsd compat

8 years agoDon't special case release-less provides in sort_by_common_dep any more
Michael Schroeder [Thu, 8 Dec 2016 13:49:31 +0000 (14:49 +0100)] 
Don't special case release-less provides in sort_by_common_dep any more

Instead use EVRCMP_MATCH_RELEASE, but leave the special handling of
the -2 return code intact.

8 years agolet users define PKGCONFIG_INSTALL_DIR 164/head
Roman Neuhauser [Mon, 28 Nov 2016 09:01:22 +0000 (10:01 +0100)] 
let users define PKGCONFIG_INSTALL_DIR

FreeBSD wants *.pc files in ${PREFIX}/libdata/pkgconfig,
${PREFIX}/lib/pkgconfig is not good eanough a configuration point.

8 years agolet users override MAN_INSTALL_DIR
Roman Neuhauser [Mon, 28 Nov 2016 09:00:50 +0000 (10:00 +0100)] 
let users override MAN_INSTALL_DIR

this makes the build more cooperative with FreeBSD ports:
FreeBSD wants man pages in ${PREFIX}/man, yet ${PREFIX}/share/man
exists in the staging area as well for some reason.  i'm too lazy
to chase the cause, esp. as the copout means more freedom to users.

8 years agoAdd SOLVER_FLAG_INSTALL_ALSO_UPDATES solver flag
Michael Schroeder [Wed, 23 Nov 2016 13:27:11 +0000 (14:27 +0100)] 
Add SOLVER_FLAG_INSTALL_ALSO_UPDATES solver flag

8 years agoSupport a DB_INCLUDE_DIR variable
Michael Schroeder [Wed, 23 Nov 2016 10:45:45 +0000 (11:45 +0100)] 
Support a DB_INCLUDE_DIR variable

8 years agoMake build work if expat is coming from /usr/local
Michael Schroeder [Wed, 23 Nov 2016 10:00:22 +0000 (11:00 +0100)] 
Make build work if expat is coming from /usr/local

8 years agoAdd SOLVER_FLAG_STRONG_RECOMMENDS option
Michael Schroeder [Fri, 18 Nov 2016 12:54:00 +0000 (13:54 +0100)] 
Add SOLVER_FLAG_STRONG_RECOMMENDS option

Create weak rules for recommends. This makes the solver
backtrack to fulfill recommends dependecies (i.e. update
packages, choose different alternatives...).

Needs testcases.

8 years agosolv: add autopattern right after the repo has been read
Michael Schroeder [Fri, 18 Nov 2016 12:52:12 +0000 (13:52 +0100)] 
solv: add autopattern right after the repo has been read

Otherwise we get holes and other nasty things.

8 years agoAdd matchesdep() method to bindings
Michael Schroeder [Thu, 17 Nov 2016 13:54:40 +0000 (14:54 +0100)] 
Add matchesdep() method to bindings

8 years agoAdd SOLVABLE_NAME hack for pool_whatmatchesdep and solvable_matchesdep
Michael Schroeder [Thu, 17 Nov 2016 13:45:43 +0000 (14:45 +0100)] 
Add SOLVABLE_NAME hack for pool_whatmatchesdep and solvable_matchesdep

8 years agopool_intersect_evrs: the evr should be an Id, not an int
Michael Schroeder [Thu, 17 Nov 2016 13:27:29 +0000 (14:27 +0100)] 
pool_intersect_evrs: the evr should be an Id, not an int

8 years agoAdd changes, bump version to 0.6.24 0.6.24
Michael Schroeder [Thu, 10 Nov 2016 14:17:10 +0000 (15:17 +0100)] 
Add changes, bump version to 0.6.24

8 years agoOops, fix typo in last commit
Michael Schroeder [Thu, 10 Nov 2016 11:58:55 +0000 (12:58 +0100)] 
Oops, fix typo in last commit

8 years agoFurther simplify python3 build
Michael Schroeder [Thu, 10 Nov 2016 10:15:20 +0000 (11:15 +0100)] 
Further simplify python3 build

8 years agoMerge pull request #140 from nolta/export-testcase_str2solvid
Michael Schroeder [Wed, 9 Nov 2016 13:56:08 +0000 (14:56 +0100)] 
Merge pull request #140 from nolta/export-testcase_str2solvid

make the testcase_str2solvid function public

8 years agoRemove too much trickery
Michael Schroeder [Wed, 9 Nov 2016 13:35:33 +0000 (14:35 +0100)] 
Remove too much trickery

8 years agoBuild both python2 and python3 bindings
Michael Schroeder [Tue, 8 Nov 2016 13:58:06 +0000 (14:58 +0100)] 
Build both python2 and python3 bindings

8 years agoSupport building for python2 and python3 in parallel
Michael Schroeder [Tue, 8 Nov 2016 12:38:14 +0000 (13:38 +0100)] 
Support building for python2 and python3 in parallel

Needs some hacking in the recipe file

8 years agoRework susetags multi-line handling
Michael Schroeder [Fri, 4 Nov 2016 13:17:27 +0000 (14:17 +0100)] 
Rework susetags multi-line handling

8 years agoAdd "autoinst" functionality
Michael Schroeder [Tue, 11 Oct 2016 12:52:31 +0000 (14:52 +0200)] 
Add "autoinst" functionality

Needed when we can't invert the list in advance, e.g. when converting
libzypp testcases.

8 years agoRefactor resolve_weak and resolve_orphaned
Michael Schroeder [Mon, 10 Oct 2016 12:02:43 +0000 (14:02 +0200)] 
Refactor resolve_weak and resolve_orphaned

8 years agoTest focus support
Michael Schroeder [Mon, 10 Oct 2016 10:16:23 +0000 (12:16 +0200)] 
Test focus support

8 years agoAdd experimental SOLVER_FOCUS_BEST solver flag
Michael Schroeder [Mon, 10 Oct 2016 09:49:55 +0000 (11:49 +0200)] 
Add experimental SOLVER_FOCUS_BEST solver flag

Makes the solver resolve dependencies right after the job rules,
thus pulling in the newest packages for dependencies as well.

8 years agoRefactor resolve_installed and resolve_dependencies
Michael Schroeder [Mon, 10 Oct 2016 09:15:10 +0000 (11:15 +0200)] 
Refactor resolve_installed and resolve_dependencies

8 years agoStrore decision reason in decisionq_reason
Michael Schroeder [Fri, 7 Oct 2016 13:01:16 +0000 (15:01 +0200)] 
Strore decision reason in decisionq_reason

This makes the code simpler and more flexible. Do away with
the old way of deducting the reason from the decision index,
instead store the reason in the decision process.

Note that the decisionq_reason is indexed by level, as all
the other decisions for a level are because of unit rules.
Thus the reason queue is much smaller than the decision queue.

8 years agoAllow noarch when comparing architectures in problem rule finding
Michael Schroeder [Tue, 13 Sep 2016 11:14:26 +0000 (13:14 +0200)] 
Allow noarch when comparing architectures in problem rule finding

8 years agoAllow building without rpm database support
Michael Schroeder [Thu, 8 Sep 2016 09:11:50 +0000 (11:11 +0200)] 
Allow building without rpm database support

Useful for things like OBS that only need to parse packages.

8 years agoGet rid of warning if no repo types are enabled
Michael Schroeder [Thu, 8 Sep 2016 08:46:16 +0000 (10:46 +0200)] 
Get rid of warning if no repo types are enabled

8 years agoGet rid of another gcc-6 warning
Michael Schroeder [Wed, 7 Sep 2016 15:16:06 +0000 (17:16 +0200)] 
Get rid of another gcc-6 warning

8 years agoGuard against a dirindex of -1
Michael Schroeder [Wed, 7 Sep 2016 15:14:51 +0000 (17:14 +0200)] 
Guard against a dirindex of -1

8 years agoMore refactoring and hardening
Michael Schroeder [Tue, 6 Sep 2016 12:03:35 +0000 (14:03 +0200)] 
More refactoring and hardening

8 years agoGuard better against corrupt rpms
Michael Schroeder [Fri, 2 Sep 2016 14:47:58 +0000 (16:47 +0200)] 
Guard better against corrupt rpms

8 years agoGet rid of gcc-6 warnings
Michael Schroeder [Fri, 2 Sep 2016 14:26:10 +0000 (16:26 +0200)] 
Get rid of gcc-6 warnings

8 years agoDo not rely on whatprovides when searching for a specific package
Michael Schroeder [Wed, 31 Aug 2016 09:37:54 +0000 (11:37 +0200)] 
Do not rely on whatprovides when searching for a specific package

See rhbz#1263888

9 years agomake the testcase_strsolvid function public 140/head
Mike Nolta [Sat, 18 Jun 2016 16:44:16 +0000 (12:44 -0400)] 
make the testcase_strsolvid function public

9 years agoMerge pull request #151 from ignatenkobrain/gh150
Michael Schroeder [Wed, 3 Aug 2016 09:40:43 +0000 (11:40 +0200)] 
Merge pull request #151 from ignatenkobrain/gh150

testcase: replace i with repoid

9 years agotestcase: replace i with repoid 151/head
Igor Gnatenko [Sun, 31 Jul 2016 16:54:33 +0000 (18:54 +0200)] 
testcase: replace i with repoid

looks like it was typo.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1361831
Closes: https://github.com/openSUSE/libsolv/issues/150
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
9 years agoAdd changes, bump version to 0.6.23 0.6.23
Michael Schroeder [Fri, 22 Jul 2016 11:03:39 +0000 (13:03 +0200)] 
Add changes, bump version to 0.6.23

9 years agoMove LIBSOLV_TOOLVERSION to solvversion.h
Michael Schroeder [Thu, 21 Jul 2016 09:52:37 +0000 (11:52 +0200)] 
Move LIBSOLV_TOOLVERSION to solvversion.h

Users like libzypp want to check if a solv file was written with
the current tool version.

9 years agoFix appdata if logic
Michael Schroeder [Thu, 21 Jul 2016 09:43:41 +0000 (11:43 +0200)] 
Fix appdata if logic

9 years agoMerge pull request #148 from badshah400/master
Michael Schroeder [Thu, 21 Jul 2016 09:42:27 +0000 (11:42 +0200)] 
Merge pull request #148 from badshah400/master

Also scan /usr/share/metainfo for appdata files

9 years agoRearrange scan order: main dir first, legacy dir next. 148/head
Atri Bhattacharya [Wed, 20 Jul 2016 18:25:37 +0000 (20:25 +0200)] 
Rearrange scan order: main dir first, legacy dir next.

9 years agoFix example to work with new and legacy appdata dirs.
Atri Bhattacharya [Wed, 20 Jul 2016 18:17:01 +0000 (20:17 +0200)] 
Fix example to work with new and legacy appdata dirs.

9 years agoAlso scan "/usr/share/metainfo" for appdata.
Atri Bhattacharya [Wed, 20 Jul 2016 18:02:35 +0000 (20:02 +0200)] 
Also scan "/usr/share/metainfo" for appdata.

Recent iterations of the appstream specification recommend
installing the appstream files in /usr/share/metainfo rather
than /usr/share/appdata. For  apps which may continue
to install their appstream files according to the legacy
standards, also keep /usr/share/appdata in the list of dirs
to scan.

9 years agoMerge pull request #147 from openSUSE/FATE#320699
Michael Schroeder [Wed, 20 Jul 2016 11:46:59 +0000 (13:46 +0200)] 
Merge pull request #147 from openSUSE/FATE#320699

Support tri-state product-endoflife (tag absent, present but nodate(0…

9 years agoSupport tri-state product-endoflife (tag absent, present but nodate(0), present ... 147/head
Michael Andres [Wed, 20 Jul 2016 11:43:56 +0000 (13:43 +0200)] 
Support tri-state product-endoflife (tag absent, present but nodate(0), present + date)

9 years agoTake lockstep into account when calculating unneeded packages
Michael Schroeder [Wed, 20 Jul 2016 11:37:39 +0000 (13:37 +0200)] 
Take lockstep into account when calculating unneeded packages

9 years agoAlso look at the arch when sorting obsoleters
Michael Schroeder [Tue, 12 Jul 2016 12:14:20 +0000 (14:14 +0200)] 
Also look at the arch when sorting obsoleters

9 years agoIgnore appplication extensions for now
Michael Schroeder [Fri, 17 Jun 2016 11:32:45 +0000 (13:32 +0200)] 
Ignore appplication extensions for now

9 years agodo not auto-minimize for recommended packages if the current selection is favored
Michael Schroeder [Wed, 15 Jun 2016 15:22:27 +0000 (17:22 +0200)] 
do not auto-minimize for recommended packages if the current selection is favored

9 years agoUpdate copyright
Michael Schroeder [Wed, 15 Jun 2016 11:39:27 +0000 (13:39 +0200)] 
Update copyright

9 years agoRefactor +testcase_rclass2str
Michael Schroeder [Wed, 15 Jun 2016 11:36:10 +0000 (13:36 +0200)] 
Refactor +testcase_rclass2str

9 years agoAdd enabled features to solvversion.h
Michael Schroeder [Wed, 15 Jun 2016 11:35:26 +0000 (13:35 +0200)] 
Add enabled features to solvversion.h

9 years agoTake disfavors into account when auto-minimizing for recommended packages
Michael Schroeder [Wed, 15 Jun 2016 10:08:35 +0000 (12:08 +0200)] 
Take disfavors into account when auto-minimizing for recommended packages

9 years agoAdd new file suse.c
Michael Schroeder [Tue, 14 Jun 2016 14:52:30 +0000 (16:52 +0200)] 
Add new file suse.c

9 years agoUse repo_rewrite_suse_deps instead of the repo_fix functions
Michael Schroeder [Tue, 14 Jun 2016 14:51:33 +0000 (16:51 +0200)] 
Use repo_rewrite_suse_deps instead of the repo_fix functions

Do not use the repo_fix functions in new code!

9 years agoMove weird suse functions into a suse.c file
Michael Schroeder [Tue, 14 Jun 2016 14:48:58 +0000 (16:48 +0200)] 
Move weird suse functions into a suse.c file

Please do not use em ;)

9 years agoImprove last commit so that self-providing requires don't pull in other providers
Michael Schroeder [Tue, 14 Jun 2016 12:51:22 +0000 (14:51 +0200)] 
Improve last commit so that self-providing requires don't pull in other providers

9 years agoChange cleandeps code so that it keeps all providers
Michael Schroeder [Tue, 14 Jun 2016 11:15:40 +0000 (13:15 +0200)] 
Change cleandeps code so that it keeps all providers

It will report less unneeded packages, but it will also not
erase the wrong providers.

9 years agoMake sure that all repos have different names in a testcase
Michael Schroeder [Mon, 13 Jun 2016 13:14:38 +0000 (15:14 +0200)] 
Make sure that all repos have different names in a testcase

9 years agofix bug in changes ;)
Michael Schroeder [Wed, 8 Jun 2016 11:26:41 +0000 (13:26 +0200)] 
fix bug in changes ;)

9 years agoAdd changes, bump version to 0.6.22 0.6.22
Michael Schroeder [Wed, 8 Jun 2016 11:25:34 +0000 (13:25 +0200)] 
Add changes, bump version to 0.6.22

9 years agoAdd some news
Michael Schroeder [Wed, 8 Jun 2016 11:15:07 +0000 (13:15 +0200)] 
Add some news

9 years agoTweak urpm_reorder so that selected packages get score 4
Michael Schroeder [Tue, 7 Jun 2016 09:01:16 +0000 (11:01 +0200)] 
Tweak urpm_reorder so that selected packages get score 4