Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30271 - When emerging: "awk: cmd. line:2: (FILENAME=/etc/init.d/xfs FNR=290) warning: ... "
Summary: When emerging: "awk: cmd. line:2: (FILENAME=/etc/init.d/xfs FNR=290) warning:...
Status: RESOLVED CANTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-03 13:23 UTC by Jean Jordaan
Modified: 2005-02-27 23:28 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean Jordaan 2003-10-03 13:23:18 UTC
Since my last portage update (I'm on portage-2.0.49-r7 now) I see this every
time I emerge a package:

"""
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
awk: cmd. line:2: (FILENAME=/etc/init.d/xfs FNR=290) warning: error writing
standard output (Broken pipe)                                                  
      
"""

The only reference to this specific issue that I could find is this
forum post: http://forums.gentoo.org/viewtopic.php?p=552508#552508

However, I don't see any of the other problems (fix-db.pl) discussed at
that topic, and I have no idea what causes the awk error.


Reproducible: Always
Steps to Reproduce:
1. emerge anything
2. wait
3. read the last few lines of portage output.

Actual Results:  
Picking a random emerge:

>>> /usr/lib/libSDL_image-1.2.so.0 -> libSDL_image-1.2.so.0.1.2

>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
awk: cmd. line:2: (FILENAME=/etc/init.d/xfs FNR=290) warning: error writing
standard output (Broken pipe)                                                  
      [ ok ]
>>> media-libs/sdl-image-1.2.3 merged.

>>> clean: No packages selected for removal.


Expected Results:  
The line starting with 'awk' should not be there.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-08 16:56:19 UTC
Please run 'depscan.sh' as root, and report output.
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-27 11:37:00 UTC
Should be fixed by -r15 of portage.
Comment 3 Jean Jordaan 2003-10-27 12:43:01 UTC
klippie jean # emerge --version
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r2, 2.4.20-gentoo-r1)
klippie jean # emerge xmmsctrl
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/xmmsctrl-1.6-r1 to /
>>> md5 src_uri ;-) xmmsctrl-1.6.tar.gz
>>> Unpacking source...
[...]
>>> original instance of package unmerged safely.
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
awk: cmd. line:2: (FILENAME=/etc/init.d/xfs FNR=290) warning: error writing
standard output (Broken pipe)                                           
           [ ok ]
>>> media-sound/xmmsctrl-1.6-r1 merged.
>>> clean: No packages selected for removal.
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
awk: cmd. line:2: (FILENAME=/etc/init.d/xfs FNR=290) warning: error writing
standard output (Broken pipe)
                                                                        
    [ ok ]
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
klippie jean # depscan.sh 
 * Caching service dependencies...                                      
    [ ok ]
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-27 12:52:05 UTC
Nick, ideas will be welcome ?
Comment 5 Jean Jordaan 2003-11-10 06:33:28 UTC
I updated portage yesterday. After emerging Python-2.3.2-r1, I see 
some "Broken pipe" errors that look related to the awk ones .. 

>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
cat: write error: Broken pipe
cat: write error: Broken pipe
cat: write error: Broken pipe
cat: write error: Broken pipe
cat: write error: Broken pipe
cat: write error: Broken pipe
cat: write error: Broken pipe                                           
 [ ok ]
>>> dev-lang/python-2.3.2-r1 merged.
['dev-lang/python', '2.1.1', 'r0'] ['dev-lang/python-2.1.3-r1', 'dev-lang/python-2.2.3-r1',
'dev-lang/python-2.3.2-r1', 'dev-lang/python-2.1.1']
!!! COUNTER file is missing for dev-lang/python-2.1.1 in /var/db.
!!! Please run /usr/lib/portage/bin/fix-db.pl or
!!! Please run /usr/lib/portage/bin/fix-db.py or
!!! remerge the package.

Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2003-12-24 13:53:15 UTC
I don't actually have any ideas on this.

Only thing I can assume is something in the environment from
portage is affecting it. It's not running within sandbox, so
I don't know what might be causing the problems.

Could try replacing settings with 'os.environ.copy()' in the
spawn call for depscan.sh.
Comment 7 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-02-05 04:55:31 UTC
Hi all,

I am running portage-2.0.49-r21 and have exactly the same problem.
And: Since this error started, I get a 2nd error with esearch-0.5.2:

haim@itchy haim $ esearch
Traceback (most recent call last):
  File "/usr/bin/esearch", line 3, in ?
    from output import bold, red, green, darkgreen, turquoise, nocolor
ImportError: No module named output

Is there any solution to this issue yet, or at least a workaround?
Greetings, Matthias
Comment 8 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-02-08 06:02:58 UTC
update: I upgraded to portage version 2.0.50_pre21 and still have the same
problem :(
Comment 9 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-02-10 01:23:44 UTC
... same error with "final" portage-2.0.50.
Comment 10 Matthias F. Brandstetter (RETIRED) gentoo-dev 2004-02-14 15:15:41 UTC
Two things:

1.) Problem with esearch was due an error in a PATH setting in esearch program.

2.) Workaround for portage bug is to remove /etc/init.d/xfs (found in Gentoo forums).

Greetings, Matthias
Comment 11 Alexander Steppke 2004-04-26 10:12:40 UTC
After trying an emerge system and updating python I got similar problems:

awk: cmd. line:1: (FILENAME=/etc/init.d/net.wlan0 FNR=333) fatal: print to "standard output" failed (Broken pipe)
awk: cmd. line:1: (FILENAME=/etc/init.d/xfs FNR=295) warning: error writing standard output (Broken pipe)

emerge --version gives:
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.4.22-gentoo-r3)

Running depscan.sh did not resolve the problem unfortunately.
Comment 12 Alexander Steppke 2004-04-26 17:07:35 UTC
After a updating several packages, including awk and python (from 2.2.3 to 2.3.3) the error dissapeared. 

Hope this helps as a potential fix. 
Comment 13 Brian Harring (RETIRED) gentoo-dev 2005-02-27 23:28:07 UTC
Closing.  This can't be a portage bug- no awk usage.  You're hitting a complaint from the awk scripts that do caching of inter-dependencies for init scripts (I've seen this on occasion, and it's a royal pita to track down :)