Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5961 - depscan.sh problem
Summary: depscan.sh problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-03 08:20 UTC by Maurizio Disimino
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Attachments
net.ppp0 file (net.ppp0.txt,7.21 KB, text/plain)
2002-08-08 12:59 UTC, Maurizio Disimino
Details
/sbin/depscan.sh (depscan.sh,7.49 KB, text/plain)
2002-08-11 16:39 UTC, Martin Schlemmer (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
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.