On Mon, Nov 25, 2024 at 14:48:34 +0100, Filippo Ferrando Damillano via Users wrote:
Hi, i'm a CS Student who is trying to build a full rpm of libvirt
out of a
fork <
https://gitlab.com/filippo-ferrando/libvirt-sd> because i need to add
a scheduler to the libvirt configuration.
I successfully builded the source code but i cannot manage to build a
working .rpm executable, i'm using a Alma9 machine, and the original .spec
file from the build of the repo.
When i try to use rpmbuild, it goes until meson.build says that a file
called `meson.build` is missing in the directory, even if the file itself
exists.
my fork is based on the master branch at tag 10.9.0
i'll include in the mail the log from meson and the spec file i'm using,
We have our own spec file; read below.
thank to everyone for the help!
The simplest way to build RPMs of libvirt is:
in your build directory
(the one where you are able to successfuly build the current tree) to
do
1) ensure that you have all dependencies installed first:
# dnf builddep libvirt
2) Change to the build directory of the current checkout and run
$ cd /path/to/builddir/libvirt
$ meson dist
This creates a tarball, look for the output:
Created /home/pipo/build/libvirt/gcc/meson-dist/libvirt-10.10.0.tar.xz
3) Since the tarball contains a spec file build it directly using:
$ rpmbuild -tb /path/to/tarball
RPMs will end up in ~/rpmbuild/RPMS.
--
------------------------
[snipped build log]