Closed Bug 1394576 Opened 7 years ago Closed 7 years ago

symlinks to files that no longer exist are sticking around in dist/

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox57 fixed)

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: dbaron, Assigned: mshal)

Details

Attachments

(1 file)

The last two times I've updated my tree and rebuilt (sometime last week, and this week), I've noticed that there were symlinks/ in dist that point to files that no longer exist.  I *think* this is a regression.

I notice this because I rsync the result of dist/bin across machines, and rsync considers a symlink that can't be dereferenced to be an I/O error (and thus skips the deletion stage).

A "find <dir> -xtype l" to find all the symlinks pointing to things that don't exist, in dist/, currently found:

firefox-debug/dist/idl/mozIStorageStatementParams.idl
firefox-debug/dist/bin/browser/chrome/browser/skin/classic/browser/reload-stop-go@2x.png
firefox-debug/dist/bin/browser/chrome/browser/skin/classic/browser/reload-stop-go.png
firefox-debug/dist/bin/browser/chrome/en-US/locale/en-US/devtools/client/key-shortcuts.properties
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/common/ShortURL.jsm
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/assets/glyph-bookmark-remove-16.svg
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/assets/glyph-now-16.svg
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/assets/glyph-more-16.svg
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/assets/glyph-bookmark-16.svg
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/assets/glyph-newWindow-private-16.svg
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/assets/glyph-forward-16.svg
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/assets/glyph-forward-16-white.svg
firefox-debug/dist/bin/browser/features/onboarding@mozilla.org/chrome/content/img/icons_default-notification.svg
firefox-debug/dist/bin/browser/features/onboarding@mozilla.org/chrome/content/img/icons_sync-notification.svg
firefox-debug/dist/bin/browser/features/onboarding@mozilla.org/chrome/content/img/icons_performance-notification.svg
firefox-debug/dist/bin/browser/features/onboarding@mozilla.org/chrome/content/img/icons_library-notification.svg
firefox-debug/dist/bin/browser/features/onboarding@mozilla.org/chrome/content/img/icons_singlesearch-notification.svg
firefox-debug/dist/bin/browser/features/onboarding@mozilla.org/chrome/content/img/icons_customize-notification.svg
firefox-debug/dist/bin/browser/features/onboarding@mozilla.org/chrome/content/img/icons_private-notification.svg
firefox-debug/dist/bin/browser/features/onboarding@mozilla.org/chrome/content/img/icons_addons-notification.svg
firefox-debug/dist/bin/browser/features/formautofill@mozilla.org/chrome/skin/osx/editAddress.css
firefox-debug/dist/bin/browser/features/formautofill@mozilla.org/chrome/skin/linux/editAddress.css
firefox-debug/dist/bin/browser/features/formautofill@mozilla.org/chrome/skin/windows/editAddress.css
firefox-debug/dist/bin/browser/features/formautofill@mozilla.org/chrome/content/manageAddresses.js
firefox-debug/dist/bin/browser/features/formautofill@mozilla.org/chrome/content/manageAddresses.css
firefox-debug/dist/bin/browser/features/formautofill@mozilla.org/chrome/content/editAddress.js
firefox-debug/dist/include/nsXPIDLString.h

gps thinks this may be related to bug 1390916

(My tree is currently on https://hg.mozilla.org/mozilla-central/rev/3529b653ede2
(In reply to David Baron :dbaron: ⌚️UTC-7 from comment #0)
> gps thinks this may be related to bug 1390916

Yep, this is definitely related - sorry for the issue. Patch forthcoming...
Assignee: nobody → mshal
Comment on attachment 8902078 [details]
Bug 1394576 - Fix install manifests tracking with broken symlinks;

https://reviewboard.mozilla.org/r/173490/#review179130
Attachment #8902078 - Flags: review?(gps) → review+
Pushed by mshal@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a180aac0c7a4
Fix install manifests tracking with broken symlinks; r=gps
https://hg.mozilla.org/mozilla-central/rev/a180aac0c7a4
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
I just got another set:
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/tippytop/images/amazon-fr@2x.png
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/tippytop/images/amazon-de@2x.png
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/tippytop/images/ok@2x.png
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/tippytop/images/ebay-de@2x.png
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/tippytop/images/wikipedia-com@2x.png
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/tippytop/images/amazon-com@2x.png
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/tippytop/images/amazon-ca@2x.png
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/tippytop/images/leboncoin@2x.png
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/tippytop/images/wykop@2x.png
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/tippytop/images/avito@2x.png
firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/content/data/content/tippytop/images/amazon-uk@2x.png
firefox-debug/dist/xpi-stage/mochijar/chrome/mochikit/content/jetpack-package-harness.js
firefox-debug/dist/xpi-stage/mochijar/chrome/mochikit/content/jetpack-addon-overlay.xul
firefox-debug/dist/xpi-stage/mochijar/chrome/mochikit/content/jetpack-package-overlay.xul
firefox-debug/dist/xpi-stage/mochijar/chrome/mochikit/content/jetpack-addon-harness.js
of symlinks that were all created when I built on Monday (September 11), and are now dangling today.

Are you sure this is fixed?
Flags: needinfo?(mshal)
(In reply to David Baron :dbaron: ⌚️UTC-7 from comment #6)
> I just got another set:
> firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/
> content/data/content/tippytop/images/amazon-fr@2x.png
> firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/
> content/data/content/tippytop/images/amazon-de@2x.png
> firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/
> content/data/content/tippytop/images/ok@2x.png
> firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/
> content/data/content/tippytop/images/ebay-de@2x.png
> firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/
> content/data/content/tippytop/images/wikipedia-com@2x.png
> firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/
> content/data/content/tippytop/images/amazon-com@2x.png
> firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/
> content/data/content/tippytop/images/amazon-ca@2x.png
> firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/
> content/data/content/tippytop/images/leboncoin@2x.png
> firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/
> content/data/content/tippytop/images/wykop@2x.png
> firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/
> content/data/content/tippytop/images/avito@2x.png
> firefox-debug/dist/bin/browser/features/activity-stream@mozilla.org/chrome/
> content/data/content/tippytop/images/amazon-uk@2x.png
> firefox-debug/dist/xpi-stage/mochijar/chrome/mochikit/content/jetpack-
> package-harness.js
> firefox-debug/dist/xpi-stage/mochijar/chrome/mochikit/content/jetpack-addon-
> overlay.xul
> firefox-debug/dist/xpi-stage/mochijar/chrome/mochikit/content/jetpack-
> package-overlay.xul
> firefox-debug/dist/xpi-stage/mochijar/chrome/mochikit/content/jetpack-addon-
> harness.js
> of symlinks that were all created when I built on Monday (September 11), and
> are now dangling today.
> 
> Are you sure this is fixed?

The part I fixed was for files that are created by install manifests (so things like XPIDL_SOURCES and EXPORTS now work again, since they used to work but were broken by bug 1390916).

These files are installed by jar manifests, which don't use install manifests in the recursive make backend, so those were always broken. From https://bugzilla.mozilla.org/show_bug.cgi?id=1297381#c1 it sounds like glandium has some patches - do you still have those around? Can we separate out the part related to jar manifest tracking or is it tied to l10n? If not I can try to take a look.
Flags: needinfo?(mshal) → needinfo?(mh+mozilla)
I do have patches to make the recursive backend essentially do the same thing as the faster make backend, but as you suspect, that's blocked on l10n. It may or may not be worth still going forward when --with-l10n-base is not set, but with the recent l10n changes that don't require it, that's harder...
Flags: needinfo?(mh+mozilla)
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: