Hide Forgot
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
(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.
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.
I'd probably use: config_opts['chroot_setup_cmd'] = 'install buildsys-build xz-lzma-compat'
As far as I understand, there is nothing to fix in the curl package.