Closed Bug 323776 Opened 19 years ago Closed 19 years ago

Lightning should only install in corresponding branch/trunk builds

Categories

(Calendar :: Lightning Only, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ssitter, Assigned: ssitter)

References

Details

Attachments

(1 file, 3 obsolete files)

To avoid any problems the branch/trunk builds of Lightning should only install in corresponding branch/trunk builds. minVersion/maxVersion in install.rdf should be adapted for this.
Attached patch trunk patch (obsolete) — — Splinter Review
Attachment #208738 - Flags: first-review?(dmose)
Attached patch branch patch (obsolete) — — Splinter Review
Attachment #208740 - Flags: first-review?(dmose)
Comment on attachment 208738 [details] [diff] [review]
trunk patch

I think this wants to use the XUL preprocessor to have both minVersion and maxVersion set to whatever the current build is. See <http://lxr.mozilla.org/seamonkey/source/extensions/inspector/install.rdf> for an example.  The reasoning behind this is that the trunk changes quickly enough that we're likely to avoid invalid bugs by forcing Lightning and Thunderbird builds to be from the same point.
Attachment #208738 - Flags: first-review?(dmose) → first-review-
Comment on attachment 208740 [details] [diff] [review]
branch patch

I think maxVersion here probably wants to be calculated at build time, since we actually want to support more than the 1.5.0 branch, and the general plan seems to be keep the APIs that we care about more or less intact on the 1.8 branch itself.  Note that both this and the previous change will require adding the XUL preprocessor into the build, if we don't already have that.
Attachment #208740 - Flags: first-review?(dmose) → first-review-
(In reply to comment #4)

Ok, for the trunk I have a working version where minVersion and maxVersion is set to the current Firefox/Thunderbird trunk version during build.

But I'm not sure how to process with the branch version. 
The minVersion is fixed to 1.5, ok. But how do you want to calculate maxVersion at build time? For the 1.8.0 branch we need 1.5.0.* as maxVersion to support the security updates. For the 1.8 (later 1.8.1) branch we need 1.5 at the moment and later 2.0.
(In reply to comment #5)
> But I'm not sure how to process with the branch version. 
> The minVersion is fixed to 1.5, ok. But how do you want to calculate maxVersion
> at build time? For the 1.8.0 branch we need 1.5.0.* as maxVersion to support
> the security updates. For the 1.8 (later 1.8.1) branch we need 1.5 at the
> moment and later 2.0.

IMO we should push the Firefox and Thunderbird folks to go somewhere along the following route:

1.8.0 Branch: maxVersion = 1.5.0.*
              minVersion = 1.5
1.8 Branch:   maxVersion = 2.0.*
              minVersion = 1.6
Trunk:        maxVersion = tbd
              minVersion = 2.1
Attached patch work in progress (obsolete) — — Splinter Review
This is the trunk patch mentioned in comment #5. 
Still have to decide how to process on branch.
Attachment #208738 - Attachment is obsolete: true
Attachment #208740 - Attachment is obsolete: true
We should block Lightning 0.1 on the branch version of this, or we'll be asking for trouble.
(In reply to comment #8)
> We should block Lightning 0.1 on the branch version of this, or we'll be asking
> for trouble.

For Lightning 0.1 release I suggest using <em:minVersion>1.5</em:minVersion> and <em:maxVersion>1.5.0.*</em:maxVersion> on the branch because at the moment we don't know when the thunderbird branch version will change from 1.5 to something else and we don't know if the released Lightning 0.1 version will work in future Thunderbird branch versions (remember Bug 325140).
Attached patch patch for trunk and branch — — Splinter Review
Patch for branch and trunk using #ifdef MOZILLA_1_8_BRANCH to distinguish.
Attachment #210890 - Attachment is obsolete: true
Attachment #211176 - Flags: first-review?(dmose)
Comment on attachment 211176 [details] [diff] [review]
patch for trunk and branch

I agree with the logic behind these version choices.  Thanks for the patch!
Attachment #211176 - Flags: first-review?(dmose) → first-review+
Checked in on the trunk and branch.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: