Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 128509 - rpm _solve_name_fmt macro in /etc/rpm/macros.solve is useless
rpm _solve_name_fmt macro in /etc/rpm/macros.solve is useless
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: rpmdb-redhat (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Dennis Gregorovic
Depends On:
Blocks: 156320 169848
  Show dependency treegraph
Reported: 2004-07-23 15:59 EDT by David Lehman
Modified: 2007-11-30 17:07 EST (History)
2 users (show)

See Also:
Fixed In Version: RHEA-2005-784
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-09-28 10:47:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to /etc/rpm/macros.solve to fix _solve_name_fmt definition (404 bytes, patch)
2004-07-23 16:01 EDT, David Lehman
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2005:784 normal SHIPPED_LIVE rpmdb-redhat enhancement update 2005-09-28 00:00:00 EDT

  None (edit)
Description David Lehman 2004-07-23 15:59:38 EDT
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):

How reproducible:

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

Additional info:
Comment 1 David Lehman 2004-07-23 16:01:09 EDT
Created attachment 102184 [details]
Patch to /etc/rpm/macros.solve to fix _solve_name_fmt definition
Comment 2 Jeff Johnson 2004-07-26 09:06:38 EDT
/etc/rpm/macros.solve is owned by rpmdb-redhat, not rpm.

Hmmm, no component for rpmdb-redhat, so "distribution" ...
Comment 4 Dennis Gregorovic 2005-04-10 18:38:51 EDT
Fix checked in.  Need to verify in next tree.
Comment 7 Jay Turner 2005-09-27 11:23:08 EDT
This should have gotten acks.
Comment 8 Red Hat Bugzilla 2005-09-28 10:47:53 EDT
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.


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