Closed
Bug 1329272
Opened 8 years ago
Closed 8 years ago
configure error with sed 4.3
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox-esr45 fixed, firefox50 wontfix, firefox51 fixed, firefox52 fixed, firefox53 fixed)
RESOLVED
FIXED
mozilla53
People
(Reporter: bugzilla, Assigned: bagder)
References
Details
Attachments
(1 file, 1 obsolete file)
|
1.18 KB,
patch
|
glandium
:
review+
jcristau
:
approval-mozilla-aurora+
jcristau
:
approval-mozilla-beta+
jcristau
:
approval-mozilla-release-
ritu
:
approval-mozilla-esr45+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Build ID: 20170104201326
Steps to reproduce:
Build firefox 50.1.0, 51.0b12 with sed 4.3 installed
Actual results:
errors out with:
sed: character class syntax is [[:space:]], not [:space:]
Expected results:
work
Attachment #8824503 -
Attachment is patch: true
Attachment #8824503 -
Attachment mime type: text/x-patch → text/plain
Attachment #8824503 -
Flags: review?(mh+mozilla)
The patch is not enough. You get a similar problem in js/src/old-configure that is generated during the build. Problem with autoconf-2.13?
| Assignee | ||
Comment 2•8 years ago
|
||
The double '[' is not enough for some reason for that first [[:space:]] occurrence. If I instead use _three_ brackets on both sides there my sed 4.3 no longer complains:
version=`sed -n 's/^[[[:space:]]]*#[[:space:]]*define[[:space:]][[:space:]]*U_ICU_VERSION_MAJOR_NUM[[:space:]][[:space:]]*\([0-9][0-9]*\)[[:space:]]*$/\1/p' "$icudir/common/unicode/uvernum.h"`
Comment 5•8 years ago
|
||
Comment on attachment 8824503 [details] [diff] [review]
sed.patch
Review of attachment 8824503 [details] [diff] [review]:
-----------------------------------------------------------------
The patch needs to be applied to build/autoconf/icu.m4.
Attachment #8824503 -
Flags: review?(mh+mozilla) → review-
| Assignee | ||
Comment 6•8 years ago
|
||
Here's the patch I used to fix the build for me.
Attachment #8825307 -
Flags: review?(mh+mozilla)
Comment 7•8 years ago
|
||
Comment on attachment 8825307 [details] [diff] [review]
0001-bug-1329272-add-bracket-for-sed-4.3-compliance-r-gla.patch
Review of attachment 8825307 [details] [diff] [review]:
-----------------------------------------------------------------
We'll need this on all branches, including esr.
Attachment #8825307 -
Flags: review?(mh+mozilla) → review+
| Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ebcbf47a83e7
add bracket for sed 4.3 compliance, r=glandium
Keywords: checkin-needed
Attachment #8824503 -
Attachment is obsolete: true
status-firefox50:
--- → affected
status-firefox51:
--- → affected
status-firefox52:
--- → affected
status-firefox53:
--- → affected
status-firefox-esr45:
--- → affected
Comment 9•8 years ago
|
||
| bugherder | ||
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
I got this problem on m-r too.
I made a proxy script for sed like this:
#! /bin/sh
echo 'sed' "$@" > /tmp/sed.log
/bin/sed "$@"
And I got this:
sed -n s/^[:space:]*#[[:space:]]*define[[:space:]][[:space:]]*U_ICU_VERSION_MAJOR_NUM[[:space:]][[:space:]]*\([0-9][0-9]*\)[[:space:]]*$/^A/p /home/wcpan/local/src/firefox/intl/icu/source/common/unicode/uvernum.h
It looks like the first pair of brackets was comsumed in the first place.
Maybe the root cause is not sed?
| Assignee | ||
Comment 11•8 years ago
|
||
(In reply to Wei-Cheng Pan [:wcpan] [:wcp] [:legnaleurc] from comment #10)
> Maybe the root cause is not sed?
Correct, the *cause* is not sed, but sed up until before 4.3 still worked fine with that input. 4.3 started to instead complain on the bad pattern and exit with a message.
The fix that now is in m-c makes sure that the first pair ends up with two brackets on either side of :space: and should work with 4.3 and older sed versions.
| Assignee | ||
Comment 12•8 years ago
|
||
Comment on attachment 8825307 [details] [diff] [review]
0001-bug-1329272-add-bracket-for-sed-4.3-compliance-r-gla.patch
Approval Request Comment
[Feature/Bug causing the regression]: 1329272
[User impact if declined]: Failed builds for users having sed 4.3 installed.
[Is this code covered by automated tests?]: Not yet, but will in the future once the buildbots upgrade to sed 4.3
[Has the fix been verified in Nightly?]: Yes
[Needs manual test from QE? If yes, steps to reproduce]:
[List of other uplifts needed for the feature/fix]: none
[Is the change risky?]: no
[Why is the change risky/not risky?]: it is a small change that carries low risk
[String changes made/needed]:
Attachment #8825307 -
Flags: approval-mozilla-release?
Attachment #8825307 -
Flags: approval-mozilla-beta?
Attachment #8825307 -
Flags: approval-mozilla-aurora?
| Assignee | ||
Comment 14•8 years ago
|
||
Comment on attachment 8825307 [details] [diff] [review]
0001-bug-1329272-add-bracket-for-sed-4.3-compliance-r-gla.patch
[Approval Request Comment]
If this is not a sec:{high,crit} bug, please state case for ESR consideration:
User impact if declined: Causes build problems for users with sed 4.3 (or later, presumably) installed
Fix Landed on Version: nightly so far, being suggested for uplift to "all" branches
Risk to taking this patch (and alternatives if risky): Very small risk.
String or UUID changes made by this patch:
See https://wiki.mozilla.org/Release_Management/ESR_Landing_Process for more info.
Flags: needinfo?(daniel)
Attachment #8825307 -
Flags: approval-mozilla-esr45?
Comment 15•8 years ago
|
||
Comment on attachment 8825307 [details] [diff] [review]
0001-bug-1329272-add-bracket-for-sed-4.3-compliance-r-gla.patch
build fix for new sed, aurora52+ and beta51+. There won't be a dot release for this, so not dropping approval-mozilla-release.
Attachment #8825307 -
Flags: approval-mozilla-release?
Attachment #8825307 -
Flags: approval-mozilla-release-
Attachment #8825307 -
Flags: approval-mozilla-beta?
Attachment #8825307 -
Flags: approval-mozilla-beta+
Attachment #8825307 -
Flags: approval-mozilla-aurora?
Attachment #8825307 -
Flags: approval-mozilla-aurora+
Comment 16•8 years ago
|
||
oops. s/not//. That's what I get for submitting halfway through editing the comment.
Comment 17•8 years ago
|
||
| bugherder uplift | ||
Comment 18•8 years ago
|
||
| bugherder uplift | ||
Updated•8 years ago
|
Assignee: nobody → daniel
Updated•8 years ago
|
Comment on attachment 8825307 [details] [diff] [review]
0001-bug-1329272-add-bracket-for-sed-4.3-compliance-r-gla.patch
Seems like a safe fix, let's include it in ESR45.7
Attachment #8825307 -
Flags: approval-mozilla-esr45? → approval-mozilla-esr45+
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•