Bug 713381 - xz-lzma-compat required to build curl but not listed as BuildRequires in spec file
Summary: xz-lzma-compat required to build curl but not listed as BuildRequires in spec...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: curl
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kamil Dudka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-15 08:58 UTC by Robin Bowes
Modified: 2011-06-20 13:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-20 13:48:51 UTC
Type: ---


Attachments (Terms of Use)

Description Robin Bowes 2011-06-15 08:58:33 UTC
curl requires lzma (from xz-lzma-compat) to build. I am rebuilding the F15 version of curl on EL5 (CentOS 5.6). xz-lzma-compat is not included by default on that platform so curl will not rebuild under mock (without hacking in an additional build dep in the mock profile).

xz-lzma-compat should be added as a BuildRequires in the spec file, eg:

BuildRequires: xz-lzma-compat

This is curl-7.21.3-6.fc15.src.rpm

Comment 1 Paul Howarth 2011-06-15 09:14:05 UTC
(In reply to comment #0)
> curl requires lzma (from xz-lzma-compat) to build. I am rebuilding the F15
> version of curl on EL5 (CentOS 5.6). xz-lzma-compat is not included by default
> on that platform so curl will not rebuild under mock (without hacking in an
> additional build dep in the mock profile).
> 
> xz-lzma-compat should be added as a BuildRequires in the spec file, eg:
> 
> BuildRequires: xz-lzma-compat
> 
> This is curl-7.21.3-6.fc15.src.rpm

Actually tweaking the mock profile might be a better option. You only need xz because the upstream tarball used in the F15 build is xz-compressed, which can be handled natively by rpm in F15. If upstream's bzip-compressed tarball was used then there wouldn't be a need for xz at all. So it's more of a distribution issue than a curl-specific one and if you're planning to backport various F15 packages to EL5 then you're likely to hit this issue in lots of places.

Comment 2 Robin Bowes 2011-06-15 09:23:12 UTC
Hey Paul,

I'd forgotten that just using the F15 RPMs doesn't work (because of the need for libcurl.so.3), which is why I ended up using your packages before! And I'm going back to using them again.

For this issue, I worked around by adding this to epel-5-i386.cfg:

config_opts['more_buildreqs']['curl-7.21.3-6.el5'] = 'xz-lzma-compat'

How do I add that for *all* packages? Just omit the package name?

R.

Comment 3 Paul Howarth 2011-06-15 09:28:11 UTC
I'd probably use:

config_opts['chroot_setup_cmd'] = 'install buildsys-build xz-lzma-compat'

Comment 4 Kamil Dudka 2011-06-20 13:48:51 UTC
As far as I understand, there is nothing to fix in the curl package.


Note You need to log in before you can comment on or make changes to this bug.