[hipl-dev] Re: 'bzr version-info' for version.h creation accesses the network

  • From: Miika Komu <mkomu@xxxxxxxxx>
  • To: hipl-dev@xxxxxxxxxxxxx
  • Date: Sat, 13 Nov 2010 05:07:00 +0200

Hi,

On 11/12/2010 05:38 PM, Diego Biurrun wrote:
On Mon, Oct 11, 2010 at 09:51:28PM +0200, Diego Biurrun wrote:
I investigated an old issue that Miika asked me to look into:

mkomu@bling:~/projects/hipl-bzr/trunk$ make version.h
echo "$(bzr version-info . --custom --template="#define BZR_REVISION
\"{revno}\"\n\n#define BZR_BRANCH \"{branch_nick}\"")">  version.h
ssh: Could not resolve hostname hipl.hiit.fi: Name or service not known

It appears that 'bzr version-info' accesses the repository over the
network even though it should not be necessary to get the information.
Nonetheless the above command succeeds and version.h is created fine.

I found the reason behind this error message: It only appears if you work
on a checkout and not a full branch.  So use branches if you wish to work
without network, it's the sensible thing to do anyway :)

I run into this problem (again) and solved the problem by copying version.h from another checkout because I was too impatient to wait for ssh timeout. The problem does not recur with the nightly tarball.

Other related posts: