[buildd-tools-devel] Proposal for wanna-build client configuration change

Roger Leigh rleigh at codelibre.net
Fri Jul 24 20:37:04 UTC 2009


Currently, both buildd and sbuild call wanna-build via an SSH
connection in order to update the wanna-build database status.
While both tools are doing the same job, they currently use
different code to do this.  It would be great to unify this,
but this will require unifying the currently different
configuration key names and configuration file variables.
(The key names are the important bit; unifying the configuration
file variable names is just a tidying exercise, and will be
done backward compatibly, checking both old and new option names.)

The changes I'd like to make are detailed below.  I'd appreciate
any comments anyone might have on the proposal.

Configuration keys:

┌──────────────────┬───────────────────────────────┬─────────────────────────┐
│ buildd           │ sbuild                        │ unified                  │
├──────────────────┼───────────────────────────────┼─────────────────────────┤
│ WANNA_BUILD_DB   │ WANNABUILD_DATABASE           │ WANNA_BUILD_DB_NAME     │
│ WANNA_BUILD_USER │ AUTO_GIVEBACK_WANNABUILD_USER │ WANNA_BUILD_DB_USER     │
│ SSH_USER         │ AUTO_GIVEBACK_USER            │ WANNA_BUILD_SSH_USER    │
│ n/a              │ AUTO_GIVEBACK                 │ n/a                     │
│ SSH_HOST         │ AUTO_GIVEBACK_HOST            │ WANNA_BUILD_SSH_HOST    │
│ SSH_SOCKET       │ AUTO_GIVEBACK_SOCKET          │ WANNA_BUILD_SSH_SOCKET  │
│ SSH_OPTIONS      │ n/a                           │ WANNA_BUILD_SSH_OPTIONS │
└──────────────────┴───────────────────────────────┴─────────────────────────┘

Configuration file variable names:

buildd.conf:
  $wanna_build_db
  $wanna_build_user
  $ssh_user
  $ssh_host
  $ssh_socket
  @ssh_options

sbuild.conf:
  N/A (only specifiable on the command-line)

unified (to be used in both buildd.conf and sbuild.conf):
  $wanna_build_db_name
  $wanna_build_db_user
  $wanna_build_ssh_user
  $wanna_build_ssh_host
  $wanna_build_ssh_socket
  $wanna_build_ssh_options (as hashref)


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.



More information about the Buildd-tools-devel mailing list