Archive for May, 2007



Continuing on with my analysis of the Ruby tools, I find that pkgdb.db is really inefficiently mapping files to packages, and packages to origins.

In the given pkgdb.db I have (which is toy in comparison to my server and other desktops’ pkgdb.db files—only 25 installed packages), I am seeing the following pattern (this is completely random [...]

Add to del.icio.us - Digg this article

Behind INDEX-*.db

Seizing the opportunity of having more free time from my internship, I’ve been able to unravel a bit more behind INDEX-*.db’s format.

Based on the information dumped from MySQL 5.0.x’s db_dump185 source, I can see that the Ruby generated the following formatted database:

:categories{Categories}
:db_version
[db specific version string]
:origins
{Package name
Package origin}
:pkgnames
{Package name
Package origin}
:virtual categories
{

{?Virtual Category Name
{complete Virtual Category Package [...]

Add to del.icio.us - Digg this article

So, over the past couple days I’ve been looking over the db code under libc, trying to get a grasp on what needs to be done to get the packaging stuff up and running, and it turns out that my results have been fairly successful. In order to remain fully compatible with the ruby packaging [...]

Add to del.icio.us - Digg this article



About

You are currently browsing the FreeBSD ala Folsom weblog archives for May, 2007.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.