Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27835 - ocaml uses old school `head -1`
Summary: ocaml uses old school `head -1`
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal
Assignee: George Shapovalov (RETIRED)
URL:
Whiteboard:
Keywords:
: 30943 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-02 21:08 UTC by SpanKY
Modified: 2003-12-03 11:32 UTC (History)
2 users (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 SpanKY gentoo-dev 2003-09-02 21:08:37 UTC
needs to be updated because it'll fail ...
basically a `sed -iR 's:head -1:head -n 1:g' *` in src_unpack() would do it (in
an ugly manner ... i'd suggest a patch)
Comment 1 George Shapovalov (RETIRED) gentoo-dev 2003-09-09 10:58:36 UTC
Thanks SpanKY.

Made that change. This was not failing here, but it is outdated and may cause problems in future (or may be even now on some arches).

Well, I did it through sed - I think it works much better for such situation:
catches any changes upstream, should they add this construct in any new places and its intention can be immediately understood, whereas you would have to look through the patch. Oh and its simpler and smaller :).
But I did not find "R" option to sed in man or info, so (in case this is another non-stanard extension) I used grep -rle .. | xargs .. instead.

George
Comment 2 James Harlow (RETIRED) gentoo-dev 2003-10-11 21:14:43 UTC
*** Bug 30943 has been marked as a duplicate of this bug. ***
Comment 3 Ricardo Ferreira 2003-12-03 11:32:04 UTC
Yeah, its fixed in 3.06-r2 but unfortunately that is still ~x86 which means everyone not using testing packages is still having the problem (like me).

If the only change r1->r2 was this fix, r2 should be marked stable, IMHO.