1
0
mirror of https://github.com/openSUSE/libsolv.git synced 2026-02-05 03:46:25 +01:00

3748 Commits

Author SHA1 Message Date
Michael Schroeder
1d0e4eebc3 Merge pull request #603 from cmeerw/funopen-seekfn-arg-type
Remove superfluous cast of NULL pointer
2026-02-03 15:27:31 +01:00
Michael Schroeder
fa4db98316 Move getopt.h include into win32/unistd.h
Fixes issue #605
2026-02-03 13:12:12 +01:00
Michael Schroeder
0d5e10ee87 detect_dbpath: also check for /usr/lib/sysimage/rpm
Because it's the right location nowadays. (Should not matter
much, as %_dbpath should be set in most cases.)
2026-02-03 13:06:29 +01:00
Michael Schroeder
ac6a1e10fe Make doshowproof a bit more readable 2026-02-03 13:04:27 +01:00
Michael Schroeder
32439fa5db Add note about asking the solver for a proof
No functual changes
2026-02-03 13:04:26 +01:00
Michael Schroeder
d8a011064b Fix indent
No functual changes
2026-02-03 13:04:24 +01:00
Michael Schroeder
2d3dfa3bad map_and: fix different size case
Clear the remaining target bits if the source is smaller than the
target.
2026-02-03 13:04:18 +01:00
Michael Schroeder
e8695fbd95 Merge pull request #604 from evan-goode/evan-goode/test-color-filtering-update-targets
Add testcase for color filtering when adding update targets
2026-01-21 11:31:32 +01:00
Evan Goode
24a7a79595 Add testcase for color filtering when adding update targets
Related: https://github.com/openSUSE/libsolv/issues/583
2026-01-20 14:11:40 -05:00
Christof Meerwald
443d612fa2 Remove superfluous cast of NULL pointer 2025-12-18 18:54:20 +00:00
Michael Schroeder
5dac6b8ad2 Merge pull request #601 from arrowd/master
Add support for the Elbrus2000 (e2k) architecture
2025-12-10 15:10:27 +01:00
Gleb Popov
9fb51b284c Add support for the Elbrus2000 (e2k) architecture 2025-12-09 19:31:59 +03:00
Gleb Popov
97f5d50ffb runtestcases.sh: Use portable shebang 2025-12-09 19:26:21 +03:00
Michael Schroeder
224914c125 Merge pull request #600 from goodspeed34/qsort_r_fix
Fix qsort_r preprocessor for musl and FreeBSD
2025-10-22 13:10:55 +02:00
Gong Zhile
2d0718a4f2 Fix qsort_r preprocessor for musl and FreeBSD
The original mentioned qsort_r signature difference now only exists in DragonFly
BSD & MacOS. However, the preprocessor also broke the compliation on musl+linux
and FreeBSD, leading the compilation error on buildroot.

musl: https://git.musl-libc.org/cgit/musl/commit/?id=b76f37fd5625d038141b52184956fb4b7838e9a5
freebsd, dragonfly, macos: QSORT(3)

FreeBSD and musl use the same GNU-like signature.

