Red Hat Bugzilla – Bug 128509
rpm _solve_name_fmt macro in /etc/rpm/macros.solve is useless
Last modified: 2007-11-30 17:07:03 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510
Description of problem:
/etc/rpm/macros.solve contains definitions of _solve_pkgsdir and
_solve_name_fmt. The problem is that the definition of of
_solve_name_fmt should probably have %_solve_pkgsdir prepended so
people will see that _solve_name_fmt needs the full path to the solve dir.
As it is, people will think rpm actually evaluates both macros when
looking for solution packages. Since rpm in fact only looks at
_solve_name_fmt, it would be preferable for the include solution
macros to define a working/useful _solve_name_fmt macro.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Set up a package repository
2. try using it to solve transaction deps by running rpm -i --aid
--define '_solve_pkgsdir /path/to/pkgrepo/' foo.rpm (from somewhere
other than in the package repo)
Actual Results: rpm was unable to locate the solution package repo
and the transaction failed because of unresolved deps
Expected Results: rpm finds needed package in package repo and solves
transaction deps, installing foo.rpm successfully
Created attachment 102184 [details]
Patch to /etc/rpm/macros.solve to fix _solve_name_fmt definition
/etc/rpm/macros.solve is owned by rpmdb-redhat, not rpm.
Hmmm, no component for rpmdb-redhat, so "distribution" ...
Fix checked in. Need to verify in next tree.
This should have gotten acks.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.