Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50358 - depcache and /sbin/rc errors on boot and after emerge
Summary: depcache and /sbin/rc errors on boot and after emerge
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-07 07:42 UTC by Dane Elwell
Modified: 2004-05-08 01:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/etc/init.d/depscan (depscan.sh,1.26 KB, text/plain)
2004-05-07 15:26 UTC, Dane Elwell
Details
bash -x /etc/init.d/depscan.sh (depscan.sh-x,4.51 KB, text/plain)
2004-05-07 15:26 UTC, Dane Elwell
Details
/var/lib/init.d/depcache (depcache,18.74 KB, text/plain)
2004-05-07 15:28 UTC, Dane Elwell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dane Elwell 2004-05-07 07:42:12 UTC
I've searched the forums, bugzilla and Google and come up with nothing that resembles my problem, so I'm filing a new bug report in the hope that someone can help me fix this problem.

I've just install Gentoo on my Acer TravelMate 220. Nearing the end of the install (not sure where, sorry), and now I'm actually booting to my system, I'm getting a lot of errors. They *only* look like this:

After "*Caching service dependancies..." part of bootup, and after using rc-update, I'm getting plenty of errors like:

/var/lib/init.d/depcache: line 1: 1#: command not found

Then, throughout most of the next steps of bootup I'm getting errors like:

/sbin/rc: line 1: 1#: command not found

This problem doesn't appear to make my system break, except for a few things that aren't related, everything appears to be fine. However, it is unsightly when I'm trying to show off my Gentoo laptop to my collegues. :P

Any help would be nice as I consider this a bug. Thanks.

Reproducible: Always
Steps to Reproduce:
1. Boot up OR rc-update
2.
3.

Actual Results:  
Everything appears fine, but it's rather unsightly and I'd like a resolution if
possible.

Expected Results:  
No errors.

Gentoo Base System version 1.4.10
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5)
=================================================================
System uname: 2.6.5 i686 Mobile Intel(R) Celeron(TM) CPU         1333MHz
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa apm avi berkdb cdr crypt cups curl dga directfb
divx4linux dvd encode fbcon foomaticdb gd gdbm ggi gif gnome gpm gtk gtk2
gtkhtml imagemagick imlib java jikes jpeg kerberos krb4 ldap libg++ libwww mad
mikmod mmx motif mozilla mpeg msn ncurses nls oggvorbis opengl oss pam pcmcia
pdflib perl png pnp python qt quicktime readline samba sdl slang spell sse ssl
svga tcltk tcpd tiff truetype unicode usb wmf x86 xml xml2 xmms xv xvid zlib"
Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-05-07 07:58:51 UTC
take a look at bug #34478, bug #47111, attach your /var/lib/init.d/deptree and /var/lib/init.d/depcache.
Comment 2 Dane Elwell 2004-05-07 15:26:00 UTC
Created attachment 30971 [details]
/etc/init.d/depscan
Comment 3 Dane Elwell 2004-05-07 15:26:47 UTC
Created attachment 30972 [details]
bash -x /etc/init.d/depscan.sh

depscan.sh running with bash -x for debugging.
Comment 4 Dane Elwell 2004-05-07 15:28:24 UTC
Created attachment 30973 [details]
/var/lib/init.d/depcache

My depcache file.

Needless to say, the two bugs pointed out hold nothing that seems to work for
me.
Comment 5 Dane Elwell 2004-05-08 01:01:02 UTC
Fixed it.

Was my own stupidity. I think.

rm /etc/rc.conf
emerge baselayout
vim /etc/rc.conf

Fixed the problem. Not sure why, but it did.