Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11087 - distfiles-clean borks with GNU sed 3.02.80
Summary: distfiles-clean borks with GNU sed 3.02.80
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: José Fonseca
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-22 09:09 UTC by Karl Trygve Kalleberg (RETIRED)
Modified: 2002-12-06 17:19 UTC (History)
0 users

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


Attachments
distfiles-clean.1 (distfiles-clean.1,910 bytes, text/plain)
2002-11-23 15:55 UTC, José Fonseca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-11-22 09:09:16 UTC
GNU sed 3.02.80, the one most users are expected to have still, does not support
the -s option.

Is this one really necessary ?

Also, could you hack up a man page for your script.
Comment 1 José Fonseca 2002-11-22 10:25:16 UTC
No it, isn't. But I assumed that everybody would be using sed-4.0 as it is in
portage for quite some time now.


If you want to avoid the dependency, just replace 

   xargs sed -s

by

   xargs -l sed

The later does the exact same thing, but it will spawn a sed process for each
file, while the former processes all files [at least as many as it fits on a
single command line] within the same process. Unfortunately there isn't any
other way [AFAIK] to get the 4th line of each file.

Regarding the man script, I'll give it a shot and attach it here.
Comment 2 José Fonseca 2002-11-23 15:55:12 UTC
Created attachment 5899 [details]
distfiles-clean.1

Simple manpage based on the formating of the qpkg one.