| Building Software |
|
To any seasoned system administrator, building and installing third party packages is, at least for most packages, a simple task. And indeed, things have dramatically improved from the earlier days of UNIX where Chaos seemed to reign, and portability doomed. A number of tools have emerged to make the lives of developers, but also of adminitrators easier.
What is unfortunate is that these tools really only address part of the problem about distributing a software in source form for it to be built on various OS types, versions, and in random environments. They do not provide fool proof methods for building software, and won't keep you from shooting yourself in the foot.
The following principles should be viewed as a set of strong recommendations to be followed by people in charge of building third party software. These are relatively generic rather than specific to the "swpkg philosophy", and simply try to promote sane habits and methods for building software.
PATH variable properly: Noone wants to end up with a
piece of software depending on binary found under your home directory!
The "swpkg philosophy" and above
principles are implemented by the swb tool included in
swpkg. The main design goal behind swb is to
automate the build process as much as possible while leaving the user in
complete control over the build. Among other things, this means that:
The previous tools included with swpkg (prior to version 0.50)
resulted in a very manual and fastidious process for building software. In
contrast, swb allows for entire builds to happen with a
single command line invocation when specific (and relatively common)
conditions are met. And even in the worst cases, the process is far less
manual than it used to be with the older tools.
© 2001-2008 - Christophe Kalt