Thursday, 29 November 2012

procenv now in Debian and Ubuntu: how you can use it

The procenv utility covered in a previous post is now at version 0.15 and also available in Debian Sid and Ubuntu Raring. So, you can do the usual "sudo apt-get install procenv" followed by simply "procenv" to run it. However, due to the way this utility is built, there is a little more you can do. Read on...

procenv runs itself as part of its build (at the end of course :-). What this means is that you can now see what that build environment is like by looking at the build logs:

If you haven't already heard, for the Ubuntu Raring cycle, autopkgtest (DEP-8) tests -- where package builds automatically trigger tests that run on an environment very similar to a "normal" system -- are a hot topic. procenv is DEP-8 enabled, so again, we get to see exactly what such an autopkgtest environment provides.

With this information, you can perform some rather interesting analysis:

  • See the environment a "buildd" provides.
  • Compare a buildd environment versus your "normal" workstation environment.
  • Compare a Debian buildd environment with an Ubuntu build environment.
  • Compare an Ubuntu buildd environment with an autopkgtest environment.
Where this comes in particularly useful is understanding what is going on when your package "FTBFS" (fails to build from source) even though it builds perfectly on your dev box. The same logic applies if your "make check" tests are failing on the builders. By looking at the procenv logs for the same platform and release as the package you are working on, you may find clues as to what is going on. Maybe the tests are being run as an unexpected user. Maybe the package expects a controlling terminal but isn't being given one. Maybe the limits are being set too low for your tests to perform adequately. All of this and more can be gleaned from looking at the procenv build log output.

Please report any bugs you find here.

Friday, 16 November 2012

Procenv 0.8 released

Changes: expanded man page, more sizeof types shown and resource usage details added.

Code is available here:
If anyone is interested in contributing patches for the following, let me know:

  • code to show network details.
  • support for other platforms (I'd like to add AIX, HP-UX, Solaris, i5O/S, MVS/zO/S, VMS) but no longer have access to such systems).

Thursday, 15 November 2012

Upstart 1.6 released

New Upstart Release

Today we released Upstart 1.6, which includes the "stateful re-exec" feature, allowing Upstart to continue to supervise jobs after an upgrade of either itself, or any of its dependent libraries:

This will be available in Ubuntu Raring very soon.

Thanks to all the contributors:

  • A.Costa
  • Colin Watson
  • Eric S. Raymond
  • Jason Conti
  • Loïc Minier
  • Steve Langasek


Like to get involved?

If you'd like to get involved with Upstart Development...

Here's an early draft of what's planned for the next cycle:

If you're interested in contributing, let me know!

Update on Upstart in Debian

... But wait - there's more! Thanks to the efforts of Steve Langasek, Upstart 1.5 is now available in Debian:

Thursday, 1 November 2012