Comment 6 for bug 1248627

Revision history for this message
follower (78luphr0rnk2nuqimstywepozxn9kl19tqh0tx66b5dki1xxsh5mkz9gl21a5rlwfnr8jn6ln0m3jxne2k9x1ohg85w3jabxlrqbgszpjpwcmvkbcvq9spp6z3w5j1m33k06tlsfszeuscyt241h-launchpad-a811i2i3ytqlsztthjth0svbccw8inm65tmkqp9sarr553jq53in4xm1m8wn3o4rlwaer06ogwvqwv9mrqoku2x334n7di44o65qze67n1wneepmidnuwnde1rqcbpgdf70gtqq2x9thj5tlcsac) wrote :

I just encountered this issue while attempting to build kicad via homebrew on OS X using this recipe: https://github.com/shaneburrell/homebrew-kicad

According to diagnostics, I am using: "revision 4561 of branch http://bazaar.launchpad.net/~kicad-testing-committers/kicad/testing"

I'm assuming the recipe doesn't use http://bazaar.launchpad.net/~kicad-testing-committers/kicad/testing/view/head:/scripts/kicad-install.sh given that script is only targeted at "compatible linux system".

It turns out that this issue could actually be considered a bug in bzr itself and there's actually an issue in the Bazaar tracker for it: "bzr refuses to commit with no username and no mailname" <https://bugs.launchpad.net/bzr/+bug/884502>

AFAICT the error itself occurs here: http://bazaar.launchpad.net/~kicad-testing-committers/kicad/testing/view/head:/CMakeModules/download_boost.cmake#L189 as I got the error message:

[ 40%] committing pristine boost files to 'boost scratch repo'
    bzr ci -q -m pristine /tmp/kicad-vxpd/.downloads-by-cmake/boost_1_54_0/src/boost
    bzr: ERROR: Unable to determine your name.
    Please, set your name with the 'whoami' command.
    E.g. bzr whoami "Your Name <email address hidden>"

However, given that the use of bzr in this case is merely to track Boost it doesn't seem reasonable to require a KiCad user to configure a username that's never actually going to be seen anywhere.

I suspect a more thorough workaround (which would also be cross-platform) would be use Bazaar's ability to have a non-global username set using the `--branch` option to `bzr whoami`: http://wiki.bazaar.canonical.com/BzrSettingEmail#Setting_email_via_the_.27whoami.27_command_.28version_0.9_and_higher.29

From a brief look at the code I think adding it at <http://bazaar.launchpad.net/~kicad-testing-committers/kicad/testing/view/head:/CMakeModules/download_boost.cmake#L205> would work with something like this:

   COMMAND bzr whoami --branch "Nobody <email address hidden>"

This would mean a kicad user building from source need not be concerned with how bzr is configured at all.

(Some related notes of mine can be found here: http://www.labradoc.com/i/follower/p/notes-kicad#20131222 )