Bug 980502
Summary: | libguestfs is not able to be built with yum cache from multiple repos | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Tomas Tomecek <ttomecek> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.5 | CC: | bfan, kdudka, leiwang, lkong, ttomecek, wshi |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libguestfs-1.20.9-7.el6 | Doc Type: | Bug Fix |
Doc Text: |
(This is a build-time problem, and does not need to be documented)
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-11-21 04:45:44 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Tomas Tomecek
2013-07-02 14:23:11 UTC
Cheers, yes this is a bug and I'll include this shortly. I fixed this in a slightly different way: --- a/libguestfs.spec +++ b/libguestfs.spec @@ -548,7 +548,8 @@ if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then extra= else mkdir repo - find /var/cache/yum -type f -name '*.rpm' -print0 | xargs -0 cp -t repo + # -n 1 because of RHBZ#980502. + find /var/cache/yum -type f -name '*.rpm' -print0 | xargs -0 -n 1 cp -t repo createrepo repo cat > yum.conf <<EOF [main] Well, your fix is much more secure than mine. I verified it and it works very well. Thank you. Hello Tomas, May I know you verified this bug with developer's patch or a new build package? If only using patch, could you please help us to verify it with libguestfs-1.20.9-7.el6, thanks (In reply to bfan from comment #5) > Hello Tomas, > May I know you verified this bug with developer's patch or a new build > package? > > If only using patch, could you please help us to verify it with > libguestfs-1.20.9-7.el6, thanks I've just rebuilt it (with multiple yum repos enabled) and it passed. This was the problematic part (no errors or even warnings anymore): + mkdir repo + find /var/cache/yum -type f -name '*.rpm' -print0 + xargs -0 -n 1 cp -t repo So, I can verify that the bug is fixed. Hello Tomas, As I see, this bug occurred when build the libguestfs package, I spent time to read libguestfs.spec and try to build the package,but failed. It would be easier for you to build the libguestfs package than me, so could you help to reproduce and verify this bug with the latest version of libguestfs: libguestfs-1.20.11-2.el6 ? Thanks & Best regards Hello Tomas, As I see, this bug occurred when build the libguestfs package, I spent time to read libguestfs.spec and try to build the package,but failed. It would be easier for you to build the libguestfs package than me, so could you help to reproduce and verify this bug with the latest version of libguestfs: libguestfs-1.20.11-2.el6 ? Thanks & Best regards Hello Tomas, Thanks for your help. Also, I checked libguestfs.spec of libguestfs-1.20.11-2.el6, it have been changed like Comment 3. So, this bug is fixed. 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-2013-1536.html |