Automagic revision numbers with Perl Modules and SVN

Steve Bertrand steve at
Thu Jun 11 00:07:39 UTC 2009

Hey all,

I've been migrating all of my projects from CVS to SVN (starting over
from the beginning).

All of the projects in question are Perl modules.

Can someone give me a tip on what I have to do in order to prevent the
following when I do a ``make install''?:

FreeBSD: Registering installation in the package database
Cannot create directory /var/db/pkg/bsdpan-EagleUser-1.009: File exists

I'm trying to follow documentation on the 'net, but to no avail.
Following is a patch to how I had the module configured for CVS, and
what I changed to based on what I found on the web for SVN. To be
honest, I'm not a coder, so I don't even know if what I'm changing is in
the proper place or not.

Any guidance to fix the version numbering (especially to fix the FreeBSD
package db) to make it automagic again, is very welcome:

%svn diff -r56
---        (revision 56)
+++        (working copy)
@@ -13,7 +13,7 @@
 @EXPORT = qw(

-$VERSION = sprintf "%d.%03d", q$Revision: 1.9 $ =~ /: (\d+)\.(\d+)/;
+$VERSION = (q$Revision: 1.9 $ =~ /: (\d+)\.(\d+)/;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3233 bytes
Desc: S/MIME Cryptographic Signature
Url :

More information about the freebsd-questions mailing list