mmadia ([info]mmadia) wrote in [info]bezilla,
@ 2008-03-09 09:25:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Two possible patches to help with packaging and a .mozconfig tip
Since it's been a while, i didn't want to just go ahead and submit these patches.


This first one changes the default MOZ_ZIP_FORMAT from .tar.gz to .zip
As zip's are currently the only archive format that support BFS attributes, i believe this should be our default.
mozilla/toolkit/mozapps/installer/packager.mk
http://pastebin.com/m3ca3c6a8

and

currently, packaging uses
MOZ_PKG_PLATFORM := $(TARGET_OS)-$(TARGET_CPU)
which generates the "beos-i586" tag in archive filenames.

The following patch follows the modeling of WINNT, Darwin, linux-gnu, and OS2
by overriding that default string with a more accurate one.

with this, beos-i586 is replaced by "BeOS-net_server", "BeOS-bone", or "Zeta"
mozilla/toolkit/mozapps/installer/package-name.mk
http://pastebin.com/m399053c7
Note: i did not yet test this on Zeta or net_server yet,
but it should work as i got the code from another project (im_kit)

Now, for .mozconfig we can add another definition for a more descriptive distribution archive filename:

export MOZ_PKG_SPECIAL=Debug
mk_add_options MOZ_PKG_SPECIAL=Debug
# do not add ac_add_options MOZ_PKG_SPECIAL=Debug

Some other uses could be to label build as Static, Shared, Optimized, Debug, BleedingEdge, PrintPostscript

With these 3 additions, we are able to simply use
`make -C xpinstall/packager`, or browser/installer, mail/installer, calendar/installer

Update: see comments for bug id's



(Post a new comment)

submitted as bugs+patches
[info]mmadia
2008-03-15 07:37 pm UTC (link)
default MOZ_ZIP_FORMAT = .zip : https://bugzilla.mozilla.org/show_bug.cgi?id=423182

replace TARGET_OS/TARGET_CPU :
https://bugzilla.mozilla.org/show_bug.cgi?id=423183

(Reply to this)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…