Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: Gentoo-Dev <gentoo-dev@g.o>
From: Martin Schlemmer <azarah@g.o>
Subject: baselayout-1.8.6.7
Date: 12 May 2003 02:00:34 +0200
Hiya

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 runscript.sh
  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!

Roadmap:
- 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 rc-daemon.sh, 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 1.4.3.7 (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
use
      symlinks in $svcdir/{need,use,before,after,provide} anymore, but
rather
      create a file that can be sourced.  Seems to speedup things
nicely.
    - Add /sbin/rc-services.sh.  This is basically a module to get
dependency
      info from the new $svcdir/deptree, and some other new service
functions.
    - Modify the whole works to *only* source all needed files once. 
This
      includes /sbin/{functions.sh,rc-services.sh,rc-daemon.sh}.  Also
      rc-services.sh will only source $svcdir/deptree once. 
/sbin/runscript.sh
      is sourced more than once (actually each time a service is started
or
      stopped, but is is cut down much).  Also seems to speed things up
again.
    - Fix a long outstanding bug in gendepend.awk that caused the 'net'
      dependency to not be actually used in shutdown, causing the
services
      needing it to be stoped before net.* services.
    - Add the RC_PARALLEL_STARTUP variable, with
schedule_service_startup() to
      /sbin/rc-services.sh and /etc/conf.d/rc.  This is experimental
parallel
      startup of services, and seems to work nicely.  Only issues to
date is
      that printing of messages is not synced, and a race very
intermittantly
      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
"yes"
      or "no"; if it is not present, it is considered as "yes":

      depend() {
          parallel yes|no
      }
      
      Modified cachedepend.awk, gendepend.awk and /sbin/rc-services.sh.
    - 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
properly.
      Fix /etc/init.d/{checkroot,bootmisc} to use SOFTLEVEL instead of
BOOT.

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

    Major rework of /lib/rcscript/awk/gendepend.awk, cleaning it up
nicely,
    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
user's
    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
bash
    shells;  modified /etc/profile.

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

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

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

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

      Dropped use of 'cat' in bash scripts, '$(<$file)' is there for
that
      purpose.  Modified:
    
        /etc/init.d/net.ppp0
        /etc/init.d/nscd
        /sbin/functions.sh
        /sbin/rc
        /sbin/rc-daemon.sh
        /sbin/rc-envupdate.sh.bash
        /sbin/runscript.sh

      Exchanged some gratuitous use of awk for grep. Awk is a little
resource
      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:

        /etc/init.d/modules
        /etc/init.d/serial
        /sbin/functions.sh
        /sbin/modules-update

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

        /sbin/rc-envupdate.sh
        /sbin/rc-envupdate.sh.bash
        /sbin/rc-update

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

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

        /sbin/rc
        /sbin/rc-envupdate.sh
        /sbin/rc-envupdate.sh.bash
----------------------------------------------------------------------


Regards,

-- 

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


Attachment:
signature.asc (This is a digitally signed message part)
Replies:
Re: baselayout-1.8.6.7
-- 山倉 真
Re: baselayout-1.8.6.7
-- Matthias Liertzer
Re: baselayout-1.8.6.7
-- Sebastian Bergmann
Re: baselayout-1.8.6.7
-- Daniel Robbins
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: Ebuild Janitor Project -- Any formalities tojoining it?
Next by thread:
Re: baselayout-1.8.6.7
Previous by date:
Re: which contribution prefered - to gentoo or to project itself?
Next by date:
Re: baselayout-1.8.6.7


Updated Jun 17, 2009

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.