]>
git.ipfire.org Git - thirdparty/libsolv.git/log
Jaroslav Mracek [Thu, 7 Sep 2017 14:22:25 +0000 (16:22 +0200)]
Not remove excluded unused dependencies (RhBug:
1260242 )
https://bugzilla.redhat.com/show_bug.cgi?id=
1260242
Michael Schroeder [Thu, 7 Sep 2017 14:22:11 +0000 (16:22 +0200)]
Add changes, bump version to 0.6.29
Michael Schroeder [Thu, 7 Sep 2017 14:14:27 +0000 (16:14 +0200)]
update TODO
Michael Schroeder [Thu, 7 Sep 2017 14:12:34 +0000 (16:12 +0200)]
Expose solver_get_recommendations in bindings
Michael Schroeder [Thu, 7 Sep 2017 12:40:46 +0000 (14:40 +0200)]
Cleanup last commit a bit
Michael Schroeder [Thu, 7 Sep 2017 12:30:13 +0000 (14:30 +0200)]
Merge pull request #221 from EricAustinYu/master
policy.c: Fix solver_prune_to_highest_prio_per_name
Michael Schroeder [Wed, 6 Sep 2017 12:30:29 +0000 (14:30 +0200)]
Merge pull request #219 from Conan-Kudo/mgadefs
Add missing definitions to libsolv for Mageia
Michael Schroeder [Wed, 6 Sep 2017 12:21:45 +0000 (14:21 +0200)]
rpm upstream accepted the 'unless' pull request
Michael Schroeder [Mon, 4 Sep 2017 11:46:16 +0000 (13:46 +0200)]
Split solver_dep_fulfilled_cplx from inline function solver_dep_fulfilled
Michael Schroeder [Mon, 4 Sep 2017 09:58:30 +0000 (11:58 +0200)]
Merge pull request #223 from ignatenkobrain/typos
doc: findallproblemrule -> findallproblemrules
Igor Gnatenko [Sun, 27 Aug 2017 08:47:45 +0000 (10:47 +0200)]
doc: findallproblemrule -> findallproblemrules
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Michael Schroeder [Mon, 4 Sep 2017 09:48:47 +0000 (11:48 +0200)]
Add REL_UNLESS to bindings and doc
Michael Schroeder [Mon, 4 Sep 2017 09:36:22 +0000 (11:36 +0200)]
Add support for REL_UNLESS
This is similar to REL_COND, except that it uses AND, not OR. Thus:
(A REL_UNLESS B) is equivalent to (A AND NOT(B))
(A REL_UNLESS (B REL_ELSE C)) is equivalent to ((A AND NOT(B)) OR (C AND B))
Eric Yu [Tue, 22 Aug 2017 17:18:38 +0000 (12:18 -0500)]
policy.c: Fix solver_prune_to_highest_prio_per_name
- Fixed logic so that all packages with the same name are pushed to the queue
of packages to be pruned instead of just the first package with that name.
- This fixes a bug where the best version of recommended and suggested packages
were not being returned.
- Added tests to check that this does fix the problem with recommended and
suggested packages mentioned above.
Neal Gompa [Sun, 6 Aug 2017 04:17:15 +0000 (00:17 -0400)]
Switch solv to read rpm-md repos on Mageia
Mageia is using libsolv with DNF and RPM-MD repositories, thus
the solv tool should be using our RPM-MD repository configuration.
Neal Gompa [Sun, 6 Aug 2017 04:06:56 +0000 (00:06 -0400)]
Replace 'redhat-release' with generic 'system-release'
fedora-release and mageia-release offer generic 'system-release'
Provides that can be used to determine the release version of the
distribution. Derivatives of Fedora (including RHEL) also offer this
generic capability in their distribution release packages.
Neal Gompa [Sun, 6 Aug 2017 04:05:13 +0000 (00:05 -0400)]
Add missing Mageia definitions
Mageia's RPM stack mirrors Fedora's, so libsolv's definitions need
to reflect this.
Michael Schroeder [Fri, 4 Aug 2017 09:34:09 +0000 (11:34 +0200)]
Merge pull request #218 from ignatenkobrain/typos
--Typos
Igor Gnatenko [Thu, 3 Aug 2017 23:23:36 +0000 (01:23 +0200)]
--Typos
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Michael Schroeder [Thu, 3 Aug 2017 12:54:26 +0000 (14:54 +0200)]
Support REL_WITHOUT
Because we can.
Michael Schroeder [Wed, 26 Jul 2017 10:44:45 +0000 (12:44 +0200)]
Clean up handling of packages we want to extend but could not find
Michael Schroeder [Wed, 26 Jul 2017 10:17:52 +0000 (12:17 +0200)]
rework section handling
Now no longer coredumps when package tags are encountered outside of a
package section.
Michael Schroeder [Wed, 26 Jul 2017 08:26:49 +0000 (10:26 +0200)]
Typos--
Michael Schroeder [Wed, 26 Jul 2017 08:19:18 +0000 (10:19 +0200)]
Fix typos
Michael Schroeder [Tue, 25 Jul 2017 11:36:48 +0000 (13:36 +0200)]
Move generated man pages into a "gen" directory
Michael Schroeder [Tue, 25 Jul 2017 09:48:12 +0000 (11:48 +0200)]
Update boolean dependencies
Michael Schroeder [Tue, 25 Jul 2017 09:26:32 +0000 (11:26 +0200)]
Add another use for extend_to_repo()
Michael Schroeder [Tue, 25 Jul 2017 09:12:58 +0000 (11:12 +0200)]
Add vim modelines to asciidoc files
Both to make syntax highlighting in vim work and to make github
recognize the files as asciidoc
Michael Schroeder [Tue, 25 Jul 2017 08:33:02 +0000 (10:33 +0200)]
Add parens in testcase
Michael Schroeder [Tue, 25 Jul 2017 08:32:03 +0000 (10:32 +0200)]
mix_depblocks -> distribute_depblocks
And add a comment what it does.
Michael Schroeder [Mon, 24 Jul 2017 20:05:35 +0000 (22:05 +0200)]
Simplify complex dep normailzation code
Now much easier to understand. At least IMHO...
Michael Schroeder [Mon, 24 Jul 2017 15:10:28 +0000 (17:10 +0200)]
Add complex deps rule generation tests
Michael Schroeder [Mon, 24 Jul 2017 13:04:31 +0000 (15:04 +0200)]
Add TODO_1.0
Michael Schroeder [Fri, 21 Jul 2017 13:41:42 +0000 (15:41 +0200)]
repoinfo_download.c: Add FEDORA ifdef
Michael Schroeder [Mon, 24 Jul 2017 10:08:15 +0000 (12:08 +0200)]
Merge pull request #216 from sunweaver/pr/sanitize-python-version
Sanitize PYTHONLIBS_VERSION_STRING before passing it to 'FIND_PACKAGEā¦
Brad King [Mon, 24 Jul 2017 09:14:48 +0000 (11:14 +0200)]
Sanitize PYTHONLIBS_VERSION_STRING before passing it to 'FIND_PACKAGE (PythonInterp).
Obtained from libsolv_0.6.28-2 in Debian.
Origin: https://gitlab.kitware.com/cmake/cmake/merge_requests/1047#note_288680
Bug-Debian: https://bugs.debian.org/867514
Author: Brad King
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2017-07-22
Michael Schroeder [Fri, 21 Jul 2017 13:38:39 +0000 (15:38 +0200)]
Merge pull request #214 from larchunix/fix-compilation-warnings
Fix compilation warnings
Michael Schroeder [Fri, 21 Jul 2017 11:38:15 +0000 (13:38 +0200)]
yumobs: remove bogus queue_empty() call
The queue_empty made the code only create yumobs rules for one
dependency. It's surprising that nobody ran into this bug until now.
Michael Schroeder [Mon, 10 Jul 2017 12:37:01 +0000 (14:37 +0200)]
Use same heuristic as upstream rpm to determine if the header belongs to a source rpm
We used to rely on the lead data, which is unreliable. Follow
upstream rpm by using a heuristic if both TAG_SOURCERPM and
TAG_SOURCEPACKAGE are not set.
Denis Ollier [Sat, 1 Jul 2017 06:39:15 +0000 (08:39 +0200)]
Fix compilation warnings
examples/solv/repoinfo_download.c:95:18: warning: implicit declaration of function 'yum_substitute' [-Wimplicit-function-declaration]
char *b = yum_substitute(cinfo->repo->pool, cinfo->baseurl);
^~~~~~~~~~~~~~
examples/solv/repoinfo_download.c:95:18: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
Michael Schroeder [Fri, 30 Jun 2017 14:46:27 +0000 (16:46 +0200)]
Add changes, bump version to 0.6.28
Michael Schroeder [Fri, 30 Jun 2017 14:23:55 +0000 (16:23 +0200)]
Merge pull request #211 from jon-turney/master
Fixes for building with newlib/cygwin
Jon Turney [Thu, 19 Jan 2017 15:21:34 +0000 (15:21 +0000)]
Add RUNTIME DESTINATION to INSTALL TARGETS
This is needed for shared library runtimes to be installed correctly on DLL
platforms. It has no effect on other platforms.
v2:
No need to include prefix, since DESTINATION is relative to it
Michael Schroeder [Mon, 19 Jun 2017 09:09:43 +0000 (11:09 +0200)]
Add conditionals for swig perl bug workaround
It was fixed in swig-2.0.5 and gets in the way with newer perl
versions.
Jon Turney [Mon, 5 Jun 2017 13:50:44 +0000 (14:50 +0100)]
newlib has glibc-style qsort_r()
Michael Schroeder [Tue, 30 May 2017 12:45:17 +0000 (14:45 +0200)]
Add extend_to_repo calls in examples
Those are needed if the repo is not written to disk. Otherwise,
the repodata does not contain any solvable and thus the configured
extensions do not work.
Michael Schroeder [Tue, 30 May 2017 12:37:47 +0000 (14:37 +0200)]
Adapt to bool handling of newer swig versions
We currently simply define SWIG_PYTHON_LEGACY_BOOL. In the future
we might want to revisit this and mandate true bool values.
Michael Schroeder [Tue, 30 May 2017 09:03:56 +0000 (11:03 +0200)]
Fix suse version test
Michael Schroeder [Tue, 30 May 2017 08:31:46 +0000 (10:31 +0200)]
Add solver reuse testcase
Michael Schroeder [Tue, 30 May 2017 08:38:20 +0000 (10:38 +0200)]
Merge pull request #195 from Conan-Kudo/enablemorefeatures
Enable more libsolv features and rework spec distro conditionals
Michael Schroeder [Mon, 29 May 2017 10:54:05 +0000 (12:54 +0200)]
Merge pull request #209 from jon-turney/ftm-first
_GNU_SOURCE should be defined before including any headers
Neal Gompa [Sun, 28 May 2017 13:35:44 +0000 (09:35 -0400)]
Enable complex/rich dependencies for CentOS/RHEL 7
This matches how libsolv is configured there.
Jon Turney [Thu, 19 Jan 2017 15:21:34 +0000 (15:21 +0000)]
_GNU_SOURCE should be defined before including any headers
per https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html
"These directives must come before any #include of a system header file."
This actually causes a problem when compiling with newlib headers.
Michael Schroeder [Thu, 25 May 2017 12:47:42 +0000 (14:47 +0200)]
add strong recommends testcase, fix break testcase
Michael Schroeder [Wed, 24 May 2017 14:29:00 +0000 (16:29 +0200)]
Do not own the repo pointer in ruby's each method
Michael Schroeder [Wed, 24 May 2017 14:20:33 +0000 (16:20 +0200)]
Merge pull request #208 from ignatenkobrain/repo-leak
bindings: do not leak Repo in __next__()
Michael Schroeder [Wed, 24 May 2017 10:57:28 +0000 (12:57 +0200)]
Disable all weak recommends rules of a job instead of just the last
See strongrecommends/break.t for a longer explanation.
Michael Schroeder [Wed, 24 May 2017 09:54:02 +0000 (11:54 +0200)]
Add ENABLE_TESTCASE_HELIXREPO as hidden compile option
This is pretty much just for me using testsolv on testcases
generated by libzypp. There used to be a #if 0 in the code which
I manually toggled, but the option is much saner.
Michael Schroeder [Tue, 23 May 2017 09:49:53 +0000 (11:49 +0200)]
Add pool_best_solvables() function
This prunes a set of solvables to the best versions.
Igor Gnatenko [Sun, 21 May 2017 17:05:34 +0000 (19:05 +0200)]
bindings: do not leak Repo in __next__()
We don't create new object in __getitem__, why should we do it in __next__?
Closes: https://github.com/openSUSE/libsolv/issues/207
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
Michael Schroeder [Fri, 19 May 2017 13:10:20 +0000 (15:10 +0200)]
Merge pull request #198 from ignatenkobrain/sourcepkg
bindings: expose sourcepkg functions
Michael Schroeder [Fri, 19 May 2017 13:09:23 +0000 (15:09 +0200)]
Merge pull request #192 from Conan-Kudo/armsfp-support
Add support for armv5tl on armsfp arches
Igor Gnatenko [Wed, 17 May 2017 20:06:21 +0000 (22:06 +0200)]
bindings: expose sourcepkg functions
Closes: https://github.com/openSUSE/libsolv/issues/197
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
Neal Gompa [Thu, 11 May 2017 12:45:38 +0000 (08:45 -0400)]
Disable bzip2 and xz/lzma compression support for SLE <= 12
Michael Schroeder [Thu, 11 May 2017 08:57:20 +0000 (10:57 +0200)]
Merge pull request #196 from jrohel/fix/rpmhead_read_int64
Fix reading 64bit integer values from RPM header
Jaroslav Rohel [Tue, 9 May 2017 13:20:00 +0000 (15:20 +0200)]
Fix reading 64bit integer values from RPM header
Neal Gompa [Mon, 8 May 2017 13:17:56 +0000 (09:17 -0400)]
Enable more libsolv features and rework spec distro conditionals
- Enable bzip2 and xz/lzma compression support
- Enable complex/rich dependencies on distributions with RPM 4.13+
- Simplified CentOS/RHEL conditionals
- Added Mageia conditionals
- Fixed a few spec portability issues
Michael Schroeder [Wed, 26 Apr 2017 09:04:54 +0000 (11:04 +0200)]
Add changes, bump version to 0.6.27
Michael Schroeder [Wed, 26 Apr 2017 09:01:08 +0000 (11:01 +0200)]
Add missing REL_ entries to bindings
Michael Schroeder [Wed, 26 Apr 2017 08:29:52 +0000 (10:29 +0200)]
Allocate in bigger chunks when a queue grows in size.
Michael Schroeder [Tue, 25 Apr 2017 09:25:05 +0000 (11:25 +0200)]
Also check eqmagic in the paux case
I'd love to move some comparisons into the eqmagic helpers,
but profiling showed that gcc doesn't make some optimizations
in that case...
Michael Schroeder [Mon, 24 Apr 2017 12:28:45 +0000 (14:28 +0200)]
Speed up build-id provides queries
They are of the form "foo = md5sum", which is very expensive
because of rpm's evr comparison rules.
Michael Schroeder [Wed, 19 Apr 2017 09:00:02 +0000 (11:00 +0200)]
Add missing 'static' keyword
The addselectionjob() function is internal.
Michael Schroeder [Wed, 19 Apr 2017 08:53:13 +0000 (10:53 +0200)]
Add testcase for deeply nested dependencies
Michael Schroeder [Wed, 19 Apr 2017 07:59:47 +0000 (09:59 +0200)]
Format REL_ERROR as <ERROR>
Michael Schroeder [Wed, 19 Apr 2017 07:59:01 +0000 (09:59 +0200)]
Simplify namespace formatting
Michael Schroeder [Tue, 18 Apr 2017 12:34:40 +0000 (14:34 +0200)]
Change testcase_dep2str_complex so that it handles deeply nested ids
The old implementation relied on the tmpspace holding all sub-elements
of the dependency, which led to segfaults for deeply nested ids.
Michael Schroeder [Tue, 18 Apr 2017 09:19:52 +0000 (11:19 +0200)]
Add REL_ERROR for dependencies that could not be parsed
This will make a solvable not installable in the future.
Neal Gompa [Wed, 12 Apr 2017 15:10:10 +0000 (11:10 -0400)]
Add armv5tl to armsfp arch list
Michael Schroeder [Wed, 22 Mar 2017 10:17:54 +0000 (11:17 +0100)]
Add missing part from last commit
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.)
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
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.
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
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>
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.
Michael Schroeder [Tue, 28 Feb 2017 14:06:10 +0000 (15:06 +0100)]
Change example specfile to build 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.
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...
Michael Schroeder [Thu, 23 Feb 2017 16:57:52 +0000 (17:57 +0100)]
Clean up header includes in tools
Michael Schroeder [Thu, 23 Feb 2017 16:51:09 +0000 (17:51 +0100)]
Get rid of unneded header file includes
Michael Schroeder [Thu, 23 Feb 2017 16:33:22 +0000 (17:33 +0100)]
Haiku nowadays has fopencookie
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.
Michael Schroeder [Thu, 23 Feb 2017 16:15:16 +0000 (17:15 +0100)]
Get rid of no longer needed zlib includes
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.
Michael Schroeder [Wed, 22 Feb 2017 13:20:35 +0000 (14:20 +0100)]
Refactor disk usage generation code
Michael Schroeder [Wed, 22 Feb 2017 10:34:56 +0000 (11:34 +0100)]
Bring filelist and diskusage in sync for rpm parsers
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
Michael Schroeder [Wed, 15 Feb 2017 12:25:33 +0000 (13:25 +0100)]
Add bugzilla reference
Michael Schroeder [Wed, 15 Feb 2017 10:37:49 +0000 (11:37 +0100)]
Add changes, bump version to 0.6.26