Closed Bug 400949 Opened 17 years ago Closed 17 years ago

Build Lightning with Sunbird

Categories

(Calendar :: Build Config, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: dbo, Assigned: dbo)

References

()

Details

(Keywords: fixed1.8.1.12)

Attachments

(4 files, 3 obsolete files)

Although building lightning with sunbird per --enable-extension works well for me, it seems not to be the way how we build lightning in the tinderboxen: lightning's mozconfigs are based on thunderbird.
Grepping thru the calendar tree for MOZ_SUNBIRD, it shows we've some places where we distinct lightning from sunbird by build variable (not dynamically).

MOZ_SUNBIRD:
8:#ifdef MOZ_SUNBIRD
./locales/jar.mn
64:ifdef MOZ_SUNBIRD
./locales/Makefile.in
185:RCFLAGS += -DMOZ_SUNBIRD -I$(srcdir)
187:RCFLAGS += -DMOZ_SUNBIRD --include-dir $(srcdir)
203:RCFLAGS += -DMOZ_SUNBIRD
./sunbird/app/Makefile.in

This bug should clarify what's missing to safely build lightning with sunbird.
some links:

branch:
<http://mxr.mozilla.org/mozilla1.8/search?string=MOZ_SUNBIRD&find=calendar&findi=&filter=&tree=mozilla1.8>

trunk:
<http://mxr.mozilla.org/seamonkey/search?string=MOZ_SUNBIRD&find=mozilla%2Fcalendar&findi=&filter=&tree=seamonkey>


IMO this goal is feasible if we link calendar base components as a shared lib only (and let sunbird package that up rather than link calbscmp_s statically).
However, this seems to be only possible on trunk.
Attached patch work in progress -- trunk (obsolete) β€” β€” Splinter Review
Assignee: nobody → daniel.boelzle
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attached patch work in progress -- branch (obsolete) β€” β€” Splinter Review
Attachment #292034 - Attachment is obsolete: true
Attachment #292035 - Attachment is obsolete: true
These three patches build and package calbscmp and webdav as shared library on both branch and trunk.
Comment on attachment 292078 [details] [diff] [review]
[trunk] make webdav use static CRT on windows

>Index: mozilla/extensions/webdav/src/Makefile.in
>-#EXPORT_LIBRARY  = 0

I would prefer to leave some comment that mentions that EXPORT_LIBRARY is explicitly not set. Otherwise, it might looks like it was forgotten or something, and somebody might try to put it back.
Also, a comment leaves a better cvs blame.
I tried the two trunk patches on mac. For non-static build, it seems to work (although i didn't try a clobber build yet).
For static (as tinderboxes currently do), I get an error when linking libcalbasecomps:
/usr/bin/ld: calDateTime.o has local relocation entries in non-writable section (__TEXT,__text)
Not sure what that means though.
and FORCE_USE_PIC = 1
Attachment #292080 - Attachment is obsolete: true
Attachment #292078 - Flags: review?(mvl)
Attachment #292079 - Flags: review?(mvl)
Attachment #292417 - Flags: review?(mvl)
latest patch works fine on linux trunk.
Comment on attachment 292078 [details] [diff] [review]
[trunk] make webdav use static CRT on windows

r=mvl with the change from comment 7
Attachment #292078 - Flags: review?(mvl) → review+
Comment on attachment 292079 [details] [diff] [review]
[branch] force webdav as shared lib, remove STATIC_EXTRA_LIBS for libical

r=mvl with the same comment 7.
Attachment #292079 - Flags: review?(mvl) → review+
Comment on attachment 292417 [details] [diff] [review]
[branch+trunk] build calbscmp as shared lib, correct packages-static

r=mvl, although I didn't test it yet.
Attachment #292417 - Flags: review?(mvl) → review+
Comment on attachment 292079 [details] [diff] [review]
[branch] force webdav as shared lib, remove STATIC_EXTRA_LIBS for libical

mozilla/config part needs additional review and branch approval
Attachment #292079 - Flags: review?(benjamin)
Attachment #292079 - Flags: approval1.8.1.12?
Required for static branch builds sunbird+lightning. We aren't supporting Thunderbird 1.5 any longer, so there's no need anymore to package storage.
Attachment #294184 - Flags: review?(mvl)
Comment on attachment 294184 [details] [diff] [review]
[lightning] don't package storage any longer

r=mvl
Attachment #294184 - Flags: review?(mvl) → review+
Attachment #292079 - Flags: review?(benjamin) → review+
Comment on attachment 292079 [details] [diff] [review]
[branch] force webdav as shared lib, remove STATIC_EXTRA_LIBS for libical

approved for 1.8.1.12, a=dveditz for release-drivers
Attachment #292079 - Flags: approval1.8.1.12? → approval1.8.1.12+
All patches checked in => FIXED
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → 0.8
verified this works; calendar base components as well as webdav come as shared lib
Status: RESOLVED → VERIFIED
could be a nice occasion to consolidate tinderbox jobs/configs - after 0.8 of cause...
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: