Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 186072

Summary: depscan.sh is not tolerate of cruft in /etc/init.d/
Product: Gentoo Linux Reporter: Jared Hulbert <jaredeh>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED NEEDINFO    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jared Hulbert 2007-07-21 07:33:38 UTC
I recently discovered that my system had some gvim~ temp files and a failed merged esound file in it.  This caused depscan.sh -u to report:

/var/lib/init.d/depcache: line 6382: syntax error: unexpected end of file

Removing the crufty files seemed to fix it.

Reproducible: Couldn't Reproduce

Steps to Reproduce:
1. echo "particleman" > /etc/init.d/foo; depscan.sh -u #no failure
2. head -n 43 /etc/init.d/nfs > /etc/init.d/foo; depscan.sh -u # no failure
3. cat /etc/init.d/nfs > /etc/init.d/foo; (add random <<<<< and >>>> to file); depscan.sh -u #no failure

I tried.  I deleted the files and don't have a backup of them.
Comment 1 SpanKY gentoo-dev 2007-07-21 19:51:40 UTC
we've had this in the past and i thought we addressed it

can you post `emerge --info` please
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-07-22 10:47:07 UTC
Depends on how crufty the file in /etc/init.d is I guess. Pretty hard to fix as the reporter cannot reproduce and thus cannot give us enough information.

baselayout-2 should be more robust in this regard btw and I've committed a path to make it even harder incase  something in the init script spits to stdout something it shouldn't.

But we need more info to fix your exact issue.