| mmadia ( @ 2008-03-09 09:25:00 |
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/packag er.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/packag e-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
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/packag
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/packag
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