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

Issue 10541017: Add update-linux-sandbox.sh to build/ (Closed)

Created:
8 years, 6 months ago by jln (very slow on Chromium)
Modified:
8 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add update-linux-sandbox.sh to build/ This script is a useful helper to make sure the setuid sandbox is up-to-date after building Chrome. BUG= TEST= NOTRY=true Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140816

Patch Set 1 #

Total comments: 42

Patch Set 2 : Address review comments #

Total comments: 4

Patch Set 3 : mu #

Total comments: 4

Patch Set 4 : simplify if statement #

Total comments: 1

Patch Set 5 : Properly enclose variables inside strings #

Patch Set 6 : Address comments by Markus and Lei #

Patch Set 7 : Warn before using sudo as per Markus request #

Total comments: 4

Patch Set 8 : Check for NFS in code + mu #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -0 lines) Patch
A build/update-linux-sandbox.sh View 1 2 3 4 5 6 7 1 chunk +75 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
jln (very slow on Chromium)
Hi Lei, I would like to make this script available somewhere and to reference it ...
8 years, 6 months ago (2012-06-05 21:23:32 UTC) #1
Lei Zhang
https://chromiumcodereview.appspot.com/10541017/diff/1/build/update-linux-sandbox.sh File build/update-linux-sandbox.sh (right): https://chromiumcodereview.appspot.com/10541017/diff/1/build/update-linux-sandbox.sh#newcode4 build/update-linux-sandbox.sh:4: CHROME_OUT_DIR="${CHROME_SRC_DIR}/out/${BUILDTYPE}" Have you considered putting the dev sandbox at ...
8 years, 6 months ago (2012-06-05 22:07:45 UTC) #2
cmp
https://chromiumcodereview.appspot.com/10541017/diff/1/build/update-linux-sandbox.sh File build/update-linux-sandbox.sh (right): https://chromiumcodereview.appspot.com/10541017/diff/1/build/update-linux-sandbox.sh#newcode1 build/update-linux-sandbox.sh:1: #!/bin/sh add -e add standard Chromium copyright header https://chromiumcodereview.appspot.com/10541017/diff/1/build/update-linux-sandbox.sh#newcode2 ...
8 years, 6 months ago (2012-06-05 22:11:29 UTC) #3
Lei Zhang
https://chromiumcodereview.appspot.com/10541017/diff/1/build/update-linux-sandbox.sh File build/update-linux-sandbox.sh (right): https://chromiumcodereview.appspot.com/10541017/diff/1/build/update-linux-sandbox.sh#newcode10 build/update-linux-sandbox.sh:10: then On 2012/06/05 22:11:29, cmp wrote: > please use ...
8 years, 6 months ago (2012-06-05 22:13:27 UTC) #4
cmp
https://chromiumcodereview.appspot.com/10541017/diff/1/build/update-linux-sandbox.sh File build/update-linux-sandbox.sh (right): https://chromiumcodereview.appspot.com/10541017/diff/1/build/update-linux-sandbox.sh#newcode10 build/update-linux-sandbox.sh:10: then I'm retracting this comment since the scripts in ...
8 years, 6 months ago (2012-06-05 22:32:32 UTC) #5
jln (very slow on Chromium)
PTAL https://chromiumcodereview.appspot.com/10541017/diff/1/build/update-linux-sandbox.sh File build/update-linux-sandbox.sh (right): https://chromiumcodereview.appspot.com/10541017/diff/1/build/update-linux-sandbox.sh#newcode1 build/update-linux-sandbox.sh:1: #!/bin/sh On 2012/06/05 22:11:29, cmp wrote: > add ...
8 years, 6 months ago (2012-06-05 22:43:08 UTC) #6
cmp
lgtm with thestig's lgtm no prob about -e https://chromiumcodereview.appspot.com/10541017/diff/1002/build/update-linux-sandbox.sh File build/update-linux-sandbox.sh (right): https://chromiumcodereview.appspot.com/10541017/diff/1002/build/update-linux-sandbox.sh#newcode6 build/update-linux-sandbox.sh:6: BUILDTYPE=${BUILDTYPE:-"Debug"} ...
8 years, 6 months ago (2012-06-05 22:54:20 UTC) #7
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/10541017/diff/1002/build/update-linux-sandbox.sh File build/update-linux-sandbox.sh (right): https://chromiumcodereview.appspot.com/10541017/diff/1002/build/update-linux-sandbox.sh#newcode6 build/update-linux-sandbox.sh:6: BUILDTYPE=${BUILDTYPE:-"Debug"} On 2012/06/05 22:54:20, cmp wrote: > nit: really ...
8 years, 6 months ago (2012-06-05 23:01:44 UTC) #8
Lei Zhang
I'll take a look at patch set 4 in a second. https://chromiumcodereview.appspot.com/10541017/diff/1/build/update-linux-sandbox.sh File build/update-linux-sandbox.sh (right): ...
8 years, 6 months ago (2012-06-05 23:03:18 UTC) #9
Lei Zhang
https://chromiumcodereview.appspot.com/10541017/diff/2002/build/update-linux-sandbox.sh File build/update-linux-sandbox.sh (right): https://chromiumcodereview.appspot.com/10541017/diff/2002/build/update-linux-sandbox.sh#newcode44 build/update-linux-sandbox.sh:44: current_api=$($chrome_sandbox_build_path --get-api) Please double quote $chrome_sandbox_build_path here and $chrome_sandbox_installed_path ...
8 years, 6 months ago (2012-06-05 23:07:05 UTC) #10
Markus (顧孟勤)
This is probably more detailed then what you would normally get from me. But since ...
8 years, 6 months ago (2012-06-05 23:17:57 UTC) #11
Markus (顧孟勤)
https://chromiumcodereview.appspot.com/10541017/diff/1/build/update-linux-sandbox.sh File build/update-linux-sandbox.sh (right): https://chromiumcodereview.appspot.com/10541017/diff/1/build/update-linux-sandbox.sh#newcode1 build/update-linux-sandbox.sh:1: #!/bin/sh You can still do explicit error handling, even ...
8 years, 6 months ago (2012-06-05 23:21:58 UTC) #12
jln (very slow on Chromium)
PTAL Thanks all. Markus: thanks for all the detailed explanations. In this specific script, I ...
8 years, 6 months ago (2012-06-05 23:58:58 UTC) #13
Lei Zhang
https://chromiumcodereview.appspot.com/10541017/diff/5004/build/update-linux-sandbox.sh File build/update-linux-sandbox.sh (right): https://chromiumcodereview.appspot.com/10541017/diff/5004/build/update-linux-sandbox.sh#newcode11 build/update-linux-sandbox.sh:11: # Make sure the path below is not on ...
8 years, 6 months ago (2012-06-06 07:39:33 UTC) #14
jln (very slow on Chromium)
PTAL https://chromiumcodereview.appspot.com/10541017/diff/5004/build/update-linux-sandbox.sh File build/update-linux-sandbox.sh (right): https://chromiumcodereview.appspot.com/10541017/diff/5004/build/update-linux-sandbox.sh#newcode11 build/update-linux-sandbox.sh:11: # Make sure the path below is not ...
8 years, 6 months ago (2012-06-06 19:59:07 UTC) #15
Lei Zhang
lgtm
8 years, 6 months ago (2012-06-06 20:04:13 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jln@chromium.org/10541017/12002
8 years, 6 months ago (2012-06-06 20:10:24 UTC) #17
commit-bot: I haz the power
8 years, 6 months ago (2012-06-06 20:12:47 UTC) #18
Change committed as 140816

Powered by Google App Engine
This is Rietveld 408576698