Closed Bug 596668 Opened 14 years ago Closed 14 years ago

Incremental building in toolkit/mozapps/extensions/test fails with cp: cannot overwrite directory

Categories

(Toolkit :: Add-ons Manager, defect)

All
macOS
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla2.0b7

People

(Reporter: mossop, Assigned: mwu)

Details

Attachments

(1 file)

$ make -C toolkit
...
cp -pPR
/Users/dolske-bulk/build/mozilla-central/obj/toolkit/mozapps/extensions/test/../../../../_tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell/.
/Users/dolske-bulk/build/mozilla-central/obj/toolkit/mozapps/extensions/test/../../../../_tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell-unpack
cp: cannot overwrite directory
/Users/dolske-bulk/build/mozilla-central/obj/toolkit/mozapps/extensions/test/../../../../_tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell-unpack/./data
with non-directory
/Users/dolske-bulk/build/mozilla-central/obj/toolkit/mozapps/extensions/test/../../../../_tests/xpcshell/toolkit/mozapps/extensions/test/xpcshell/./data
Probably OSX only. Can't reproduce on Linux or Windows.
OS: All → Mac OS X
OSX's cp is buggy and follows links when it shouldn't. This patch switches to tar to avoid the buggy cp. Passes try.
Attachment #475903 - Flags: review?(dtownsend)
Comment on attachment 475903 [details] [diff] [review]
Switch to tar to copy files

khuey would probably have a better call on this than me
Attachment #475903 - Flags: review?(dtownsend) → review?(khuey)
Comment on attachment 475903 [details] [diff] [review]
Switch to tar to copy files

khuey probably doesn't want to review a patch for an osx only bug.
Attachment #475903 - Flags: review?(ted.mielczarek)
Comment on attachment 475903 [details] [diff] [review]
Switch to tar to copy files

It looks fine, but I'd prefer somebody more familiar with Mac take a look at it.
Attachment #475903 - Flags: review?(khuey) → feedback+
Attachment #475903 - Flags: review?(ted.mielczarek) → review+
landed: http://hg.mozilla.org/mozilla-central/rev/7bc76cad3f23
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b7
Flags: in-testsuite-
Flags: in-litmus-
Seems like that the patch works. Marking as verified fixed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: