Bug 106057

Summary: dbenv->close() happens in wrong directory when doing chroot-installs
Product: [Fedora] Fedora Reporter: Enrico Scholz <rh-bugzilla>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED DUPLICATE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: herrold, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-05 11:12:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***