Commit graph

202 commits

Author SHA1 Message Date
Brian C. Lane
28e74f6c9b Add support for using librepo to download packages
Using a metalink or mirrorlist along with the package paths and
checksums allows them to be reliably downloaded even when mirrors are
not all in sync. It will retry with a new mirror until it succeeds, or
has tried all of the mirrors.
2025-01-14 08:19:16 +01:00
schutzbot
08d0b657ee Post release version bump
[skip ci]
2024-12-18 20:00:01 +00:00
Tomáš Hozza
6738679f2e SPEC: include osbuild-image-info in the -tools subpackage
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2024-12-18 12:50:32 +01:00
schutzbot
b1f16e9ab4 Post release version bump
[skip ci]
2024-12-04 08:32:12 +00:00
schutzbot
4c2b8db0d7 Post release version bump
[skip ci]
2024-11-22 21:00:17 +00:00
schutzbot
349c192ca8 Post release version bump
[skip ci]
2024-11-20 08:29:18 +00:00
Achilleas Koutsou
68de4e850d spec: depend on and use dnf4 in Fedora 41
The dnf5 library in Fedora 41 still has some issues that prevents us
from using it in osbuild-composer.  Switch to using dnf4 on Fedora 41 as
well until these issues are resolved.
2024-11-07 15:41:23 +01:00
schutzbot
798ffa7dac Post release version bump
[skip ci]
2024-11-06 08:27:47 +00:00
schutzbot
0cf3cf9020 Post release version bump
[skip ci]
2024-10-23 08:28:22 +00:00
Renata Ravanelli
9c69bf3423 osbuild.spec: Add python3-dnf dependency for osbuild-tools
The recent change in https://github.com/osbuild/osbuild/pull/1896
removed the dnf dependency, leading to failures in osbuild-mpp with the
following error:

    ModuleNotFoundError: No module named 'dnf'

To fix it, add the python3-dnf dependency for the
osbuild-tools package.

Signed-off-by: Renata Ravanelli <rravanel@redhat.com>
2024-10-22 11:11:54 +02:00
schutzbot
6ed754946d Post release version bump
[skip ci]
2024-10-09 08:27:18 +00:00
Ondřej Budai
e5e3aad7b8 spec: remove unneeded dnf depedendency
This was added years ago in 3c19420b3e.
Back then, we were constructing the initial buildroot using dnf directly
(stages had network access at that point). We reworked this with the
introduction of the rpm stage, sources and an external depsolver. The
dnf stage itself was actually removed in
892342b978. Thus, I think we don't need
to pull dnf anymore, so this commit removes the dependency.
2024-09-26 12:11:13 +02:00
Yaakov Selkowitz
68b6481f54 spec: use python3-libdnf5 in RHEL 11 and ELN 2024-09-25 12:44:19 +02:00
schutzbot
186cf23255 Post release version bump
[skip ci]
2024-09-25 08:29:11 +00:00
Tomáš Hozza
ca1a21b923 Fix dependencies and test for DNF4 based osbuild-depsolve-dnf
For the DNF4 version, we actually use 'dnf' package and not 'libdnf'.
Fix the SPEC file dependencies and also the check in unit test.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2024-09-20 14:58:57 +02:00
schutzbot
59734733c0 Post release version bump
[skip ci]
2024-09-18 11:32:51 +00:00
schutzbot
6953ea89b4 Post release version bump
[skip ci]
2024-09-11 08:27:12 +00:00
schutzbot
d893e81004 Post release version bump
[skip ci]
2024-08-28 08:26:06 +00:00
schutzbot
347c0dec4a Post release version bump
[skip ci]
2024-08-21 17:07:31 +00:00
Michael Vogt
8a9c6aba3c osbuild: add "Conflicts" to avoid breaking older composer
osbuild 126 added a new "solver" field in the osbuild-dnf-json
output and osbuild-composer only supports this since 116.

This broke production (sorry!). This commit helps mitigate it.
2024-08-21 17:17:25 +02:00
schutzbot
761c03611b Post release version bump
[skip ci]
2024-08-14 08:26:53 +00:00
Brian C. Lane
d30fca16c6 spec: Use dnf >= 5.2.1 on Fedora 41 and later 2024-08-01 08:57:30 +02:00
Brian C. Lane
f17ab5cbaf osbuild-depsolve-dnf: refactor into osbuild.solver module
This moves the dnf and dnf5 code into a new osbuild module called
solver. The dnf specific code is in dnf.py and dnf5 is in dnf5.py

At runtime the osbuild-depsolve-dnf script reads a config file from
/usr/lib/osbuild/solver.json and imports the selected solver. This
currently just contains a 'use_dnf5' bool but can be extended to support
other configuration options or depsolvers.

At build time a config file is selected from tools/solver-dnf.json or
tools/solver-dnf5.json and installed. Currently dnf5 is not installed,
it will be added when dnf5 5.2.1.0 becomes available in rawhide (Fedora
41).

The error messages have been normalized since the top level functions in
osbuild-depsolve-dnf do not know which version of dnf is being used.
2024-08-01 08:57:30 +02:00
schutzbot
89b3221b2c Post release version bump
[skip ci]
2024-07-31 08:15:39 +00:00
schutzbot
2b2fec85b2 Post release version bump
[skip ci]
2024-07-17 08:16:09 +00:00
schutzbot
8507b32a87 Post release version bump
[skip ci]
2024-07-03 08:16:19 +00:00
schutzbot
477a164492 Post release version bump
[skip ci]
2024-06-19 08:15:53 +00:00
schutzbot
49b86f0b5a Post release version bump
[skip ci]
2024-06-05 08:15:18 +00:00
schutzbot
6b8f2ad20b Post release version bump
[skip ci]
2024-05-22 08:15:46 +00:00
schutzbot
77ce02c3d3 Post release version bump
[skip ci]
2024-05-08 08:13:38 +00:00
Brian C. Lane
107593a1fd spec: Install osbuild-depsolve-dnf not dnf5
On Fedora 40 we switched to dnf5 too early. There is going to be a new
version in Fedora 41 soon, with breaking API changes, so in order to
reduce the number of things we need to support, switch back to using
libdnf on Fedora 40 (and 41 until dnf5 version 5.2.0 is available,
see #1769)
2024-05-02 10:50:53 +02:00
schutzbot
59bff6d742 Post release version bump
[skip ci]
2024-04-24 08:16:01 +00:00
schutzbot
130ca6ad64 Post release version bump
[skip ci]
2024-04-15 09:09:06 +00:00
schutzbot
e32b25a1b5 Post release version bump
[skip ci]
2024-04-10 08:17:22 +00:00
schutzbot
9a4f4552f5 Post release version bump
[skip ci]
2024-03-29 12:35:05 +00:00
schutzbot
62e1570ef9 Post release version bump
[skip ci]
2024-03-27 08:18:03 +00:00
schutzbot
435c6d3460 Post release version bump
[skip ci]
2024-03-13 08:16:16 +00:00
schutzbot
87dce84b90 Post release version bump
[skip ci]
2024-02-28 08:13:32 +00:00
schutzbot
3824c9c868 Post release version bump
[skip ci]
2024-02-26 15:06:35 +00:00
schutzbot
badca79801 Post release version bump
[skip ci]
2024-02-22 11:53:23 +00:00
Gianluca Zuccarelli
26aac90eb4 util/containers: read host config
Add utility function to read the host's container storage config.
2024-02-21 17:55:37 +01:00
schutzbot
c164665db1 Post release version bump
[skip ci]
2024-02-14 08:13:58 +00:00
schutzbot
a85b51bb2c Post release version bump
[skip ci]
2024-02-08 14:03:15 +00:00
schutzbot
21626926f7 Post release version bump
[skip ci]
2024-01-31 17:48:02 +00:00
schutzbot
348438303e Post release version bump
[skip ci]
2024-01-31 08:13:08 +00:00
Brian C. Lane
18e5481ae8 osbuild-depsolve-dnf5: Add libdnf5 based depsolving for Fedora 40
dnf5-json will be used for building Fedora 40 and later.  RHEL and
Fedora < 40 will continue to use python3-libdnf via dnf-json.
2024-01-24 09:55:49 -08:00
schutzbot
c4ff215149 Post release version bump
[skip ci]
2024-01-16 13:48:47 +00:00
schutzbot
25d198da3c Post release version bump
[skip ci]
2024-01-03 08:14:11 +00:00
schutzbot
975057a0a9 Post release version bump
[skip ci]
2023-12-20 08:12:39 +00:00
schutzbot
c53c60e694 Post release version bump
[skip ci]
2023-12-06 08:15:39 +00:00