Archive for the 'Development' Category

VUXML - doing it faster

Monday, January 23rd, 2012

It takes a long time for FreshPorts to process a new vuln.xml file. A very long time. Why? Because it process all entries in the file. Every time.
Anton Berezin proposed an idea. I paraphrase, but in brief, he said:
Figuring out what changed is as easy as hashing an entry and […]

Upgrades over the weekend..

Monday, January 23rd, 2012

A number of new features have recently gone into FreshPorts. Each of which has been written above before. I will outline the changes, and provide a link to the original post about that feature.

svn coming soon… - FreshPorts now handle commit from three mailing lists: cvs-doc, cvs-ports, and svn-src-all.
What ports are dependant upon […]

The committer field is not always an email address

Tuesday, November 1st, 2011

This issue was brought to my attention by wxs (Wesley Shields). The issue is evident at http://www.freshports.org/graphs2.php. When you get there, click on click on Commits Over Time by Committer and then wait for the page to load.
Scroll down to the D’s. There you’ll see a few committers suffixed with ‘(ports committer)’.
Looking […]

Fixes for vuxml processing

Sunday, October 2nd, 2011

In my previous post, I mentioned problems encountered with processing vuxml entries for horde4-imp. The problem was not specific to a particular port, but came to light because a vuln was registered for a port, and then later removed. I tracked down the cause to not clearing out statistics before processing the new […]

mail/horde4-imp vulnerability

Sunday, September 25th, 2011

Mr Thomas wrote me regarding mail/horde4-imp and a particular vulnerability. Specifically, he figured that a recent commit (link to mail archives) fixed a bad entry in vuxml. Let’s look into that now.
I first compared dev, beta, and production. All three had the port flagged as vulnerable. This situation is indicated by […]

commits without files

Saturday, September 24th, 2011

In short, the concept of any computer system is usually straight forward. The complexity comes from the exceptions. Take commits for example. Yes, each commit affects a file. Or so you’d think. Consider this commit.
FreshPorts parses the email. In that email, there are no files mentioned. This caused […]

svn coming soon…

Saturday, September 17th, 2011

A while back, the src tree for FreeBSD moved to svn. The ports tree is still on cvs. For some time now, http://svn.freshports.org/ has been including the svn commits. But now, as old mailing lists become inactive, it’s time to start integrating things into the main websites.
The dev and beta websites have […]

Wrong prefix on some pathnames

Monday, August 8th, 2011

As mentioned in the comments of my previous post, some commits have been processed with an incorrect prefix. That is, some pathnames are missing the src/ part of the path.
I just went looking…
I found interesting stuff. 1233 rows of interesting stuff.
For example:

SELECT *
FROM element_pathname
WHERE pathname NOT LIKE ‘/ports/%’
[…]

Missing src commits

Monday, August 8th, 2011

Alex wrote in to mention that FreshSource was missing some src commits. In fact, he wrote twice. I’m glad he did. I replied to his first post saying that I was seeing www commits… He pointed out that no src commits were turning up.
OH!
I checked my local mailing list archive (i.e. a […]

Doing commits in the correct order

Friday, April 15th, 2011

Lately, I’ve been thinking and writing about how to list ports that depend upon this port. Today, another special situation arose: doing commits out of order.
Case in question: this commit support for databases/php5-sqlite3 to lang/php5-extensions.
The lang/php5-extensions commit was at 15:52:14. However, databases/php5-sqlite3 was not created until 15:54:29.
I am not sure how to best […]