Gentoo Archives: gentoo-dev

From: Martin Schlemmer <azarah@g.o>
To: Gentoo-Dev <gentoo-dev@g.o>
Cc: Daniel Robbins <drobbins@g.o>, Bob Johnson <livewire@g.o>, Jay Pfeifer <pfeifer@g.o>
Subject: [gentoo-dev] baselayout-
Date: Mon, 12 May 2003 00:01:13
Message-Id: 1052697634.22183.26.camel@nosferatu.lan

I have commited a new version of baselayout ... please test as
a lot of things changed.

New features/improvements to note:
- Updated the dependency system to try and touch files less.
  For example, dependencies are calculated in
  now without the symlink method, but rather with env variables.
  Also, all helper scripts should be sourced only once for
  any series of services started, or during a runlevel change.
- Supports starting services in parallel (need to set
  'RC_PARALLEL_STARTUP="yes"' in /etc/conf.d/rc).  There are
  still a few issues with it, namely it do not sync messages
  for services in order, but I am working on that.
- Lots of fixes.

The main purpose of this release is speed, so I would like to
get feedback on that.  Also, if anything seems to behave differently
than expected. please let me know.

NOTE: be sure to run env-update to catch all changes!

- Get all issues with the parallel startup resolved.  First
  part of this will be to see if its possible to get a
  message system going that will output properly (and not
  out of order) without too much overhead.
- Add bootsplash support (work already done by Jay Pfeifer and
  Bob Johnson).
- A full (more sane) rewrite of, and then actually
  getting rc-scripts to use it.
- A rewrite of the networking stuff.  Wout did offer to start on
  this, so I will check with him, and if not, at least try to get
  a more modular (being able to add routing, etc modules to each
  net.* service individually) setup going.

Full ChangeLog:
* rc-scripts (11 May 2003)

  11 May 2003; Martin Schlemmer <azarah@g.o>:

    Too many things to remember, so here is changes of note:
    - More changes to gendepend.awk.  This basically modifies it to not
      symlinks in $svcdir/{need,use,before,after,provide} anymore, but
      create a file that can be sourced.  Seems to speedup things
    - Add /sbin/  This is basically a module to get
      info from the new $svcdir/deptree, and some other new service
    - Modify the whole works to *only* source all needed files once. 
      includes /sbin/{,,}.  Also will only source $svcdir/deptree once. 
      is sourced more than once (actually each time a service is started
      stopped, but is is cut down much).  Also seems to speed things up
    - Fix a long outstanding bug in gendepend.awk that caused the 'net'
      dependency to not be actually used in shutdown, causing the
      needing it to be stoped before net.* services.
    - Add the RC_PARALLEL_STARTUP variable, with
schedule_service_startup() to
      /sbin/ and /etc/conf.d/rc.  This is experimental
      startup of services, and seems to work nicely.  Only issues to
date is
      that printing of messages is not synced, and a race very
      that causes a service to be started when it was already scheduled.
    - Add a new dependency type 'parallel' that can be used to control
if a
      service can be started in paralled or not.  Possible arguments is
      or "no"; if it is not present, it is considered as "yes":

      depend() {
          parallel yes|no
      Modified cachedepend.awk, gendepend.awk and /sbin/
    - Fix the 'single' runlevel to actually work properly, and without a
      /etc/runlevels/single directory.
    - Remove the BOOT variable, and update /sbin/rc to set SOFTLEVEL
      Fix /etc/init.d/{checkroot,bootmisc} to use SOFTLEVEL instead of

  08 May 2003; Martin Schlemmer <azarah@g.o>:

    Major rework of /lib/rcscript/awk/gendepend.awk, cleaning it up
    and adding more sanity checks.

  04 May 2003; Martin Schlemmer <azarah@g.o>:

    Revert /etc/init.d/hostname the way it was, as it should be the
    choice if he want to have a FQDN in there or not, bug #14946.

    Add /etc/init.d/domainname for those that want to use it.

  29 Apr 2003; Martin Schlemmer <azarah@g.o>:

    Change the root check back the way it was, else it breaks with non
    shells;  modified /etc/profile.

  29 Apr 2003; Martin Schlemmer <azarah@g.o>:

    Change test in /etc/profile for root to '[ "$EUID" -eq 0 ]', bug

  27 Apr 2003; Martin Schlemmer <azarah@g.o>:

    Add various patches from Rachel Holmes <rach@×××.net>:

      Dropped use of 'cat' in bash scripts, '$(<$file)' is there for
      purpose.  Modified:

      Exchanged some gratuitous use of awk for grep. Awk is a little
      hungry just for a simple test. (I [azarah] did not apply the
changes to
      tests for 'devfs', as having 'usbdevfs' in the equation will break
      things).  Modified /sbin/rc for this.

      Gentoo enforces having /proc, so uname -r is a little redundant
when the
      information is available without an external command.  Modified:


      Changed 'id -u' commands to use $EUID in bash executed scripts,
      result no extra command.  Modified:


      Removed all the cat sections, and the separate echo sections.  The
      is _exactly_ the same, minus some spare spaces that have been
      Fourfold speed increase in the (granted flimsy) tests I have done.
      Modified /sbin/ for this.

      Final remaining 'cat' commands removed, in favour of using bash's
      '$(< )' or 'echo'.  Use of echo leads the way to future support
for bash's
      i18n anyway.  Modified:




Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa


File name MIME type
signature.asc application/pgp-signature


Subject Author
Re: [gentoo-dev] baselayout- YAMAKURA Makoto <makoto@×××××××××××.jp> (=?iso-2022-jp?B?GyRCOzNBUhsoQiAbJEI/PxsoQg==?=)
[gentoo-dev] Re: baselayout- Daniel Robbins <drobbins@g.o>
[gentoo-dev] Re: baselayout- Sebastian Bergmann <sb@××××××××××××××××××.de>
Re: [gentoo-dev] baselayout- Matthias Liertzer <linux@××××××××.at>