Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 106844
Summary: | %_solve_dbpath macro is wrong / rpmdb-fedora package | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michael Schwendt <bugs.michael> |
Component: | rpmdb-redhat | Assignee: | Elliot Lee <sopwith> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | chris.ricker, gczarcinski |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-10-25 18:42:00 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: | |||
Bug Depends On: | |||
Bug Blocks: | 100643, 107852 |
Description
Michael Schwendt
2003-10-11 17:52:59 UTC
Ooops! This also breaks rpm's --aid option. With rpmdb-fedora-0.95-0.20031022 in raawhide, the /etc/rpm/macros.solve appears fixed. --redhatprovides still doesn't work: [kaboom@skuld kaboom]$ rpm -q --redhatprovides xpdf error: cannot open Packages index using db3 - No such file or directory (2) error: cannot open Packages database in /usr/lib/rpmdb/i386-redhat-linux/redhat no package provides xpdf [kaboom@skuld kaboom]$ There needs to be a s/rpmdb-redhat/rpmdb-fedora/g run against /etc/rpm/macros.solve but other than that it looks good Hmm, the bug isn't in macros.solve after all; /usr/lib/rpm/rpmpopt-4.2.1 defines: rpm alias --redhatprovides -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatprovides \ --POPTdesc=$"find package name that contains a provided capability (needs rpmdb-redhat package installed)" rpm alias --redhatrequires -q --define '_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat' --whatrequires \ --POPTdesc=$"find package name that contains a required capability (needs rpmdb-redhat package installed)" changing those paths to /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/fedora gets further, but then it dies trying to open /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/fedora/Providename, which doesn't exist Interesting. Providename gets created once you run the rpm -q --redhat* as root. It still doesn't work after that, though Looks like the problem is that the alternate rpm db files in fedora are empty: [kaboom@skuld fedora]$ db_dump Packages VERSION=3 format=bytevalue type=hash db_pagesize=4096 HEADER=END DATA=END [kaboom@skuld fedora]$ ls -l total 412 -rw-r--r-- 1 root root 16384 Oct 23 14:01 __db.001 -rw-r--r-- 1 root root 1318912 Oct 23 14:01 __db.002 -rw-r--r-- 1 root root 458752 Oct 23 14:01 __db.003 -rw-r--r-- 1 root root 12288 Oct 22 03:03 Packages -rw-r--r-- 1 root root 12288 Oct 23 14:01 Providename -rw-r--r-- 1 root root 12288 Oct 23 14:02 Requirename [kaboom@skuld fedora]$ I am not sure if the new package in rawhide is correct of not but the list of files provided by rpmdb-fedora-0.95-0.20031010.i386.rpm which is on the test3 isos and the package now in rawhide differ significantly: rpm -qlp /home/redhat/severn/i386/RedHat/RPMS/rpmdb-fedora-0.95-0.20031010.i386.rpm /etc/rpm/macros.solve /usr/lib/rpmdb/i386-redhat-linux/fedora /usr/lib/rpmdb/i386-redhat-linux/fedora/Basenames /usr/lib/rpmdb/i386-redhat-linux/fedora/Conflictname /usr/lib/rpmdb/i386-redhat-linux/fedora/Dirnames /usr/lib/rpmdb/i386-redhat-linux/fedora/Filemd5s /usr/lib/rpmdb/i386-redhat-linux/fedora/Group /usr/lib/rpmdb/i386-redhat-linux/fedora/Installtid /usr/lib/rpmdb/i386-redhat-linux/fedora/Name /usr/lib/rpmdb/i386-redhat-linux/fedora/Packages /usr/lib/rpmdb/i386-redhat-linux/fedora/Providename /usr/lib/rpmdb/i386-redhat-linux/fedora/Provideversion /usr/lib/rpmdb/i386-redhat-linux/fedora/Pubkeys /usr/lib/rpmdb/i386-redhat-linux/fedora/Requirename /usr/lib/rpmdb/i386-redhat-linux/fedora/Requireversion /usr/lib/rpmdb/i386-redhat-linux/fedora/Sha1header /usr/lib/rpmdb/i386-redhat-linux/fedora/Sigmd5 /usr/lib/rpmdb/i386-redhat-linux/fedora/Triggername rpm -ql rpmdb-fedora /etc/rpm/macros.solve /usr/lib/rpmdb/i386-redhat-linux/fedora /usr/lib/rpmdb/i386-redhat-linux/fedora/Packages For --redhat{provides,requires} see bug #106843. rpmdb-fedora-0.95-0.20031024 fixes this for me: * macros.solve: %_solve_dbpath is correct * --aid: works again |