Signed-off-by: Gong Zhile <gongzl.oerv@isrc.iscas.ac.cn>
2025-10-22 18:14:30 +08:00
Michael Schroeder
56f5ca0d86 tarhead: add a line size limit to catch broken entries
Also write back the allocated line length.
2025-08-05 12:03:15 +02:00
Michael Schroeder
f8a299cd63 repo_apk: move entry size limit to the top of the file 2025-08-05 11:59:35 +02:00
Michael Schroeder
39324fcf28 repo_arch: limit the package entry size 2025-08-05 11:57:14 +02:00
Michael Schroeder
c2ace5ece0 repo_apkv3: move arbitrary limits to the top of the file 2025-08-05 11:24:16 +02:00
Michael Schroeder
c8264f9eb4 repo_apkv3: improve blob length check 2025-08-05 11:14:27 +02:00
Michael Schroeder
fb4b4340d4 Add changes, bump version to 0.7.35 0.7.35 2025-08-04 11:14:31 +02:00
Michael Schroeder
986388915b Rename pool_dep_fulfilled_in_map to pool_satisfieddep_map
This is more similar to the other functions we already have.
2025-08-01 15:35:01 +02:00
Michael Schroeder
276d550835 Move pool_dep_fulfilled_in_map into pooldep.c 2025-07-30 12:40:59 +02:00
Michael Schroeder
1f157d5abb Merge pull request #596 from m-blaha/doc-solver-flag-strong-recommends
Document SOLVER_FLAG_STRONG_RECOMMENDS flag
2025-07-30 09:49:26 +02:00
Michael Schroeder
b60858cdeb Merge pull request #592 from kontura/dep_fulfilled
Add pool_dep_fulfilled_in_map function
2025-07-30 09:45:48 +02:00
Michael Schroeder
f81f18056c Split off pool_init_rels from pool_create and moveit to poolid.c
This allows us to remove the REL_BLOCK definition from
poolid_private.h.
2025-07-29 16:00:58 +02:00
Michael Schroeder
94600551b1 Split grow_whatprovides_rel from pool_rel2id 2025-07-29 15:34:59 +02:00
Michael Schroeder
ab5d8e3f1f Move dependency matching from pool.c to pooldep.c 2025-07-29 15:34:09 +02:00
Marek Blaha
3cd38503ba Document SOLVER_FLAG_STRONG_RECOMMENDS flag 2025-07-29 14:45:37 +02:00
Michael Schroeder
fed077b902 Add comments to explain the whatprovidesaux a bit 2025-07-29 13:21:34 +02:00
Michael Schroeder
37240e94b7 Do not inline pool_is_kind 2025-07-29 12:04:58 +02:00
Michael Schroeder
f72d9ed127 Move whatprovides handling from pool.c to poolwhatprovides.c 2025-07-29 11:52:42 +02:00
Michael Schroeder
5fddfaf465 Fix potential access of freed mem in the genid testcase 2025-07-29 10:02:04 +02:00
Michael Schroeder
8780860b34 solver_addbestrules: recalculate pointer to current rule after adding a new rule
The code adds new rules in a FOR_RULELITERALS loop. The iterator needs
to access elements of the rule it iterates over, so if we add a new
rule in the loop body, we have to make sure that the pointer to the
current rule stays valid.

Fixes issue #594
2025-07-25 11:10:33 +02:00
Michael Schroeder
4677da6ecb Merge pull request #593 from Redbeanw44602/master
Fix build on win32 & mingw.
2025-07-24 15:04:47 +02:00
Redbeanw44602
7c9611d994 fix compile on mingw-w64. 2025-07-24 13:43:26 +08:00
Redbeanw44602
c56131ef7d fix msvc c2036. 2025-07-24 13:42:07 +08:00
Michael Schroeder
262e8efa02 Add changes, bump version to 0.7.34 0.7.34 2025-07-07 13:51:03 +02:00
Michael Schroeder
aba891ef74 repo_autopattern: support creation of obsoletes for product packages
This adds support for provides of the type "product-obsoletes(name)".
We translate this to "Obsoletes: product:<name>" in the generated
product pseudo package.

We need this because people used "Obsoletes: product:name" in the
"release" package, but this is no longer allowed in newer rpm versions.
Besides, the obsoletes is kind of wrong in the "release" package
anyway, it belongs in the generated "product:" package.
2025-07-07 13:31:29 +02:00
Aleš Matěj
933f0e4d5c Add pool_dep_fulfilled_in_map function
This is can be used to determine dependency closure on a given set of
packages (even with complex dependencies).
2025-07-01 14:29:32 +02:00
Michael Schroeder
b8b73e246b Merge pull request #591 from AntoinePrv/missing-headers
Fix Unix header on Windows
2025-06-04 17:13:53 +02:00
AntoinePrv
c49f18de78 Fix Unix header on Windows 2025-06-04 14:55:53 +02:00
Michael Schroeder
9fb855d872 Add changes, bump version to 0.7.33 0.7.33 2025-06-03 13:40:58 +02:00
Michael Schroeder
b6d4ecaaa4 Support orderwithrequires dependencies in susedata.xml 2025-06-03 13:20:20 +02:00
Michael Schroeder
6eb8741bcc repo parsers: use strtoull instead of atoi to parse the time 2025-06-03 12:45:32 +02:00
Michael Schroeder
f721a4c9fc Transaction ordering: Allow more uninst->uninst edges
Only skip uninst->uninst edges if both elements are build to
inst elements.
2025-06-02 11:33:29 +02:00
Michael Schroeder
74cbf3026f Merge pull request #590 from gruenich/feature/cppcheck-warnings
Simlify some if conditions to fix Cppcheck warnings
2025-05-16 10:19:15 +02:00
Christoph Grüninger
8642432b74 pool.c: Remove identical if condition
It is always true.
Found by Cppcheck (identicalInnerCondition).
2025-05-14 21:31:56 +02:00
Christoph Grüninger
e961dbc34a order.c: Combine if's with identical conditions
Found by Cppcheck (duplicateCondition).
2025-05-14 21:24:05 +02:00
Christoph Grüninger
fdbfb3fee0 rules.c: Simplify if condition
rid <=0 is checked two lines before.
Found by Cppcheck (knownConditionTrueFalse).
2025-05-14 21:21:31 +02:00