Closed
Bug 332091
Opened 18 years ago
Closed 18 years ago
Possibility to add "special" part to package names
Categories
(Toolkit Graveyard :: Build Config, defect)
Toolkit Graveyard
Build Config
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: kairo, Assigned: kairo)
Details
(Keywords: fixed1.8.0.4, fixed1.8.1)
Attachments
(1 file, 1 obsolete file)
2.28 KB,
patch
|
benjamin
:
first-review+
benjamin
:
approval-branch-1.8.1+
dveditz
:
approval1.8.0.4+
|
Details | Diff | Splinter Review |
The current convention followed by our package file names (implemented via package-name.mk) says the following: http://developer.mozilla.org/en/docs/Package_Filename_Convention#Platform_.5B-special.5D ------- Special is used to distinguish non-default characteristics of the build: 1. GTK2 is the default toolkit on linux platforms. If a GTK binary is built, "-gtk1" is appended to the platform; 2. for distiction to other builds, other non-default build options should be specified there in short but meaningful identifiers, e.g. builds including a patch for the MNG image format should specify -mng, or windows builds compiled with gcc instead of MSVC may specify -gcc here. ------- We're doing that for -gtk1 automatically, but one should be able to easily add in a "special" identifier easily - our usual way for such things is to use env vars.
Assignee | ||
Comment 1•18 years ago
|
||
Following the style of that file, this patch adds the string in the env var MOZ_PKG_SPECIAL as special part to the package name if present. This way, one can e.g. "export MOZ_PKG_SPECIAL=gcc4" in his shiny new Linux tinderbox and the packages it spits out will have "linux-i686-gcc4" as their "Platform [-special]" part.
Assignee | ||
Comment 2•18 years ago
|
||
For testing, I did I tested with this patch in my SeaMonkey trunk build: cd mozilla/xpinstall/packager; export MOZ_PKG_SPECIAL=gcc4; make results in seamonkey-1.5a.en-US.linux-i686-gcc4.tar.bz2 while cd mozilla/xpinstall/packager; export MOZ_PKG_SPECIAL=; make still results in seamonkey-1.5a.en-US.linux-i686.tar.bz2 So the name stays the same as without the patch when the env var is unset (or empty), and it's correctly added when set :)
Comment 3•18 years ago
|
||
Comment on attachment 216630 [details] [diff] [review] add MOZ_PKG_SPECIAL into package name if present It's totally not clear to me where this variable would come from: most of the time I'm opposed to having environment vars affect the build: perhaps we should AC_SUBST this var so that it can be set in mozconfig?
Attachment #216630 -
Flags: first-review?(benjamin) → first-review-
Assignee | ||
Comment 4•18 years ago
|
||
OK, here's a version that makes it possible to set this from mozconfig (at least it works in my patched trunk tree with "MOZ_PKG_SPECIAL=kairo" added to my mozconfig)
Attachment #216630 -
Attachment is obsolete: true
Attachment #217183 -
Flags: first-review?(benjamin)
Updated•18 years ago
|
Attachment #217183 -
Flags: first-review?(benjamin) → first-review+
Assignee | ||
Comment 5•18 years ago
|
||
Comment on attachment 217183 [details] [diff] [review] patch v2: make it possible to set MOZ_PKG_SPECIAL from mozconfig requesting branch approvals. The fix is trivial and straightforward, and it would be nice to be easily able to e.g. distingiush mac universal binaries from traditional PPC packages in the generated package names (esp. in tinderbox-generated builds)
Attachment #217183 -
Flags: approval1.8.0.3?
Attachment #217183 -
Flags: approval-branch-1.8.1?(benjamin)
Assignee | ||
Comment 6•18 years ago
|
||
Checked in on trunk.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Updated•18 years ago
|
Attachment #217183 -
Flags: approval-branch-1.8.1?(benjamin) → approval-branch-1.8.1+
Comment 8•18 years ago
|
||
Comment on attachment 217183 [details] [diff] [review] patch v2: make it possible to set MOZ_PKG_SPECIAL from mozconfig approved for 1.8.0 branch, a=dveditz for drivers
Attachment #217183 -
Flags: approval1.8.0.3? → approval1.8.0.3+
Updated•6 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•