Hi,

> Here's two more ways:
> 
> 1) dumping the index
>       cd /var/lib/rpm
>       db_dump -p Providename

[r...@matterhorn rpm]# /usr/lib/rpm/bin/db_dump -p Providename |grep -A1
-B1 gdbm
 \00\00\03O
 gdbm
 \00\00\03\d9
 gdbm-debug\ac
 \00\00\03T
 gdbm-devel\ac
 \00\00\04v
 gdbm-static\95
 \00\00\08\b2
 gdbm.so()(64bit)
 \00\00\00\1c
 gdbmmodule.so()(64bit)
 \00\00\08\ec
--
 \00\00\09|
 libgdbm.so.3()(64bit)
 \00\00\03\d9
 libgdbm_compat.so.3()(64bit)
 \00\00\03\d9


> 2) add debug to the line in /usr/lib/rpm/macros that configures
> the Providename table/index.

[r...@matterhorn rpm]# rpm -q --provides gdbm-devel
gdbm-devel = 1.8.3-5ark
[r...@matterhorn rpm]# rpm -q --whatprovides gdbm-devel
<-- db3open(0x21f9340,Providename,0x7fffd6f4d848) dbi 0x21fd590 rc 0
        flags: 0x500<AUTO_COMMIT,RDONLY>
<--
db3associate(0x21fa780(Packages),0x21fd590(Providename),0x7f2e0e76af30,0x0)
rc 0
        flags: 0x0
--> rpmmiInit(0x21f9340, Providename, 0x21f9240[0]="gdbm-devel") dbi
0x21fd590 mi 0x21fe0e0
--> rpmmiNext(0x21fe0e0) dbi 0x21fd590(Providename)
<-- db3copen(0x21fd590,(nil),0x21fe110,0x0) dbc 0x21fe210 rc 0
<-- db3cget(0x21fd590,0x21fe210,0x7fffd6f4d8d0,0x7fffd6f4d870,0x1b) rc
-30988
        flags: DB_SET
          key: 0x21fd570[10]    0x0     "gdbm-devel"
         data: (nil)[0] 0x400<USERMEM>
<--
rpmmiGet(0x21fd590(Providename),0x21fe210,0x7fffd6f4d8d0,0x7fffd6f4d870,0x1b)
rc -30988
<-- db3close(0x21fd590,0x0) rc 0

> I'm at FOSDEM so its a bit awkward to check in code. Expect the fixes
> early next week.

Thanks, enjoy FOSDEM!

ttyl
bero

______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org

Reply via email to