Bug 106057 - dbenv->close() happens in wrong directory when doing chroot-installs
Summary: dbenv->close() happens in wrong directory when doing chroot-installs
Keywords:
Status: CLOSED DUPLICATE of bug 103852
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-10-02 12:39 UTC by Enrico Scholz
Modified: 2007-11-30 22:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-05 11:12:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Enrico Scholz 2003-10-02 12:39:17 UTC
Description of problem:

1. mkdir -p /tmp/foo/x
2. rpm -r /tmp/foo --dbpath /x -U setup-2.5.26-1.noarch.rpm
   | rpmdb: /x/Triggername: No such file or directory
   | rpmdb: /x/Triggername: cannot sync: No such file or directory
   | error: db4 error(2) from dbenv->close: No such file or directory

strace shows e.g.

| 17360 rename("/x/__db.Triggername.", "/x/Triggername") = 0
| 17360 open("/x/Triggername", O_RDWR|O_LARGEFILE) = 19
| ...
| 17360 chroot(".")                       = 0
| ...
| 17360 open("/x/Triggername", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or
directory)


Version-Release number of selected component (if applicable):

rpm-4.2.1-0.30

Comment 1 Paul Nasrat 2005-11-29 15:58:13 UTC
This is fixed in upstream rpm, I'm hoping to backport for FC5t2.

Comment 2 Jeff Johnson 2006-08-05 11:12:26 UTC

*** This bug has been marked as a duplicate of 103852 ***


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