You are not logged in.

#1 2024-08-18 19:01:06

Bronek
Member
From: London
Registered: 2014-02-14
Posts: 123

[SOLVED] libvirt 10.6.0-1 missing systemd files

I was trying to build my own copy of libvirt package version 10.6.0-1, and I noticed that the package I built is missing systemd unit files. Obviously first thing was to compare my package sources against sources at https://gitlab.archlinux.org/archlinux/ … ibvirt.git , but there are no differences at all. Both are identical. It appears that for some reason these files are simply not packaged into the libvirt-1:10.6.0-1-x86_64.pkg.tar that I've built, but they are in the official mirror.

Then I looked at the makepkg output and noticed libfakeroot errors:

libvirt/images /var/lib/libvirt/filesystems /var/lib/libvirt/boot'          
==> Tidying install...                                                                
  -> Removing libtool files...
  -> Purging unwanted files...                                                        
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
libfakeroot internal error: payload not recognized!                          
libfakeroot internal error: payload not recognized!             
libfakeroot internal error: payload not recognized!                
  -> Compressing man and info pages...                                                
==> Checking for packaging issues...                                                  
==> WARNING: Package contains reference to $srcdir
usr/lib/libvirt.so.0.10006.0                                                          
usr/lib/libvirt/connection-driver/libvirt_driver_network.so
usr/lib/libvirt/connection-driver/libvirt_driver_storage.so
usr/lib/libvirt/connection-driver/libvirt_driver_lxc.so                      
usr/lib/libvirt/lock-driver/lockd.so                                                  
usr/lib/libvirt/storage-backend/libvirt_storage_backend_disk.so    
usr/lib/libvirt/libvirt_iohelper                                                                                                                                            
usr/lib/libvirt/libvirt_lxc                                                           
usr/bin/virt-ssh-helper    
==> Creating package "libvirt"...                                                     
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...                                                        
  -> Compressing package...                                                           

Checking fakeroot history I see that "libfakeroot internal error: payload not recognized!" message was added in version 1.35.1 (as seen at https://launchpadlibrarian.net/73661322 … -1.diff.gz ) which just got released, and I wonder if this could be causing the problem ? Comparing package history, the official libvirt 10.6.0 package would have been built with fakeroot version 1.35 and not 1.35.1 (because libvirt 10.6.0 is one week old, and fakeroot 1.35.1 is 4 days old) so perhaps that's causing some files to be dropped ?

Can anyone please try to reproduce this ?

Last edited by Bronek (2024-08-18 20:47:54)

Offline

#2 2024-08-18 20:38:48

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,150

Re: [SOLVED] libvirt 10.6.0-1 missing systemd files

This has nothing to do with fakeroot and there is no package corruption here - it is simply a packaging bug, the systemd dependency is missing. It was implicitly pulled until recently.

Offline

#3 2024-08-18 20:47:25

Bronek
Member
From: London
Registered: 2014-02-14
Posts: 123

Re: [SOLVED] libvirt 10.6.0-1 missing systemd files

Yes ! Thank you - this fixed it !

diff --git a/PKGBUILD b/PKGBUILD
index 5633e9b..e79fb0c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,14 +7,14 @@
 pkgname=(libvirt libvirt-storage-gluster libvirt-storage-iscsi-direct)
 epoch=1
 pkgver=10.6.0
-pkgrel=1
+pkgrel=2
 pkgdesc="API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)"
 arch=('x86_64')
 url="https://libvirt.org/"
 license=('LGPL-2.1-or-later'
          'GPL-3.0-or-later') # libvirt_parthelper links to libparted
 depends=('libpciaccess' 'yajl' 'fuse3' 'gnutls' 'parted' 'libssh' 'libxml2'
-'numactl' 'polkit' 'libnbd' 'libnl')
+'numactl' 'polkit' 'libnbd' 'libnl' 'systemd')
 makedepends=('meson' 'libxslt' 'python-docutils' 'lvm2' 'open-iscsi' 'libiscsi' 'glusterfs'
              'bash-completion' 'dnsmasq' 'iproute2' 'qemu-base')
 optdepends=('libvirt-storage-gluster: Gluster storage backend'

Offline

#4 2024-08-24 12:37:27

Smoerrebroed
Member
From: Germany
Registered: 2011-07-24
Posts: 110

Re: [SOLVED] libvirt 10.6.0-1 missing systemd files

Didn't fix it for me - I have systemd installed anyway - but still packages appear to build successfully.

Offline

#5 2024-08-24 12:40:20

Bronek
Member
From: London
Registered: 2014-02-14
Posts: 123

Re: [SOLVED] libvirt 10.6.0-1 missing systemd files

Well yes - this packages does build successfully anyway, that's not the problem. The problem is that when you install it, the libvirtd.service and other systemd files are not there. They get removed if you did an upgrade; meaning you can no longer start libvirtd

Offline

Board footer

Powered by FluxBB