/bin/hostname in buildroots.

David Cantrell dcantrell at redhat.com
Sun Feb 24 21:19:17 UTC 2008


On Sun, 24 Feb 2008 09:54:26 -0500
Jesse Keating <jkeating at redhat.com> wrote:

> On Sat, 23 Feb 2008 22:33:40 -0500
> Dave Jones <davej at redhat.com> wrote:
> 
> > Looking through build logs of various packages, I keep seeing this..
> > 
> > /etc/profile: line 38: /bin/hostname: No such file or directory
> > warning: Could not canonicalize hostname:
> > xenbuilder4.fedora.phx.redhat.com
> > 
> > Should the buildroots provide this by default (imo, yes), or should
> > packages have to explicitly BuildRequires: this ?
> 
> A while ago the requirements changed somewhat in the default buildroot
> set and hostname was no longer pulled in.  However it as of yet has not
> seemed to cause any real problem other than the innocuous error
> message you posted above.  I'm inclined to leave it this way as the
> vast majority of packages (IE everything we've thrown at it so far)
> builds just fine, or errors for other reasons.  If anything actually
> needs that during build it should be explicitly required.

My only gripe is that it makes reading build logs more difficult for no good reason.  If it really is an error that can be ignored, then it'd be nice to not see it in build logs.

-- 
David Cantrell <dcantrell at redhat.com>
Red Hat / Honolulu, HI
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20080224/964f95b4/attachment.sig>


More information about the fedora-devel-list mailing list