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

Bug 5961

Summary: depscan.sh problem
Product: Gentoo Linux Reporter: Maurizio Disimino <kevin>
Component: Current packagesAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED FIXED    
Severity: normal CC: kevin
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: net.ppp0 file
/sbin/depscan.sh

Description Maurizio Disimino 2002-08-03 08:20:18 UTC
using 2.0.23 but i always got this (portage .13,14,..and so on)

emerge courier-imap
[......]
>>> /usr/share/man/man7/authmysql.7.gz -> authlib.7.gz
>>> /usr/share/man/man8/vchkpw2userdb.8.gz -> makeuserdb.8.gz
>>> /usr/share/man/man8/pw2userdb.8.gz -> makeuserdb.8.gz

 * Caching service dependencies...
cat: write error: Broken pipe                                            [ ok ]

Maurizio Disimino
Comment 1 Maurizio Disimino 2002-08-04 09:48:17 UTC
>>> /usr/kde/3/share/applnk/Applications/VMwareWorkstation.desktop

 * Updating /etc/vmware/locations
 * Activating vmware init scripts...
 * vmware added to runlevel default...
 * Caching service dependencies...
cat: write error: Broken pipe                                                  
                                     [ ok ]
 * rc-update complete.

same problem with vmware-workstation

Maurizio Disimino
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-08-07 13:06:02 UTC
Try baselayout-1.8.0, and let me know.
Comment 3 Maurizio Disimino 2002-08-08 02:21:21 UTC
already using 1.8.0
Comment 4 Maurizio Disimino 2002-08-08 04:28:36 UTC
I'm trying to track down this problem.
The problem seems to belong to the check_rcscript() 
function in depscan.sh

I've added a " (( ++kl )) && echo $kl $x" before line 196 to debug.

29 /etc/init.d/net.eth0
30 /etc/init.d/net.lo
31 /etc/init.d/net.ppp0
cat: write error: Broken pipe
32 /etc/init.d/netmount
33 /etc/init.d/nscd

It always occurs with net.ppp0

If you remove net.ppp0 from /etc/init.d the problem disappear.
I should look better those scripts to solve this problem.

Hope this could help you (and prevent you from wasting time :))

Maurizio Disimino
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2002-08-08 08:16:24 UTC
Ok, this makes sense.  It is prob something that is not within a function.
Check if there is any call to cat outside a function .. I will be away
for weekend in a few hours, so wont be able to check it out.  Thanks.
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2002-08-08 08:18:28 UTC
Fine this side.  Please include a copy of your net.ppp0 please.
Comment 7 Maurizio Disimino 2002-08-08 12:59:44 UTC
Created attachment 2921 [details]
net.ppp0 file

my net.ppp0 file. 
I haven't modified it.
btw .. this problem occurs only when depscan.sh is launched from an ebuild.
(ie courier-imap or vmware-workstation)

Maurizio Disimino.
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2002-08-11 16:39:38 UTC
Created attachment 2999 [details]
/sbin/depscan.sh

This version of depscan.sh should fix it.  Basically was if some of the
functions that use a '(cat $1) | read...' combination quit too early,
you got a broken pipe.	Test and let me know.
Comment 9 Maurizio Disimino 2002-08-12 05:20:52 UTC
yeah :) works fine here. 
I've just tried with the vmware-workstation ebuild.