Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Issue 6881112: Archive build to pass USE flags to subcommands. (Closed)

Created:
9 years, 8 months ago by Peter Mayo
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa, dgarrett
Visibility:
Public.

Description

Archive build uses commands that may need to reassemble and re-emerge components. This gets it to pass USE flags in case some of the components are desired in a non-default configuration. Change-Id: I3d096ec63510e470aad25de8da1112be28a5bfca BUG=78345 TEST=Manual runs. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=32125c5

Patch Set 1 #

Patch Set 2 : Fix missing initialization. #

Patch Set 3 : Variable rename. #

Total comments: 3

Patch Set 4 : Change usage string for useflags #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -9 lines) Patch
M archive_build.sh View 1 2 3 7 chunks +17 lines, -9 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
kliegs
LGTM w/nit Change the name from ENV_SPEC to CHROOT_ENV and add a comment as to ...
9 years, 8 months ago (2011-04-21 22:41:49 UTC) #1
Peter Mayo
I am planning to babysit this through the first 8-12 hours, and would beg anyone ...
9 years, 8 months ago (2011-04-22 00:27:41 UTC) #2
Peter Mayo
Ping?
9 years, 8 months ago (2011-04-25 18:46:58 UTC) #3
davidjames
+anush http://codereview.chromium.org/6881112/diff/2002/archive_build.sh File archive_build.sh (right): http://codereview.chromium.org/6881112/diff/2002/archive_build.sh#newcode78 archive_build.sh:78: "Space separated flags specifying types of pieces to ...
9 years, 8 months ago (2011-04-25 20:58:19 UTC) #4
Peter Mayo (wrong one)
The scripts accepting USE flags from their environment ... are they inside or outside chroot ...
9 years, 8 months ago (2011-04-25 21:03:43 UTC) #5
kliegs
As Peter says archive_build runs outside the chroot so can't blindly accept USE flags from ...
9 years, 8 months ago (2011-04-25 21:07:57 UTC) #6
Peter Mayo (wrong one)
I can do CROS_USE for this change very quickly. I changed from passing USE flags ...
9 years, 8 months ago (2011-04-25 21:11:22 UTC) #7
Peter Mayo
Anush, Sosa, :Ping: David, Jon, Did you prefer the different env variable to the explicit ...
9 years, 8 months ago (2011-04-28 17:20:20 UTC) #8
sosa
Environment variables are better here I think but I agree with something CROS specific for ...
9 years, 8 months ago (2011-04-28 17:49:00 UTC) #9
kliegs
My personal preference right now is to add a flag to enter_chroot which will always ...
9 years, 8 months ago (2011-04-28 17:51:16 UTC) #10
kliegs
And to echo sosa - I don't have strong feelings on this. This is my ...
9 years, 8 months ago (2011-04-28 17:52:12 UTC) #11
Peter Mayo (wrong one)
That seems to me like a fair bit of rework through many levels to end ...
9 years, 8 months ago (2011-04-28 18:19:41 UTC) #12
kliegs
LGTM (meta discussion): Sorry - I realized I accidentally went off into design mode rather ...
9 years, 8 months ago (2011-04-28 18:33:07 UTC) #13
msb
+ dianders Peter Mayo (petermayo@google.com) wrote: > That seems to me like a fair bit ...
9 years, 8 months ago (2011-04-28 18:38:20 UTC) #14
kliegs
It does and is. Some of the meta-debate that spawned was about how to automate ...
9 years, 8 months ago (2011-04-28 18:44:11 UTC) #15
davidjames
Based on discussion, this patch looks fine. Please just clean up the comment. I also ...
9 years, 8 months ago (2011-04-28 19:02:13 UTC) #16
diandersAtChromium
Joining late, but things look OK to me. I will let others debate the right ...
9 years, 8 months ago (2011-04-28 19:27:03 UTC) #17
dgarrett
Just as a general note, enter_chroot also has the ability to pass a controlled set ...
9 years, 8 months ago (2011-04-28 19:52:11 UTC) #18
kliegs
Oh thanks Don - I didn't realize that variable existed. Could definitely be useful in ...
9 years, 8 months ago (2011-04-28 20:20:40 UTC) #19
Peter Mayo
On 2011/04/28 19:52:11, dgarrett wrote: > Just as a general note, enter_chroot also has the ...
9 years, 7 months ago (2011-04-29 19:40:12 UTC) #20
Peter Mayo
9 years, 7 months ago (2011-04-29 20:09:55 UTC) #21
http://codereview.chromium.org/6881112/diff/2002/archive_build.sh
File archive_build.sh (right):

http://codereview.chromium.org/6881112/diff/2002/archive_build.sh#newcode78
archive_build.sh:78: "Space separated flags specifying types of pieces to
assemble of modify."
On 2011/04/28 19:02:14, davidjames wrote:
> Could you clarify this comment? "Space separated flags specifying types of
> pieces to assemble of modify." Better would just to say "USE flags to pass in
to
> emerge."

I'm OK with dropping space separated, and referencing commands we call more
explicitly, but I don't like specifying one we don't actually call.  We call
mod_image_for_recovery, mod_image_for_test and build_image. They are the ones
that do the wrong things without the variable set.  They are called through
enter_chroot, so either them or enter_chroot makes sense to references, IMHO.

Powered by Google App Engine
This is Rietveld 408576698