In RHEL5.9, rpm-build macros dereferences the xz binary.

Solution Unverified - Updated -

Issue

  • The file /usr/lib/rpm/macros uses %{_bindir} to dereference the xz binary for decompressing tar files compressed with xz.
  • When building an RPM whose prefix is not /usr (such as /usr/local) rpmbuild will try to use /usr/local/bin/xz instead of /usr/bin/xz to decompress the source .tar.xz file and fail.
  • Other compression binary references in /usr/lib/rpm/macros (unzip, bzip2, gzip, etc.) use absolute pathnames and are not dereferenced.

Environment

  • Red Hat Enterprise Linux 5.9
  • rpm-4.4.2.3-32.el5_9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.