<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Nore's FreeBSD Blog</title>
	<atom:link href="http://blogs.freebsdish.org/andenore/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.freebsdish.org/andenore</link>
	<description>Just another FreeBSD Committers Blogs weblog</description>
	<pubDate>Fri, 10 Oct 2008 14:34:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
	<language>en</language>
			<item>
		<title>Nearing end, call for testers</title>
		<link>http://blogs.freebsdish.org/andenore/2008/08/16/nearing-end-call-for-testers/</link>
		<comments>http://blogs.freebsdish.org/andenore/2008/08/16/nearing-end-call-for-testers/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 17:50:36 +0000</pubDate>
		<dc:creator>andenore</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.freebsdish.org/andenore/2008/08/16/nearing-end-call-for-testers/</guid>
		<description><![CDATA[Hi, it&#8217;s nearing the end of GSoC 2008 and I&#8217;ve updated my wiki ( http://wiki.freebsd.org/AndersNore/pkg_improved ) about the pkg_improved project and there are testing instructions for those brave enough. Please test and please report bugs. There are several new features to the pkg-tools and there are some speed improvements made. Lately I&#8217;ve been cleaning some [...]]]></description>
			<content:encoded><![CDATA[<p>Hi, it&#8217;s nearing the end of GSoC 2008 and I&#8217;ve updated my wiki ( http://wiki.freebsd.org/AndersNore/pkg_improved ) about the pkg_improved project and there are testing instructions for those brave enough. Please test and please report bugs. There are several new features to the pkg-tools and there are some speed improvements made. Lately I&#8217;ve been cleaning some of the code mostly fixing bugs and writing documentation in the form of man-pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.freebsdish.org/andenore/2008/08/16/nearing-end-call-for-testers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New pkg_info -M (installtime comparison)</title>
		<link>http://blogs.freebsdish.org/andenore/2008/08/03/new-pkg_info-m-installtime-comparison/</link>
		<comments>http://blogs.freebsdish.org/andenore/2008/08/03/new-pkg_info-m-installtime-comparison/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 22:23:06 +0000</pubDate>
		<dc:creator>andenore</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.freebsdish.org/andenore/2008/08/03/new-pkg_info-m-installtime-comparison/</guid>
		<description><![CDATA[Now the new date feature is doing something useful, I&#8217;ve added an option (-M) to pkg_info which compares installtimes of packages similar to the comparison of versions. So now you can do &#8220;pkg_info -M &#8216;*&#62;2008 07 18&#8242; &#8221; and it will display all pacakges installed after the date YYYY MM DD, you can also use [...]]]></description>
			<content:encoded><![CDATA[<p>Now the new date feature is doing something useful, I&#8217;ve added an option (-M) to pkg_info which compares installtimes of packages similar to the comparison of versions. So now you can do &#8220;pkg_info -M &#8216;*&gt;2008 07 18&#8242; &#8221; and it will display all pacakges installed after the date YYYY MM DD, you can also use the -x or -X option with the -M option. I&#8217;m also planning to make use of this in pkg_delete so you can delete packages within date-ranges. Also pkg_convert will have an option so you can make the installtime of packages (who do not have a @comment DATE field) equal e.g., to the changetime of +DESC in /var/db/pkg/pkgname/ (which is correct for most packages). I&#8217;ve also decided to cache the installtime which makes this operation a lot faster than calling read_plist for every package to find the installtime.</p>
<p>I&#8217;ve also done some improvements to the &#8216;pkg_add -r&#8217; progress indication output, which now displays the speed of the download as well as percentage progress.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.freebsdish.org/andenore/2008/08/03/new-pkg_info-m-installtime-comparison/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New features</title>
		<link>http://blogs.freebsdish.org/andenore/2008/07/21/new-features/</link>
		<comments>http://blogs.freebsdish.org/andenore/2008/07/21/new-features/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 17:56:42 +0000</pubDate>
		<dc:creator>andenore</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.freebsdish.org/andenore/2008/07/21/new-features/</guid>
		<description><![CDATA[Hello, it&#8217;s been a while since I&#8217;ve updated my blog and it was about time. I&#8217;ve come back from my vacation this week and I have added two new features to pkg_improved which I think are nice features to have.
The first feature is that pkg_add registers the installation time (seconds-since-epoch) in +CONTENTS as a &#8220;@comment [...]]]></description>
			<content:encoded><![CDATA[<p>Hello, it&#8217;s been a while since I&#8217;ve updated my blog and it was about time. I&#8217;ve come back from my vacation this week and I have added two new features to pkg_improved which I think are nice features to have.</p>
<p>The first feature is that pkg_add registers the installation time (seconds-since-epoch) in +CONTENTS as a &#8220;@comment DATE: 123124124&#8243;, pkg_info can then see the installation dates of installed ports with the new -n option (for viewing the date in human readable form) or with the -N option (prints out seconds-since-epoch). The reason why I added this is because I&#8217;ve seen people ask how they can get the installation time of packages, and in my opinion I don&#8217;t think that the filesystem should be the only holder of such information (e.g. fetching modification time of files contained in /var/db/pkg/*).</p>
<p>The second feature is dependency fixing (I&#8217;ve seen that portmaster does this), and what it does is to reconstruct the +REQUIRED_BY file for packages being installed with pkg_add or when pkg_create -O option is called from ports. In detail it checks every installed package for a @pkgdep that matches the installing package it add&#8217;s it to the installing package +REQUIRED_BY file. This slows down pkg_add somewhat but I think this should be the correct behaviour for pkg_add.</p>
<p>I&#8217;ve also added a percentage progress status to pkg_add -r (remote fetching packages). You can see instructions for testing the improved tools on my blog: http://wiki.freebsd.org/AndersNore/pkg_improved</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.freebsdish.org/andenore/2008/07/21/new-features/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Vacation</title>
		<link>http://blogs.freebsdish.org/andenore/2008/07/02/vacation/</link>
		<comments>http://blogs.freebsdish.org/andenore/2008/07/02/vacation/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 18:37:43 +0000</pubDate>
		<dc:creator>andenore</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.freebsdish.org/andenore/2008/07/02/vacation/</guid>
		<description><![CDATA[Today I&#8217;m going on a vacation to Greece for one week. I&#8217;ll be back next Thursday (10th). I&#8217;ve polished my project pkg_improved so I think that people could test it out to see if it works. There&#8217;s not a whole lot of change, just some speed gains here and there, you can check the CHANGES [...]]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;m going on a vacation to Greece for one week. I&#8217;ll be back next Thursday (10th). I&#8217;ve polished my project pkg_improved so I think that people could test it out to see if it works. There&#8217;s not a whole lot of change, just some speed gains here and there, you can check the CHANGES file posted for more details. You could also make a diff with /usr/src/usr.sbin/pkg_install/ but you will get a whole lot of syntax changes =(</p>
<p>If you want to test it, then just compile and install (NB! this will replace your normal pkg_* tools). You could always get back your original pkg_* tools by compiling and installing from /usr/src/usr.sbin/pkg_install . If you don&#8217;t want to replace your pkg_* tools you should just compile it and rename the executables (NB! You will not get proper behaviour from ports unless you change some PKG_* variables in /usr/ports/Mk/bsd.port.mk (see PKG_CMD). The first thing you should do after install is to run pkg_convert to cache the existing flat database, after that you don&#8217;t have to run it again unless you use the original pkg_* programs.</p>
<p>There&#8217;s some ideas that I&#8217;ve been looking into like adding date&#8217;s to installed packages (perhaps a @comment in +CONTENTS), recovering +REQUIRED_BY in pkg_add (after e.g. pkg_delete -f zip; pkg_add zip). These should probably be posted to a mailing list, but I&#8217;ll wait until I get home from Greece to post them.</p>
<p>pkg_improved: <a href="http://home.no.net/andenore/pkg_improved.tar.gz">http://home.no.net/andenore/pkg_improved.tar.gz</a></p>
<p>(please e-mail me if you find bug&#8217;s and the like)</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.freebsdish.org/andenore/2008/07/02/vacation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>This weeks updates</title>
		<link>http://blogs.freebsdish.org/andenore/2008/06/26/this-weeks-updates/</link>
		<comments>http://blogs.freebsdish.org/andenore/2008/06/26/this-weeks-updates/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 11:00:01 +0000</pubDate>
		<dc:creator>andenore</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.freebsdish.org/andenore/2008/06/26/this-weeks-updates/</guid>
		<description><![CDATA[This has been somewhat of a amputated week, last weekend I was away for a bicycle race and this weekend I&#8217;m going to a wedding, so it hasn&#8217;t been a lot of time for programming. Anyways I&#8217;ve added human-readable output for pkg_info&#8217;s -s option (the old is also available with the -b option). The environment [...]]]></description>
			<content:encoded><![CDATA[<p>This has been somewhat of a amputated week, last weekend I was away for a bicycle race and this weekend I&#8217;m going to a wedding, so it hasn&#8217;t been a lot of time for programming. Anyways I&#8217;ve added human-readable output for pkg_info&#8217;s -s option (the old is also available with the -b option). The environment variable PKG_DBCACHE_FILE is used to specify where the cache-file is located. And I&#8217;ve added features for the pkg_convert program that checks if key&#8217;s exists within the database and the printing of the data indexed in the database. The pkg_create -O option has been modified to cache information as well and installing ports from /usr/ports/ will then work if you specify the PKG_CMD in /usr/ports/Mk/bsd.port.mk to point to this pkg_create.</p>
<p>I&#8217;m hoping to release a test-version next week so that I can receive comments and bugs which I&#8217;m sure there is. On Thursday next week I&#8217;m going on a one week vacation to Greece so that you will have a good time to test the tools and fill my mailbox <img src='http://blogs.freebsdish.org/andenore/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.freebsdish.org/andenore/2008/06/26/this-weeks-updates/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Progress</title>
		<link>http://blogs.freebsdish.org/andenore/2008/06/19/progress/</link>
		<comments>http://blogs.freebsdish.org/andenore/2008/06/19/progress/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 12:59:36 +0000</pubDate>
		<dc:creator>andenore</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.freebsdish.org/andenore/2008/06/19/progress/</guid>
		<description><![CDATA[Changes 
These are the main things I&#8217;ve done so far some abstract and some more specific, if you want to check out the code  you can get it from the perforce depot:  //depot/projects/soc2008/andenore_pkginstall/
pkg_convert:

 Added a convert program (pkg_convert) that indexes information to PKG_DBCACHE_FILE (defaults to $PKG_DBDIR/pkgcache.db)

pkg_info:

 Improved performance for -W option using the dbcache
A quick profiling of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Changes </strong></p>
<p>These are the main things I&#8217;ve done so far some abstract and some more specific, if you want to check out the code  you can get it from the perforce depot:  //depot/projects/soc2008/andenore_pkginstall/</p>
<p>pkg_convert:</p>
<ul>
<li> Added a convert program (pkg_convert) that indexes information to PKG_DBCACHE_FILE (defaults to $PKG_DBDIR/pkgcache.db)</li>
</ul>
<p>pkg_info:</p>
<ul>
<li> Improved performance for -W option using the dbcache</li>
<li>A quick profiling of pkg_info revealed that  the default behavior for pkg_info was to call read_plist for each package even though not needed so I&#8217;ve added a check for this and it runs significantly faster.</li>
</ul>
<p>pkg_add:</p>
<ul>
<li> Indexes information to dbcache according to the add</li>
</ul>
<p>pkg_delete:</p>
<ul>
<li>&#8220;Deindexes&#8221; information according to the delete</li>
</ul>
<p>lib:</p>
<ul>
<li> Changed methods in match.c to use cache if available</li>
<li>Added global variable &#8216;database&#8217; of type DB* (the database object)</li>
<li>Added database helper functions</li>
</ul>
<p>I&#8217;ve done some quick profiling of pkg_version and it spends much of it&#8217;s time in read_plist too (just to fetch the origin). So I plan to index the origin of each package and speed this up in pkg_version.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.freebsdish.org/andenore/2008/06/19/progress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Getting started</title>
		<link>http://blogs.freebsdish.org/andenore/2008/06/08/getting-started/</link>
		<comments>http://blogs.freebsdish.org/andenore/2008/06/08/getting-started/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 22:37:18 +0000</pubDate>
		<dc:creator>andenore</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.freebsdish.org/andenore/2008/06/08/getting-started/</guid>
		<description><![CDATA[Now I&#8217;m finally done with my exams for the semester and travelled home where I will spend the summer.
This week I started to work on my project which is adding .db support to pkg_install. I have written some database helper functions and a simple converter program that indexes portnames in /var/db/pkg to the database file which [...]]]></description>
			<content:encoded><![CDATA[<p>Now I&#8217;m finally done with my exams for the semester and travelled home where I will spend the summer.</p>
<p>This week I started to work on my project which is adding .db support to pkg_install. I have written some database helper functions and a simple converter program that indexes portnames in /var/db/pkg to the database file which is going to act as a cache rather than a replacement for the whole flat-database. I have rewritten some functions in pkg_info that uses the cache and it works well and seemingly faster although I have not taken time measurements (writing a time comparison script is on my todo-list).</p>
<p>Next week I will continue to improve the converter to index more information that is needed and gradually rewrite the pkg-tools to make use of the database.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.freebsdish.org/andenore/2008/06/08/getting-started/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
