public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] baselayout ebuild
       [not found] <E161BT3-0008Hn-00@cvs.gentoo.org>
@ 2001-11-06 21:04 ` Aaron D. Brooks
  2001-11-07 15:03   ` Chris Houser
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron D. Brooks @ 2001-11-06 21:04 UTC (permalink / raw
  To: gentoo-dev

After my own stupidity of being bitten, not once, but twice by the perl
build breaking because localhost was not in /etc/hosts I decided to plunk
around and figure out if that omission was intentional or not. It seems to
me that the baselayout ebuild (all versions that I have checked) is
broken.

The /etc/hosts file that is distributed in rc-scripts-(blah).tar.bz2 has
only comments and no real entries. The baselayout ebuild tries to append a
localhost line to /etc/hosts in src_install() but never makes it; it
returns before it gets to that point for the common case:
        #skip this if we are merging to ROOT
        [ "$ROOT" = "/" ] && return

I'm not sure that appending the localhost entry is the right thing to do
anyway. If I upgrade from one version of baselayout to another I will
accumulate localhost entries to my /etc/hosts. I don't think that
localhost need to be added dynamically -- it's a static entry.

I would suggest that this be added to the /etc/hosts in the rc-scripts
archive:

127.0.0.1	localhost.localnet	localhost

and that the /etc/networks in rc-scripts be changed from:

loopback	127.0.0.0

to:

localnet	172.0.0.0

The reason that I suggest these particular changes is that they are, I
belive, the most cannonical with regard to some DNS clients and tools.

-Aaron




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-dev] baselayout ebuild
  2001-11-06 21:04 ` [gentoo-dev] baselayout ebuild Aaron D. Brooks
@ 2001-11-07 15:03   ` Chris Houser
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Houser @ 2001-11-07 15:03 UTC (permalink / raw
  To: gentoo-dev

Aaron D. Brooks wrote:                [Tue Nov  6 2001, 11:02:22PM EST]         
> I would suggest that this be added to the /etc/hosts in the rc-scripts
> archive:
> 
> 127.0.0.1	localhost.localnet	localhost

I think you want to swap those last two -- make 'localhost' the
canonical name, not 'localhost.localnet'.

> and that the /etc/networks in rc-scripts be changed from:
> 
> loopback	127.0.0.0
> 
> to:
> 
> localnet	172.0.0.0

Looks good.  I can make those changes to rc-scripts and whack the other
attempts to add localhost to /etc/hosts, unless someone objects.

How do I upload the new rc-scripts tarball to ibiblio?  Any tricks?

--Chouser



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-11-07 22:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E161BT3-0008Hn-00@cvs.gentoo.org>
2001-11-06 21:04 ` [gentoo-dev] baselayout ebuild Aaron D. Brooks
2001-11-07 15:03   ` Chris Houser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox