I did an emerge -U world tonight, and it may have broken depcache- which despite being familar with linux I have no idea how this dohicky dependency tracking thing you guys have works- There is the possibilities that unmerging the sysvinit package caused this- I emerge'd baselayout tonight which I had to unmerge sysvinit to do this (I was trying to get the net scripts to recognize the ip style setup) Reproducible: Always Steps to Reproduce: 1. emerge any package 2. env-update 3. depscan.sh / depcache /etc Actual Results: env-update >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... /var/lib/init.d/depcache: line 2467: syntax error: unexpected end of file * Can't find service 'modules' needed by 'crypto-loop'; continuing... * Can't find service 'hostname' needed by 'domainname'; continuing... * Can't find service 'logger' needed by 'exim'; continuing... * Can't find service 'hostname' needed by 'fcron'; continuing... * Can't find service 'localmount' needed by 'gpm'; continuing... * Can't find service 'localmount' needed by 'numlock'; continuing... * Can't find service 'localmount' needed by 'rmnologin'; continuing... * Can't find service 'localmount' needed by 'alsasound'; continuing... * Can't find service 'logger' needed by 'apache'; continuing... * Can't find service 'localmount' needed by 'bootmisc'; continuing... * Can't find service 'hostname' needed by 'bootmisc'; continuing... * Can't find service 'modules' needed by 'checkfs'; continuing... * Can't find service 'localmount' needed by 'clock'; continuing... * Can't find service 'localmount' needed by 'consolefont'; continuing... Expected Results: i cannot remember what the original output is like # emerge info Portage 2.0.50-r11 (amd64, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.7-hardened-r7) ================================================================= System uname: 2.6.7-hardened-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" COMPILER="" 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="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://ibiblio.org/pub/Linux/distributions/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.seren.com/gentoo http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ http://gentoo.ccccom.com ftp://gentoo.ccccom.com http://ftp-mirror.internap.com/pub/gentoo/ ftp://ftp-mirror.internap.com/pub/gentoo/ http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo http://gentoo.netnitco.net ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://mirror.tucdemonic.org/gentoo/ http://mirror.clarkson.edu/pub/distributions/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/ http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/source ftp://ftp.ndlug.nd.edu/pub/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.llarian.net/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.binarycompass.org http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.eliteitminds.com http://www.gigaload.org/gentoo.org/ http://chod.cwru.edu/gentoo ftp://chod.cwru.edu/gentoo http://gentoo.cs.lewisu.edu/gentoo/ ftp://linux.cs.lewisu.edu/gentoo/" u.edu/gentoo/ ftp://linux.cs.lewisu.edu/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acl acpi aim alsa amd64 berkdb crypt cscope dlloader esd fam fbcon gd gdbm gif gnome gphoto2 gpm gps gstreamer gtk gtk2 hardened icq imlib ipv6 java jpeg maildir mbox motif mozilla mpeg ncurses nls oggvorbis opengl oscar pam perl pfa pic pie png prelude python qt quicktime readline slang spell ssl tcltk tcpd tiff truetype unicode xinerama xml xml2 xmms xosd zlib" I have tried both stable and unstable baselayout, also AFAIK sysvinit and baselayout should not conflict with each other? however at this time they do. I am not sure what all you would like to know- please inform me.
Created attachment 41126 [details] depcache Updated error: (also I made a mistake since then when adding my own init script for apache- thus the error there) # /sbin/depscan.sh * Caching service dependencies... /var/lib/init.d/depcache: line 2002: syntax error: unexpected end of file * Cannot add provide 'apache', as a service with the same name exists! * Can't find service 'modules' needed by 'crypto-loop'; continuing... * Can't find service 'hostname' needed by 'domainname'; continuing... * Can't find service 'logger' needed by 'exim'; continuing... * Can't find service 'hostname' needed by 'fcron'; continuing... * Can't find service 'localmount' needed by 'gpm'; continuing... * Can't find service 'localmount' needed by 'numlock'; continuing... * Can't find service 'localmount' needed by 'alsasound'; continuing... * Can't find service 'logger' needed by 'apache'; continuing... * Can't find service 'localmount' needed by 'bootmisc'; continuing... * Can't find service 'hostname' needed by 'bootmisc'; continuing... * Can't find service 'modules' needed by 'checkfs'; continuing... * Can't find service 'localmount' needed by 'clock'; continuing... * Can't find service 'localmount' needed by 'consolefont'; continuing...
chances are it's because you have a mistake in one of the init.d scripts or a config file try running it through `strace -f -eopen -o out` and verify that all the files it reads are correct (no syntax errors) one way you could test this is (you should get no errors): $ bash $ source /etc/init.d/* $
get back to us
Ooops - yes, all apologies. Someone in the hardened channel on freenode took a look for me, and despite my protests- it seems that somewhere in one of the upgrades one of the init scripts got borked. I fixed that, and naturally the problem went away. Thanks.