Closed
Bug 1251352
Opened 9 years ago
Closed 9 years ago
Bootstrap script ignores --no-interactive in Arch Linux
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox47 fixed)
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: qheaden, Assigned: qheaden)
References
Details
Attachments
(2 files, 2 obsolete files)
2.22 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
2.55 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
When running bootstrap.py using the --no-interactive flag on Arch Linux, it does not append the correct flag to the install command to prevent prompting. It also doesn't suppress the warning prompt for AUR. This causes problems with automated install scripts that use the bootstrap.
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → qheaden
Assignee | ||
Comment 1•9 years ago
|
||
I've set Gregory Szorc (Build Config module owner) as the person for review. But if someone else should be the patch reviewer, feel free to change it. Also, I made this patch as a result of my having trouble building a Dockerfile using an Arch base that uses bootstrap.py to install dependencies. If there is another solution in the pipeline, and this one is useless, feel free to let me know. :)
Attachment #8723700 -
Flags: review?(gps)
Comment 2•9 years ago
|
||
This explains why Arch was hanging on a prompt in bug 1245969!
Blocks: 1245969
Comment 3•9 years ago
|
||
Comment on attachment 8723700 [details] [diff] [review]
patch-1
Review of attachment 8723700 [details] [diff] [review]:
-----------------------------------------------------------------
I'll land this for you with nits addressed.
::: python/mozboot/mozboot/archlinux.py
@@ +138,5 @@
> def pacman_install(self, *packages):
> command = ['pacman', '-S', '--needed']
> + if self.no_interactive:
> + command.append('--noconfirm')
> + command.extend(packages)
Looks like we .extend(packages) twice?
@@ +177,5 @@
> self.run_as_root(command)
>
> def aur_install(self, *packages):
> path = tempfile.mkdtemp()
> + if self.no_interactive == False:
if not self.no_interactive:
Attachment #8723700 -
Flags: review?(gps) → review+
Comment 4•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/5f2b6a81e84a0a88ad514809d8f0dd60fcdbf21a
Bug 1251352 - Respect --no-interactive during Arch bootstrap; r=gps
Assignee | ||
Comment 5•9 years ago
|
||
Nits have been addressed in patch 2.
Attachment #8723700 -
Attachment is obsolete: true
Attachment #8723714 -
Flags: review?(gps)
Comment 6•9 years ago
|
||
I noticed you attached a plain diff to this bug. You should either use MozReview or something like `hg bzexport` or git-moz-bz to upload patch files so the VCS metadata (such as your author information) is preserved.
Comment 7•9 years ago
|
||
Comment on attachment 8723714 [details] [diff] [review]
patch-2
Review of attachment 8723714 [details] [diff] [review]:
-----------------------------------------------------------------
This is basically what I landed.
Attachment #8723714 -
Flags: review?(gps) → review+
Assignee | ||
Comment 8•9 years ago
|
||
Okay. Did you still need me to upload the diff using MozReview?
Assignee | ||
Comment 9•9 years ago
|
||
Assignee | ||
Comment 10•9 years ago
|
||
Fixed patch description.
Assignee | ||
Updated•9 years ago
|
Attachment #8723722 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8723723 -
Flags: review?(gps)
Comment 11•9 years ago
|
||
(In reply to Quentin Headen [:qheaden] from comment #8)
> Okay. Did you still need me to upload the diff using MozReview?
No. I already landed this. See comment #4 for the link. You shouldn't need to do anything else in this bug unless the patch isn't behaving as expected.
Updated•9 years ago
|
Attachment #8723723 -
Flags: review?(gps) → review+
Comment 12•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•