Closed Bug 373784 Opened 17 years ago Closed 10 years ago

mozillabuild's sed version doesn't support -i (inplace editing) and -u (unbuffered)

Categories

(Firefox Build System :: MozillaBuild, task)

x86
Windows XP
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Pike, Assigned: RyanVM)

References

()

Details

(Whiteboard: [see comment 13 for direct download and replace])

Ted's extensionwiz' build.sh uses sed -i, which apparently doesn't work on the sed 3.02 that msys ships. cygwin's  sed 4.1.5 is fine.

I guess there are a bunch of existing users of build.sh out there, it'd be nice if we could get a recent version of it. Not sure which version the Mac has, but my manpage claims support for -i there, too.
Mass re-assign of MozillaBuild bugs into mozilla.org:MozillaBuild
Component: Build Config → MozillaBuild
Product: Core → mozilla.org
Version: Trunk → other
QA Contact: build-config → mozillabuild
No longer blocks: 402226
Depends on: 402226
I updated to msys-1.0.11-rc-1 and it still has an old sed. :-(
i have downloaded an msys version recently and it was versione 4.2.1
it has -i[SUFFIX]
it also has -r and -u that i use with Dolske's profile script to colorize pymake output.
Summary: mozillabuild's sed version doesn't support -i (inplace editing) → mozillabuild's sed version doesn't support -i (inplace editing) and -u (unbuffered)
Correction, the right version for us is this one

http://sourceforge.net/projects/mingw/files/MSYS/sed/sed-4.2.1-1/sed-4.2.1-1-msys-1.0.11-bin.tar.lzma/download

the -2 version requires msys 1.0.13 that has a new intl dll. the above one works just replacing the old one.
Whiteboard: [see comment 6 for direct download and replace]
updated link:
http://sourceforge.net/projects/mingw/files/MSYS/BaseSystem/sed/sed-4.2.1-1/sed-4.2.1-1-msys-1.0.11-bin.tar.lzma/download
Whiteboard: [see comment 6 for direct download and replace] → [see comment 7 for direct download and replace]
can we maybe get this updated?
Blocks: 631910
No longer blocks: 631910
Any news on this?
No, updating the MSYS components of MozillaBuild is really painful and tends to break things. :-/
Gaia's Makefile uses `sed -i`, so it doesn't work in MozillaBuild.  I worked around one instance in Gaia pull request 6096 <https://github.com/mozilla-b2g/gaia/pull/6096>, but there's a second instance I haven't resolved yet.  I might be able to work around that one too, but it'd be better to have `sed -i` in MozillaBuild.
This isn't any closer to getting fixed than it was 5 years ago, so you'd be better off using a workaround. (Why are people still writing sed in this day and age?)
http://downloads.sourceforge.net/project/mingw/MSYS/Base/sed/sed-4.2.1-1/sed-4.2.1-1-msys-1.0.11-bin.tar.lzma
Whiteboard: [see comment 7 for direct download and replace] → [see comment 13 for direct download and replace]
Can we include this new binary in the next mozilla-build release please?
Depends on: 595779
Why not.
Assignee: nobody → ryanvm
Depends on: MozillaBuild1.10
No longer depends on: MozillaBuild1.10
http://hg.mozilla.org/mozilla-build/rev/1053ca212330
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: mozilla.org → Firefox Build System
You need to log in before you can comment on or make changes to this bug.