Bug 123005 - --root and --aid looks for rpmdb in --root
Summary: --root and --aid looks for rpmdb in --root
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-05-11 09:23 UTC by Leonard den Ottolander
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-05-12 02:27:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Leonard den Ottolander 2004-05-11 09:23:11 UTC
rpm-4.3.1-0.3

A --root --aid install to an empty root system fails because rpm looks
for the rpmdb defined in %_solve_dbpath relative to --root instead of
the source system.

However %_solve_pkgsdir is interpreted as being relative to the source
system. This is inconsistent, and it makes it necessary to install the
rpmdb in the destination tree before one can proceed.

Comment 1 Jeff Johnson 2004-05-11 23:03:50 UTC
Suggestions from the outer root are not necessarily pertinent
to a chroot contained in that root, e.g. the os may be a different
version.

Comment 2 Leonard den Ottolander 2004-05-11 23:48:51 UTC
In case of a different version %_solve_pkgsdir is pointing to the
wrong directory anyway.

Thus you can just as well interprete %_solve_dbpath as being relative
to the source system as well.

This is inconsistent.


Comment 3 Leonard den Ottolander 2004-05-12 00:01:21 UTC
Let me explain a bit more.

When doing a --root --aid install you draw your macros from /etc/rpm/
in the source system. Thus it is inconsitent to interpret one of the
paths as being relative to the source system and the other as being
relative to the destination system.

In the case of installing a different version in the chroot both
%_solve_pkgsdir and %_solve_dbpath need to be reset accordingly.
Either you interprete both as relative to the source system (which is
more maintainable) or both as relative to the destination system (in
which case it would be more consistent to take the macros from
/etc/rpm/ in the chroot anyway).


Comment 4 Jeff Johnson 2004-05-12 02:27:24 UTC
Override the macros on the command line using --define.


Comment 5 Leonard den Ottolander 2004-05-12 07:04:58 UTC
That still doesn't fix the inconsistency between rpm interpreting
%_solve_dbpath as relative to the destination and %_solve_pkgsdir as
relative to the source.


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