Bug 772697

Summary: libvirt-devel grew a dependency on systemtap, preventing installs on ppc
Product: Red Hat Enterprise Linux 6 Reporter: Daniel Berrangé <berrange>
Component: libvirtAssignee: Martin Kletzander <mkletzan>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 6.3CC: acathrow, dallan, dyuan, mzhan, rwu, ydu
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-0.9.10-1.el6 Doc Type: Bug Fix
Doc Text:
No Documentation needed
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 06:46:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Berrangé 2012-01-09 17:12:51 UTC
Description of problem:
Attempting to build the latest perl-Sys-Virt RPM, I encountered an unresolvable
dependency in Systemtap on PPC architectures:

http://download.devel.redhat.com/brewroot/work/tasks/7361/3927361/root.log

DEBUG util.py:256:  Error: Missing Dependency: kernel-devel is needed by
package systemtap-1.6-4.el6.ppc (build)


The problem is that 'kernel-devel' is not built on PPC architecture in RHEL-6.
So AFAICT, there is no way that the 'systemtap' RPM can ever be installed on
the PPC archictecture, despite it being built.


NB, the root cause here is technically a systemtap (see bughttps://bugzilla.redhat.com/show_bug.cgi?id=772693) , but I don't think we should have a dep on systemtap in libvirt-devel in the first place.

This appears to be coming because we copy the examples/systemtap scripts in %doc. IIUC, if we remove the 'execute' bit from the *.stp files, then the RPM auto-dep extractor should not add this bogus dep.


Version-Release number of selected component (if applicable):
libvirt-0.9.9-1.el6

How reproducible:
Always (on ppc arch)

Steps to Reproduce:
1. yum install libvirt
2.
3.
  
Actual results:
DEBUG util.py:256:  Error: Missing Dependency: kernel-devel is needed by
package systemtap-1.6-4.el6.ppc (build)

Expected results:
libvirt can be installed without pulling in systemtap


Additional info:

Comment 4 Martin Kletzander 2012-01-17 18:20:34 UTC
Fixed in commit 34364f43e9ddd02f5996aa44b58d52e0753e8064
Author: Martin Kletzander <mkletzan>
Date:   Fri Jan 13 13:40:56 2012 +0100

Permission change for systemtap examples.

Execute bit on *.stp files in examples/systemtap/ caused dependency when building RPM packages. Disabling execute permission should help the auto dependency resolver to see that systemtap is not needed.

Comment 7 yanbing du 2012-02-15 11:20:35 UTC
Since we have no ppc machine to install libvirt and verify this bug, so just check the dependency of libvirt-devel-0.9.10-1.el6.ppc64.rpm

# rpm -qpR libvirt-devel-0.9.10-1.el6.ppc64.rpm
/usr/bin/pkg-config  
libvirt-client = 0.9.10-1.el6
libvirt-qemu.so.0()(64bit)  
libvirt.so.0()(64bit)  
pkgconfig  
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(VersionedDependencies) <= 3.0.3-1
rpmlib(PayloadIsXz) <= 5.2-1

There no dependency about  /usr/bin/stap, so move to VERIFIED.

Comment 8 Martin Kletzander 2012-05-03 13:13:01 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No Documentation needed

Comment 10 errata-xmlrpc 2012-06-20 06:46:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-0748.html