John Goerzen: datapacker
Every so often, I come across some utility that need. I think it must have been written before, but I can't find it.
Today I needed a tool to take a set of files and split them up into directories in a size that will fit on DVDs. I wanted a tool that could either produce the minimum number of DVDs, or keep the files in order. I couldn't find one. So I wrote datapacker.
datapacker is a tool to group files by size. It is perhaps most often used to fit a set of files onto the minimum number of CDs or DVDs.
datapacker is designed to group files such that they fill fixed-size containers (called "bins") using the minimum number of containers. This is useful, for instance, if you want to archive a number of files to CD or DVD, and want to organize them such that you use the minimum possible number of CDs or DVDs.
In many cases, datapacker executes almost instantaneously. Of particular note, the hardlink action can be used to effectively copy data into bins without having to actually copy the data at all.
datapacker is a tool in the traditional Unix style; it can be used in pipes and call other tools.
I have, of course, uploaded it to sid. But while it sits in NEW, you can download the source tarball (with debian/ directory) from the project homepage at http://software.complete.org/datapacker. I've also got an HTML version of the manpage online, so you can see all the cool features of datapacker. It works nicely with find, xargs, mkisofs, and any other Unixy pipe-friendly program.
Those of you that know me will not be surprised that I wrote datapacker in Haskell. For this project, I added a bin-packing module and support for parsing inputs like 1.5g to MissingH. So everyone else that needs to do that sort of thing can now use library functions for it.
Update... I should have mentioned the really cool thing about this. After datapacker compiled and ran, I had only one mistake that was not caught by the Haskell compiler: I said < where I should have said <= one place. This is one of the very nice things about Haskell: the language lends itself to compilers that can catch so much. It's not that I'm a perfect programmer, just that my compiler is pretty crafty.
Today I needed a tool to take a set of files and split them up into directories in a size that will fit on DVDs. I wanted a tool that could either produce the minimum number of DVDs, or keep the files in order. I couldn't find one. So I wrote datapacker.
datapacker is a tool to group files by size. It is perhaps most often used to fit a set of files onto the minimum number of CDs or DVDs.
datapacker is designed to group files such that they fill fixed-size containers (called "bins") using the minimum number of containers. This is useful, for instance, if you want to archive a number of files to CD or DVD, and want to organize them such that you use the minimum possible number of CDs or DVDs.
In many cases, datapacker executes almost instantaneously. Of particular note, the hardlink action can be used to effectively copy data into bins without having to actually copy the data at all.
datapacker is a tool in the traditional Unix style; it can be used in pipes and call other tools.
I have, of course, uploaded it to sid. But while it sits in NEW, you can download the source tarball (with debian/ directory) from the project homepage at http://software.complete.org/datapacker. I've also got an HTML version of the manpage online, so you can see all the cool features of datapacker. It works nicely with find, xargs, mkisofs, and any other Unixy pipe-friendly program.
Those of you that know me will not be surprised that I wrote datapacker in Haskell. For this project, I added a bin-packing module and support for parsing inputs like 1.5g to MissingH. So everyone else that needs to do that sort of thing can now use library functions for it.
Update... I should have mentioned the really cool thing about this. After datapacker compiled and ran, I had only one mistake that was not caught by the Haskell compiler: I said < where I should have said <= one place. This is one of the very nice things about Haskell: the language lends itself to compilers that can catch so much. It's not that I'm a perfect programmer, just that my compiler is pretty crafty.
A few days ago, I just screwed the samba packages maintenance.
It's been quite some time since we were preparing Samba 3.2.0 packages. Upstream has not published a release version, only pre-releases. The release was planned for next week but will not happen as some last minutes issues have been found in pre-releases.
Anyway, we had ready packages for 3.2.0 pre-release 2....which were planed to go to experimental.
However, these packages were under preparation for quite a while, so when I finally agreed with Steve Langasek that it's OK to upload, I built and uploaded the packages. Then got a good laugh when discovering that I forgot "UNRELEASED" as target in debian.changelog.
It was late, I then "s/UNRELEASED/unstable" as I often do in such case....then uploaded...then forgot about the issue and went to something else.
The package went through NEW (it has a new binary package) and 1 or 2 days later quietly entered unstable.
...which I discovered only the next day, when it was way too late to remove from unstable something that was meant for experimental.
All this explains why samba packages now use an epoch...:-)
Things are back to normal now. Unstable has 1:3.0.28a-2 and experimental will hopefully have 3.2.0~pre2 soon.
Next week I go to the Samba annual conference. I'll probably spend some time hunting down some bugs in the package and discuss with upstream about some of the issues we have (old bugs, FHS patch, upstream's .deb packages). And maybe also get better ideas about Samba 3.2.x schedule, to be able to decide with Steve and Noel which release is the target for lenny: 3.0.28* or 3.2.x.
Where, oh, where do I start with this one??
If you are writing free software, choose your license appropriately. This can
make a big difference with respect to adoption of your software.I'll just show you an excerpt from a Debian changelog:

Chronicle
I Just released NBD 2.9.10. It had been upcoming for a while already,
with a few interesting patches being applied. In addition, some bugfixes
were applied to subversion, and some more interesting things had
happened. Really, a release was getting overdue. Sometimes life just
intervenes.
Anyway, apart from the upstream release, I of course also did a
Debian update of these packages, which also contains some changes that
had been pending for a while. Combined, the changelog mentions five
different bugs of which none are l10n bugs, which is a record (there had
been 5-bug uploads before, but those did include l10n bugs). On top of
that, I closed some other outstanding bugs which really had been closed
a while back, but either I forgot to close the bug, or I forgot that
there even was a bug in the first place.
I should stop slacking so much.
While preparing this upload, it occurred to me that nbd has come a
long way since I got involved with it back in 2001. The original
nbd-server that Pavel Macheck had written did work well, but it was a
bit of a hack; it did not fork() upon startup or anything similar, so
starting it was a pain. It could only serve one device at a time. It was
not documented. It had no concept of a configuration file. The code,
frankly, was also bit of a mess; it was written on a hack night, and not
much design had gone into it.
I guess it was no surprise, then, that no single distribution had a
package for nbd at the time. I only packaged it because I actually had
some use for nbd; at the time, I'd just bought quickstep, my first
functional m68k machine, and had installed Debian on its 250MB hard
disk. However, running a buildd on that machine proved problematic, to
say the least; with so little disk space, you could hardly boot Debian,
and due to speed and clock skew issues, NFS was not an option. So I went
with NBD, which worked great. After a while, quickstep got a bigger hard
disk (it has an 18G disk today), so diskspace was less of an issue at
that point; but, well, I'd been maintaining it already, and that was
fun, so I didn't think of giving up.
When Pavel lost interest in nbd back in 2003, he gave maintenance of
the kernel bits to Paul Clements, and maintenance of the userspace bits
to me. I promptly went ahead with what I thought should have been done
already, but felt reluctant to do at the time to suggest that:
refactoring the code, adding features, etc. Today, nbd-server
does support all of the above things of which I mentioned it
was lacking; and, probably as a result of that, apart from Debian, there
are now packages of nbd in, at least, SuSE, Fedora, Gentoo, uClibc, and
FreeBSD (the latter obviously only containing the server).
Well—the fact that LTSP uses it might have something to do with
it, too ;-)
That's not to say there's nothing left to be done, but I'm quite
happy about how far we've come. Really.

I was recently forced to face
Today's bugs:
Went to the