dput upload done but dpkg-shlibdeps error for libvirt dependency in buildlog

Asked by Guo, Liang Chang

I successfully uploaded with command
# dput -f ppa:ibmpackages/pmlinux ibmpmlinux-kvm_3.3.2-1_source.changes

Then got a notice from <email address hidden> with messages:
 * Source Package: ibmpmlinux-kvm
 * Version: 3.3.2-1
 * Architecture: ppc64el
 * Archive: ~ibmpackages/ubuntu/pmlinux
 * Component: main
 * State: Failed to build
 * Duration: 1 minute
 * Build Log: https://launchpad.net/~ibmpackages/+archive/ubuntu/pmlinux/+build/10046904/+files/buildlog_ubuntu-trusty-ppc64el.ibmpmlinux-kvm_3.3.2-1_BUILDING.txt.gz
 * Builder: https://launchpad.net/builders/bos01-ppc64el-029
 * Source: not available

ppc64el build of ibmpmlinux-kvm 3.3.2-1 in ubuntu trusty RELEASE
https://launchpad.net/~ibmpackages/+archive/ubuntu/pmlinux/+build/10046904

Checking into the buildlog, the fatal cause was:
dpkg-shlibdeps: error: couldn't find library libvirt.so.0 needed by debian/ibmpmlinux-kvm/opt/ibm/pm/bin/kvmquery_PMLnx (ELF format: 'elf64-powerpcle'; RPATH: '')

I believe this is a launchpad problem, for it fails to handle libvirt* packages (it can install other packages of the building dependencies as expected).

Question information

Language:
English Edit question
Status:
Expired
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
William Grant (wgrant) said :
#1

dpkg-shlibdeps can't find libvirt.so.0 because your package's Build-Depends field doesn't ask for it to be installed. Try adding libvirt-dev to the field in your debian/control.

This isn't anything Launchpad-specific; you can reproduce the problem by building the package in any clean chroot environment. We recommend using a tool such as sbuild to ensure it's clean every time.

Revision history for this message
Guo, Liang Chang (lcguo) said :
#2

Thanks very much for your quick answer.

I have added it to the control file:
Build-Depends: debhelper (>= 9.0.0), libvirt0 (>= 1.1)

Then how can I upload to override the old one with the same version number?
The dput command that I used above with -f option ("force an upload of an already uploaded package") does not work at the remote with <email address hidden>

Rejected:
File ibmpmlinux-kvm_3.3.2.orig.tar.gz already exists in PMLinux, but uploaded version has different contents. See more information about this error in https://help.launchpad.net/Packaging/UploadErrors.
File ibmpmlinux-kvm_3.3.2-1.debian.tar.xz already exists in PMLinux, but uploaded version has different contents. See more information about this error in https://help.launchpad.net/Packaging/UploadErrors.
Files specified in DSC are broken or missing, skipping package unpack verification.

ibmpmlinux-kvm (3.3.2-1) trusty; urgency=medium

  * Initial release for Ubuntu support
--
https://launchpad.net/~ibmpackages/+archive/ubuntu/pmlinux
You are receiving this email because you made this upload.

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.