Closed Bug 1007568 Opened 10 years ago Closed 10 years ago

Follow symlinks when copying apps into STAGE_DIR

Categories

(Firefox OS Graveyard :: Gaia::Build, defect)

x86_64
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v2.0 fixed)

RESOLVED FIXED
2.0 S2 (23may)
Tracking Status
b2g-v2.0 --- fixed

People

(Reporter: leila.hadji, Assigned: leila.hadji)

Details

Attachments

(2 files, 2 obsolete files)

Directories under GAIA_APPDIRS might contain symlinks (e.g. outoftree_apps). When copying the symlinked apps into STAGE_DIR without -L option, clear-stage-app will remove the files in the target directory. This issue is seen on second run of "make install/reset-gaia".

The issue appears after bug 999413 was merged.
Attachment #8419259 - Flags: review?(timdream)
Attachment #8419259 - Flags: review?(timdream) → review?(yurenju.mozilla)
Comment on attachment 8419259 [details] [diff] [review]
Bug_1007568-Follow-symlinks-when-copying-apps-into-STAGE_DIR.patch

Leila, your patch looks good so r=yurenju, and please send a pull request to mozilla-b2g/gaia on github and wait result of travis-ci is green, then I will merge that pr.

thanks for your contribution!
Attachment #8419259 - Flags: review?(yurenju.mozilla) → review+
Attached file pull request for fixing Bug 1007568. (obsolete) —
The Travis CI build passed.
Attachment #8421687 - Flags: review?(yurenju.mozilla)
Keywords: checkin-needed
Thank you Leila, merged in https://github.com/mozilla-b2g/gaia/commit/4d7952a4.

Congratulations on your first patch!
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Comment on attachment 8421687 [details] [review]
pull request for fixing Bug 1007568.

r=yurenju
Attachment #8421687 - Flags: review?(yurenju.mozilla) → review+
Replaced with -LR to support OSX build too.
Attachment #8424577 - Flags: review?(janx)
Comment on attachment 8424577 [details] [diff] [review]
Bug_1007568-Follow-symlinks-when-copying-apps-into-STAGE_DIR_osx_tested.patch

Review of attachment 8424577 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks for the fixed patch Leila! I'm not the right person to review this, but since the new version is close enough to the previous, r+ with r=yurenju.

Also, for changes in Gaia there is no need to upload patches here before opening a pull request. The whole review cycle can happen in the pull request.

Please open a pull request with your new change, link it to this bug again, set the r+ flag for yurenju, and use the checkin-needed keyword when you feel confident that the tests will pass. Good luck!
Attachment #8424577 - Flags: review?(janx) → review+
On second thought, you can just push -f to your current pull request branch `copy-symlink`, that will update the pull request currently linked to this bug and it already has r+.

Be sure to mark the other patches as obsolete when adding `checkin-needed`, so as not to confuse the sheriff who will come to land your patch.
Attachment #8424913 - Flags: review+
Attachment #8419259 - Attachment is obsolete: true
Attachment #8421687 - Attachment is obsolete: true
Keywords: checkin-needed
https://travis-ci.org/mozilla-b2g/gaia/jobs/25522840
travis didn't pass but the error doesn't look like to be related to my commit, how can I regrigger the test? or should I create a new pull request?
Flags: needinfo?(janx)
Keywords: checkin-needed
The failure does look like an unrelated intermittent failure. I've re-triggered the job for you, but an easy way to do that is to rebase your commit on top of gaia/master and to `git push -f` it to your pull-request branch again.
Flags: needinfo?(janx)
Master: https://github.com/mozilla-b2g/gaia/commit/d04280124a50efa3f80b3252a33d042ecac0d624
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S2 (23may)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: