MJ Ray: Debian: Fun with no builder 3: pbuilder fans to the rescue
Erich
commented:
"Pbuilder is great (and cowbuilder even more so). First of all, it makes setting up and upgrading chroots easier (even easier than dchroot etc.), but it will also handle dependencies and do install/removals (well, technically it won't remove stuff, the chroot is just thrown away afterwards). That way, pbuilder helps getting build dependencies right, and ensures the package is currently buildable (not with some library package you still happen to have on your system, but that has been removed from Debian; not uninstallable for some reason etc.). This makes the job easier for porters, since a FTBFS is less likely to be an error in packaging by the maintainer... At some point I had like 6 pbuilder chroots... woody, sarge, unstable, woody with some backports, sarge with SELinux backports, unstable with experimental. Sure, we don't need debhelper either? After all, it just does some cp and mvs, doesn't it? There IS some benefit in having stuff automatized in a standard way; even though we could all do our chroots ourselves, I want to express my thanks to the pbuilder (and cowbuilder) authors and maintainers for making life EASIER for me. A lot easier. I could live without, but I would probably not keep that many chroots."Ken Bloom added:
"One important feature of a pbuilder chroot is that pbuilder installs build-dependencies as you ask it to build debian packages, and removes them as soon as it finishes building the packages. In this sense, pbuilder is specifically intended to replicate the buildd environment, so you can find out whether your packages will break on a buildd (e.g. whether you've remembered to include all of the build-deps in debian/control, because things will break on the buildds if you forgot to add a build-dep because the build-dep was just lying around on your system (or in your unstable chroot)."Sven M ller wrote:
"Well, pbuilder has several benefits, but the most important one to me is that it restarts from a clean system (only base packages + build-essentials installed) on each build. Sure this adds to the time needed for the build, but it also makes sure that I get all build-deps right and that the whole build process is as reproducible as possible."Ben Hutchings commented:
"The major difference between pbuilder's approach and simply building in a chroot'ed installation is that pbuilder tries to build on a minimal system plus the specified build-dependencies. If you always build with pbuilder or similar it's much less likely that you will miss a build-dependency or otherwise produce a package that can't be auto-built elsewhere."I take the clean chroot point as a clear benefit, but it still strikes me that there are easier ways to do the same thing (rsync --delete) without all the waiting around for pbuilder on my slow mipsel. I guess that's the difference with debhelper: debhelper use doesn't seem to slow me down.
Anyway, I can see now why people spend so much money on cameras, and especially on lenses. And I can tell already that I’m going to want a tripod. Also, I understand now why mid has a 4GB CF. My 2GB CF holds about 200 RAW images, which would be plenty with a point-and-shoot. But with this camera, it goes quickly, since it’s so easy to take multiple pictures in quick succession. Thus far, I haven’t really run into any problems with the camera itself, other than feeling like I need or want more accessories.
It's not as if I think XML is the ultimate thing; (nor is Eclipse an editor
I'd use for configuration files; startup takes years and it frequently crashes
for me. vim also has some XML support...) IMHO there is a lot in XML that
should be stripped (such as attributes); I like JSON syntax better, except
it's in turn lacking essential information such as character encoding,
namespaces and schema information. I also don't thin JSON allows comments.
But when handling information from multiple sources (and multiple schemes),
XML is really useful. It removes most of the quessing needed for handling
other formats.
And that is what I'm precisely advocating: use standardized formats. Consider
for example the apache configuration. Do you know of any tool that can parse
the apache configuration files other than apache? Some parts look like
SGML/XML, but they don't have much more in common than using < and >.
When you are in need of automating something with apache, you'll be annoyed
by this. If apache would be using something where you have a reliable parser
ready for - that would be nice.
Have a look at the xchat.conf configuration file. It uses "key = value", but
they have these extra spaces there and don't use quoting, this means the file
can't be loaded by many parsers, e.g. bash. Now lets use at buttons.conf -
compeltely different syntax, "KEY value" blocks, separated by empty lines...
Btw, note that configuration handling with XML to me means also keeping
comments somehow... most applications will nuke any comments in their
configuration files; which is funny since most configuration syntaxes do have
a notion of comments, but did you ever come across an application using
sh-style configuration (i.e. that you could source in bash/dash/zsh), that
keeps comments?
P.S. The YAML homepage is not YAML. It's valid XHTML. Only if you strip out
all the tags and attributes and use only the text content within
the /html/body/pre tag, then you have something which probably is YAML.
This compatibility with HTML is probably why XML was at all successful.
