Gentoo Archives: gentoo-dev

From: Martin Schlemmer <azarah@×××××××××.net>
To: Gentoo-Dev <gentoo-dev@g.o>
Subject: [gentoo-dev] possible problems with baselayout-1.6.3 ?
Date: Sun, 16 Sep 2001 18:35:32
Message-Id: 1000685813.25149.6.camel@nosferatu.lan
1 hi
2
3 ok, due to sertain factors, i rather merged from baselayout-1.5.4 to
4 baselayout-1.6.3 (yes, i know not supported ;-))
5
6 now, i foresee a problem with baselayout-1.6.3's ebuild.
7 it does not create /etc/runlevels when merging with '/' as root, which
8 for merging from rc5 system is a problem, also if /etc/runlevels is
9 shot, removing it and remerging baselayout-1.6.3 could be an answer, but
10 not with the current .ebuild.
11
12 here is a proposed fix:
13
14 baselayout-1.6.3.ebuild.diff:
15 --------------cut here---------------------
16 *** baselayout-1.6.3.ebuild.orig Sun Sep 16 17:21:53 2001
17 --- baselayout-1.6.3.ebuild Sun Sep 16 17:26:50 2001
18 ***************
19 *** 200,206 ****
20 rm ${S}/init.d/runscript.c
21
22 #skip this if we are merging to ROOT
23 ! [ "$ROOT" = "/" ] && return
24
25 #set up default runlevel symlinks
26 local bar
27 --- 200,209 ----
28 rm ${S}/init.d/runscript.c
29
30 #skip this if we are merging to ROOT
31 ! #[ "$ROOT" = "/" ] && return
32 ! #only skip this if /etc/runlevels exists
33 ! #can also be useful if updating from rc5 system
34 ! [ "$ROOT" = "/" ] && [ -d /etc/runlevels ] && return
35
36 #set up default runlevel symlinks
37 local bar
38 -------------cut here------------------------
39
40 greetings
41 MS