Closed Bug 532656 Opened 15 years ago Closed 15 years ago

Fix Sunbird official branding on Mac.

Categories

(Calendar :: Build Config, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file, 2 obsolete files)

Attached patch The fix (obsolete) β€” β€” Splinter Review
As diagnosed during the building of Sunbird 1.0b1, the build fails with official branding doing make -C objdir-tb/ppc/mozilla/tools/update-packaging as follows:

MAR=../../dist/host/bin/mar \
	  /builds/buildbot/macosx_build/build/mozilla/tools/update-packaging/make_full_update.sh \
	  "../../dist/update/mac/en-US//calendar-1.0b1.complete.mar" \
	  "../../dist/universal/Calendar/Calendar.app"
/builds/buildbot/macosx_build/build/mozilla/tools/update-packaging/make_full_update.sh: line 42: pushd: ../../dist/universal/Calendar/Calendar.app: No such file or directory

This is because the mozilla-central part of the build system has got "Calendar" as its MOZ_APP_DISPLAYNAME rather than "Sunbird".

The basic issue is that both our configure.in files import confvars.sh, then work out what to do with branding. In the comm-central part of the build system, the configure.in file explicitly sets MOZ_APP_DISPLAYNAME to Sunbird. In the mozilla-central part of the build system, it doesn't know about Sunbird, so doesn't set it, but does try to call configure.sh in the branding directory.

The patch I'm attaching is porting across some of the changes I did for Thunderbird to support official branding - these changes use configure.sh to set the branding name, and drop the use in confvars.sh.

At the moment, the patch is completely untested.
Attached patch The fix v2 (obsolete) β€” β€” Splinter Review
This should now work - I've checked config/autoconf.mk after running configure for both branded & non-branded and it sets MOZ_APP_DISPLAYNAME correctly in both cases.

The issue was that I'd placed the sunbird nightly branding in calendar/sunbird/branding/nightly, but configure.in wants it in calendar/branding/nightly (due to the MOZ_BUILD_APP being calendar).
Attachment #415860 - Attachment is obsolete: true
Attachment #415862 - Flags: review?(philipp)
Attached patch The fix v3 β€” β€” Splinter Review
Puts the nightly branding back into calendar/sunbird/branding/nightly with a tweak in confvars.sh to the MOZ_BRANDING_DIRECTORY value.
Attachment #415862 - Attachment is obsolete: true
Attachment #415864 - Flags: review?(philipp)
Attachment #415862 - Flags: review?(philipp)
Depends on: 532675
No longer depends on: 532675
Comment on attachment 415864 [details] [diff] [review]
The fix v3

r=philipp
Attachment #415864 - Flags: review?(philipp) → review+
Looks like this patch broke Linux, Mac OS X and Windows builds <http://tinderbox.mozilla.org/showbuilds.cgi?tree=Calendar1.0>:

make[4]: *** No rule to make target `/e/buildbot/comm-1.9.1-sunbird-win32/build/calendar/sunbird/branding/nightly/Makefile.in', needed by `calendar/sunbird/branding/nightly/Makefile'.  Stop.

make[3]: *** [export_tier_app] Error 2
make[2]: *** [tier_app] Error 2
make[1]: Leaving directory `/e/buildbot/comm-1.9.1-sunbird-win32/build/objdir-tb'
make[1]: *** [default] Error 2
make: *** [build] Error 2
Depends on: 533070
Depends on: 537628
These bugs are likely targeted at Lightning 1.0b1, not Lightning 1.0. If this change was done in error, please adjust the target milestone to its correct value. To filter on this bugspam, you can use "lightning-10-target-move".
Target Milestone: 1.0 → 1.0b1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: