Closed
Bug 901059
Opened 11 years ago
Closed 5 years ago
Clean up old unused package-manifest.in references
Categories
(Firefox Build System :: Android Studio and Gradle Integration, defect, P5)
Firefox Build System
Android Studio and Gradle Integration
All
Android
Tracking
(firefox66 fixed)
RESOLVED
FIXED
mozilla66
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: capella, Assigned: jcranmer, Mentored)
References
Details
Attachments
(2 files, 2 obsolete files)
package-manifest.in has references to desktop files that we don't use ... packing step generates warnings ... the references should be removed ... Perform a local build once to get the entire warning list but basically you'll see: Warning: /home/mozilla/mozilla-fig-droid/mobile/android/installer/package-manifest:20: Missing file(s): bin/searchplugins/* Warning: /home/mozilla/mozilla-fig-droid/mobile/android/installer/package-manifest:21: Missing file(s): bin/defaults/profile/bookmarks.html Warning: /home/mozilla/mozilla-fig-droid/mobile/android/installer/package-manifest:22: Missing file(s): bin/defaults/profile/localstore.rdf Warning: /home/mozilla/mozilla-fig-droid/mobile/android/installer/package-manifest:23: Missing file(s): bin/defaults/profile/mimeTypes.rdf Warning: /home/mozilla/mozilla-fig-droid/mobile/android/installer/package-manifest:24: Missing file(s): bin/defaults/profile/chrome/* Warning: /home/mozilla/mozilla-fig-droid/mobile/android/installer/package-manifest:43: Missing file(s): bin/libnssdbm3.so Warning: /home/mozilla/mozilla-fig-droid/mobile/android/installer/package-manifest:51: Missing file(s): bin/AndroidManifest.xml Warning: /home/mozilla/mozilla-fig-droid/mobile/android/installer/package-manifest:52: Missing file(s): bin/resources.arsc
Reporter | ||
Updated•11 years ago
|
Whiteboard: [good-first-bug]
Reporter | ||
Updated•11 years ago
|
Whiteboard: [good-first-bug] → [good-first-bug][mentor=markcapella@twcny.rr.com]
Updated•11 years ago
|
Assignee: nobody → stully
Comment 1•11 years ago
|
||
Try run: https://tbpl.mozilla.org/?tree=Try&rev=aa54f0b6fcb8 Sorry for taking a 'good-first-bug'; I'm blocked on a bunch of things and was looking for something small to do in the meantime.
Attachment #786052 -
Flags: review?(markcapella)
Reporter | ||
Comment 2•11 years ago
|
||
Comment on attachment 786052 [details] [diff] [review] Bug 901059 - Clean up old unused package-manifest.in references I'm happy getting beginners started in the right direction, and you seem to have already been / gotten there :-) For reviews I defer to someone like margaret or nalexander who are more familiar with the particular patch. Some of the things you've removed look to me like they should be left there, but I'd have to ask them why / why not also.
Attachment #786052 -
Flags: review?(markcapella) → feedback+
Comment 3•11 years ago
|
||
I just took the output from mach of "missing file(s)" and removed each from the manifest file. If you want, it's fine to leave this patch as is for a beginner to build off of or verify that what I removed should, in fact, be removed.
Updated•11 years ago
|
Assignee: stully → nobody
Reporter | ||
Comment 4•11 years ago
|
||
Oh ... I just meant you needed a proper review now, and we should ask nalexander or margaret to do that ... not that you shouldn't be working on this :(
Updated•11 years ago
|
Attachment #786052 -
Flags: review?(nalexander)
Comment 5•11 years ago
|
||
Comment on attachment 786052 [details] [diff] [review] Bug 901059 - Clean up old unused package-manifest.in references Review of attachment 786052 [details] [diff] [review]: ----------------------------------------------------------------- I'm comfortable killing the chunk between line 96 and line 456; but I'd like to see a try build. This patch is a very low reward for the risk of completing butchering the build; I'm not taking any chances. Let's reduce scope, see a try, and then request r? from another build peer who is more familiar with desktop. ::: mobile/android/installer/package-manifest.in @@ -17,5 @@ > [@AB_CD@] > @BINPATH@/chrome/@AB_CD@@JAREXT@ > @BINPATH@/chrome/@AB_CD@.manifest > @BINPATH@/@PREF_DIR@/mobile-l10n.js > -@BINPATH@/searchplugins/* Leave these. Who knows what distributions do. @@ +56,5 @@ > #ifndef CROSS_COMPILE > @BINPATH@/@DLL_PREFIX@freebl3.chk > @BINPATH@/@DLL_PREFIX@softokn3.chk > #endif > +#if ! defined(NSS_DISABLE_DBM) && ! defined(CROSS_COMPILE) I don't get it. The .chk only makes sense with the library. (I don't think either are used on Android, but I can't say for certain.) Leve all this. @@ -83,2 @@ > @BINPATH@/package-name.txt > @BINPATH@/classes.dex I find this section very odd; why would we every include classes.dex in omni.ja? @@ -88,2 @@ > @BINPATH@/recommended-addons.json > -@BINPATH@/distribution/* We shouldn't kill this one: I'm not clear distributions don't use it. @@ -457,2 @@ > > ; [Default Preferences] I'm comfortable killing the chunk between line 96 and line 456; but I'd like to see a try build. This patch is a very low reward for the risk of completing butchering the build; I'm not taking any chances. @@ -457,5 @@ > > ; [Default Preferences] > ; All the pref files must be part of base to prevent migration bugs > @BINPATH@/@PREF_DIR@/mobile.js > -@BINPATH@/@PREF_DIR@/mobile-branding.js Leave these three. @@ -529,5 @@ > > ; [Crash Reporter] > ; > #ifdef MOZ_CRASHREPORTER > -@BINPATH@/crashreporter@BIN_SUFFIX@ Leave these. @@ -545,5 @@ > bin/components/@DLL_PREFIX@nkgnomevfs@DLL_SUFFIX@ > #endif > > [mobile] > -@BINPATH@/chrome/icons/ Leave. @@ -574,5 @@ > @BINPATH@/components/Payment.manifest > @BINPATH@/components/PaymentsUI.js > > -#ifdef MOZ_SAFE_BROWSING > -@BINPATH@/components/SafeBrowsing.jsm Leave.
Attachment #786052 -
Flags: review?(nalexander)
Updated•11 years ago
|
Whiteboard: [good-first-bug][mentor=markcapella@twcny.rr.com] → [good first bug][mentor=markcapella@twcny.rr.com]
Updated•10 years ago
|
Mentor: markcapella
Whiteboard: [good first bug][mentor=markcapella@twcny.rr.com] → [good first bug]
Reporter | ||
Comment 7•10 years ago
|
||
This bug has been obviated by subsequent build system changes.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Comment 8•10 years ago
|
||
(In reply to Mark Capella [:capella] from comment #7) > This bug has been obviated by subsequent build system changes. I don't think it has -- we still have tons of warnings when we |mach package|, and only some are reasonable due to l10n repacks, build flags, etc. I think we should stop calling this a good first bug, though.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Whiteboard: [good first bug]
Reporter | ||
Comment 9•10 years ago
|
||
thanks, that wfm :-) This may not be what I originally noticed when reporting, but anything we can clean-up helps.
Reporter | ||
Updated•10 years ago
|
Mentor: markcapella → nobody
Comment 10•10 years ago
|
||
Updated•10 years ago
|
Status: REOPENED → NEW
Component: General → Build Config & IDE Support
Hardware: ARM → All
Updated•10 years ago
|
Attachment #8507238 -
Attachment mime type: text/x-log → text/plain
Assignee | ||
Comment 11•9 years ago
|
||
This is a diff I prepared, using the help of some infrastructure I built for bug 1158018. Try is here: <https://treeherder.mozilla.org/#/jobs?repo=try&revision=ed78cdde37d0>. To confirm that I didn't botch anything, I ran this build on try: <https://treeherder.mozilla.org/#/jobs?repo=try&revision=d5cbd1153952> which used some package-manifest diff stuff (<https://hg.mozilla.org/try/rev/661f59265ce7>). Yeah, that build's red, but the logs all indicate that there's nothing missing (a log where something was missing is <https://treeherder.mozilla.org/#/jobs?repo=try&revision=7d0cd8ec8701>).
Assignee: nobody → Pidgeot18
Attachment #786052 -
Attachment is obsolete: true
Attachment #8507238 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8637605 -
Flags: review?(nalexander)
Assignee | ||
Updated•9 years ago
|
Attachment #8637605 -
Flags: review?(nalexander) → review?(rnewman)
Comment 12•9 years ago
|
||
Comment on attachment 8637605 [details] [diff] [review] Fix up the manifest Sadly, the distribution/* line is necessary: Bug 1163082. There may be others.
Attachment #8637605 -
Flags: review?(rnewman) → review-
Assignee | ||
Comment 13•9 years ago
|
||
(In reply to Nick Alexander :nalexander from comment #12) > Comment on attachment 8637605 [details] [diff] [review] > Fix up the manifest > > Sadly, the distribution/* line is necessary: Bug 1163082. There may be > others. The build cares to disagree if I try that: 20:28:00 INFO - Error: /builds/slave/try-and-x86-000000000000000000/build/src/mobile/android/installer/package-manifest.in:82: Missing file(s): bin/distribution/*
Comment 14•9 years ago
|
||
(In reply to Joshua Cranmer [:jcranmer] from comment #13) > (In reply to Nick Alexander :nalexander from comment #12) > > Comment on attachment 8637605 [details] [diff] [review] > > Fix up the manifest > > > > Sadly, the distribution/* line is necessary: Bug 1163082. There may be > > others. > > The build cares to disagree if I try that: > 20:28:00 INFO - Error: > /builds/slave/try-and-x86-000000000000000000/build/src/mobile/android/ > installer/package-manifest.in:82: Missing file(s): bin/distribution/* Correct. It's an optional include of an Android distribution, which customizes things for partners. Right now we have poor support for building with a packaged distribution. The ticket I linked improves that support. Removing that line removes what support we have. This is why improving package-manifest.in is hard -- I don't care to audit every possible line.
Assignee | ||
Comment 15•9 years ago
|
||
(In reply to Nick Alexander :nalexander from comment #14) > (In reply to Joshua Cranmer [:jcranmer] from comment #13) > > (In reply to Nick Alexander :nalexander from comment #12) > > > Comment on attachment 8637605 [details] [diff] [review] > > > Fix up the manifest > > > > > > Sadly, the distribution/* line is necessary: Bug 1163082. There may be > > > others. > > > > The build cares to disagree if I try that: > > 20:28:00 INFO - Error: > > /builds/slave/try-and-x86-000000000000000000/build/src/mobile/android/ > > installer/package-manifest.in:82: Missing file(s): bin/distribution/* > > Correct. It's an optional include of an Android distribution, which > customizes things for partners. Right now we have poor support for building > with a packaged distribution. The ticket I linked improves that support. > Removing that line removes what support we have. > > This is why improving package-manifest.in is hard -- I don't care to audit > every possible line. I used a script to verify that no files that are currently packaged are omitted from the list; however I can only test these on builds available on try. If you want to include distribution files, then you need to provide an ifdef that it can be provided off of.
Comment 16•6 years ago
|
||
Re-triaging per https://bugzilla.mozilla.org/show_bug.cgi?id=1473195 Needinfo :susheel if you think this bug should be re-triaged.
Priority: -- → P5
Comment 17•5 years ago
|
||
I'm taking an old ticket number just to close it. The files removed no longer exist in the tree; the NSS option exists and probably shouldn't -- but that's for another day, so let's just make it not warn for now. Depends on D15016
Comment 18•5 years ago
|
||
Pushed by nalexander@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2717febc588c Clean up old unused mobile/android package-manifest.in references. r=agi,froydnj
Comment 19•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 10 years ago → 5 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 66
Updated•5 years ago
|
Product: Firefox for Android → Firefox Build System
Target Milestone: Firefox 66 → mozilla66
You need to log in
before you can comment on or make changes to this bug.
Description
•