Closed Bug 1038062 Opened 12 years ago Closed 8 years ago

Gaia build hit compile error when source files are read-only

Categories

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

All
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: seinlin, Unassigned)

Details

Attachments

(1 file)

In some auto build system/machine, source code fetch from remote could be set to read-only. When source files are read-only, Gaia build will hit a compile error.
Kai-zhen, do you have STR for it?
Flags: needinfo?(kli)
In a new synced gaia folder $ find . -type f | xargs chmod -w $ make
Flags: needinfo?(kli)
Attached patch gaia_build.patch — — Splinter Review
Yuren, with the attached patch, I can get the gaia compiled when source is read-only. But I am not sure if this patch is reasonable.
Attachment #8455854 - Flags: feedback?(yurenju.mozilla)
Comment on attachment 8455854 [details] [diff] [review] gaia_build.patch it's not efficient while we need to check permission a lot of times. supposedly we only create and generate files into build_stage, xulrunner, node_modules and profile*, so we should check permission of gaia directory and throw error if we don't have permission to write in gaia directory.
Attachment #8455854 - Flags: feedback?(yurenju.mozilla)
(In reply to Yuren [:yurenju] from comment #4) > Comment on attachment 8455854 [details] [diff] [review] > gaia_build.patch > > it's not efficient while we need to check permission a lot of times. > > supposedly we only create and generate files into build_stage, xulrunner, > node_modules and profile*, so we should check permission of gaia directory > and throw error if we don't have permission to write in gaia directory. Agree to you, this is not efficient. I also notice that this patch work only when './build.sh -j1' is used or make in gaia dir.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: