Closed
Bug 53999
Opened 25 years ago
Closed 25 years ago
Non-jar builds get wrong chrome files sometimes
Categories
(SeaMonkey :: Build Config, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: sfraser_bugs, Assigned: sfraser_bugs)
Details
(Whiteboard: [rtm++])
If you turn off the flags to use jars in the mac build scripts, the build
completes, but won't run, because installed-chrome.txt contains an extra / in the
paths.
I have a fix.
Assignee | ||
Comment 1•25 years ago
|
||
This is a teeny change in the build scripts, and will only affect developers
doing non-jar builds. The fix has to be checked in.
Status: NEW → ASSIGNED
Keywords: nsbeta3
Assignee | ||
Comment 3•25 years ago
|
||
Fixed yesterday, branch and trunk.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•25 years ago
|
||
I need to reopen this, because non-jar builds don't follow the correct file
replacement strategy for commercial builds.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Summary: Non-jar builds don't work on Mac → Non-jar builds get wrong chrome files sometimes
Assignee | ||
Comment 6•25 years ago
|
||
Keyword fixes
Assignee | ||
Comment 8•25 years ago
|
||
Index: mozilla/build/mac/MozJar.pm
===================================================================
RCS file: /cvsroot/mozilla/build/mac/MozJar.pm,v
retrieving revision 1.5.2.1
diff -r1.5.2.1 MozJar.pm
290,291c290,321
< # print "Aliassing $src\n to\n$dst\n";
< MakeAlias($src, $dst); # don't check errors, otherwise we fail on
replacement
---
> # print "Aliassing $src\n to\n$dst\n";
> if ($override)
> {
> unlink $dst;
> MakeAlias($src, $dst); # don't check errors, otherwise we fail on replacement
> }
> else
> {
> if (-e $dst)
> {
> #compare dates here
> my($dst_moddate) = GetFileModDate($dst);
> my($file_moddate) = GetFileModDate($src);
>
> if ($file_moddate > $dst_moddate)
> {
> print "Updating older file $rel_path in $dir_name\n";
> unlink $dst;
> MakeAlias($src, $dst);
> }
> else
> {
> print "File $file_jar_path in $jar_id is more recent. Not updating.\n";
> }
>
> }
> else
> {
> MakeAlias($src, $dst);
> }
> }
>
This patch affects non-jar builds only. i.e. it will have NO IMPACT on release
builds, and is only useful for the jar developer.
warren, can you r=
Comment 9•25 years ago
|
||
Comparing this to the logic on line 162 of make-jars.pl, I think they look
roughly equivalent:
if (!-e $destPath || $destMtime < $srcMtime || $override) {
<unlink the old and make a copy>
}
r=warren
Assignee | ||
Comment 10•25 years ago
|
||
scc, can you sr please?
Comment 11•25 years ago
|
||
I might have factored this code slightly differently, since |MakeAlias| is the
last act of every possible code path except |$file_moddate<=$dst_moddate|. But
this is clean, readable, and looks correct to me. If you have tested this and
found it to work, then sr=scc.
Assignee | ||
Comment 12•25 years ago
|
||
Yes, it could be refactored, but I was following the pattern I used for files in
jars above. Thanks.
Assignee | ||
Comment 14•25 years ago
|
||
Fixed branch and trunk.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 15•25 years ago
|
||
it's in there. verified.
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•