Граф коммитов

20 Коммитов

Автор SHA1 Сообщение Дата
sbc bd4f61d663 Fix install-chroot.sh for recent versions of ubuntu
Recent version of ubuntu such as trusty and saucy
and have a newer version of schroot.  The change
teaches install-chroot.sh about the differences.

Also, remove --no-lib32 argument to install-build-deps
which no longer exists (means this script has been
broken for quite a while now).

TEST=install precise32bit chroot and build chrome within it
BUG=410101

Review URL: https://codereview.chromium.org/1173713002

Cr-Original-Commit-Position: refs/heads/master@{#336594}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: fdfaf8fa0c1879ff9557172b7f433747fa7355a9
2015-06-29 18:19:53 +00:00
yyanagisawa e82fa23399 Install libstdc++:amd64 in install-chroot.sh.
Install libstdc++:amd64 to be used by 64bit goma inside 32bit env.

BUG=https://code.google.com/p/chromium/issues/detail?id=409482

Review URL: https://codereview.chromium.org/647193004

Cr-Original-Commit-Position: refs/heads/master@{#300080}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: dc73b4aa729c20d70540a5fe1411b2100a488450
2014-10-17 08:46:54 +00:00
yyanagisawa b0d2f60279 Better handling of goma inside chroot environment.
/tmp is shared between inside and outside of chroot.  It confuses
goma client.  To avoid such a confusion, make goma use different
temporary directory from external world.

BUG=409482

Review URL: https://codereview.chromium.org/637863002

Cr-Original-Commit-Position: refs/heads/master@{#298822}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 53d0973ee890273cd78fd657556907dc0a91d2dc
2014-10-09 07:18:35 +00:00
yyanagisawa a483ba4408 Add lsof to chroot.
BUG=409482
NOTRY=true

Review URL: https://codereview.chromium.org/631593003

Cr-Original-Commit-Position: refs/heads/master@{#298662}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9061716adeebd331494cf8a1d473302f3d303066
2014-10-08 06:26:01 +00:00
tnagel@chromium.org b712e5e245 Fix 'except' and 'prefer' spelling.
TBR=marja, stevenjb, yosin
BUG=none

Review URL: https://codereview.chromium.org/382153006

git-svn-id: http://src.chromium.org/svn/trunk/src/build@283419 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-07-16 17:53:20 +00:00
markus@chromium.org 314b1afc29 We sometimes erroneously detected processes in other sessions
as belonging to our session. Consequently, we would terminate
these processes when our session shut down. We are now more
conservative about deleting processes when a session ends.

BUG=n/a
TEST=Start two instances of the same chroot (e.g. precise32) in two different shell windows. Terminate one of them. Notice that the other one is still running.
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/20010003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@213049 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-23 05:36:07 +00:00
tony@chromium.org 3628e57d61 Use dpkg --add-architecture if it's available.
Newer versions of dpkg put the information for multiarch in a different
spot.

BUG=None

Review URL: https://codereview.chromium.org/11570071

git-svn-id: http://src.chromium.org/svn/trunk/src/build@174482 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-22 00:51:00 +00:00
tony@chromium.org a4c7937352 Mount /run and /run/shm in chroots.
When running layout tests, we need /run/shm.  Previously we wouldn't
install it because the chroot didn't have /run.  Now we will mount
/run and /run/shm in the chroot.

BUG=166632


Review URL: https://chromiumcodereview.appspot.com/11649050

git-svn-id: http://src.chromium.org/svn/trunk/src/build@174326 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-21 02:58:34 +00:00
james.wei@intel.com ab9e585cfb Use chroot name instead of full path chroot command
chroot name is desired for -c option instead of the full path chroot
command

BUG=


Review URL: https://chromiumcodereview.appspot.com/11418284

git-svn-id: http://src.chromium.org/svn/trunk/src/build@171145 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-05 03:35:56 +00:00
tansell@google.com 885efeb3a4 Always reference newly created script using full path.
When running build/install-chroot.sh to setup a Lucid64 environment for
testing on a Ubuntu Precise box the script fails with
  sudo: lucid64: command not found

This is because in Ubuntu Precise root does not have /usr/local/bin in
the path. Most references use the full path, this changes the remaining
to do so too.

BUG=155451


Review URL: https://chromiumcodereview.appspot.com/11187019

git-svn-id: http://src.chromium.org/svn/trunk/src/build@162431 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-17 16:47:59 +00:00
tansell@google.com d0429761b7 Stop cron during cleanup.
crond is another one of these applications which gets automatically
started by many things.

BUG=155452


Review URL: https://chromiumcodereview.appspot.com/11191019

git-svn-id: http://src.chromium.org/svn/trunk/src/build@162429 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-17 16:45:29 +00:00
james.wei@intel.com b73e3df10b add proxy support in install-chroot.sh
BUG=126477
TEST=


Review URL: https://chromiumcodereview.appspot.com/10375036

git-svn-id: http://src.chromium.org/svn/trunk/src/build@136084 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-09 18:31:56 +00:00
markus@chromium.org 23abeb0659 Fixed a few more minor nitpicks:
- "apt-cache show" is more appropriate for us then
   "dpkg --print-avail"

 - the test that was supposed to find the correct name for
   the nspr and nss libraries didn't work correctly for
   distributions (e.g. natty) that for a transition period
   included both versions of the library. The new test has
   been verified to work with natty.

 - it is annoying that the "--clean" option sometimes fails
   with a hard-to-understand error message. We now always
   use "sudo" to avoid confusing users.

 - apart from dbus, some distributions apparently also keep
   rsyslogd running after installing the build dependencies.
   If this keeps popping up as a problem, we might have to
   eventually device a more generic solution.

 - when the user told us to remove an old install, try to
   remove all traces, instead of just the parts that cost
   a lot of disk space.

BUG=none
TEST=verify that we can install natty32bit (with debug symbols) and that afterwards Chrome can be built.
Review URL: https://chromiumcodereview.appspot.com/9764004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@128068 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-03-21 22:09:41 +00:00
markus@chromium.org 65b83bcff9 Lots of tweaks to the install-chroot.sh and install-build-deps.sh
script to make them more userfriendly.

In particular, we now recognize systems that have multiple filesystems
(e.g. /home on NFS) and offer to do the right thing.

We also have better support for new Ubuntu distributions (both as
host and as guest). This means, we can now test on "precise".

Added a lot of extra error handling to catch common problems and either
fix them or offer suggestions on how the user can fix them. For example,
we now detect if the user tries to re-install the same chroot environment
multiple times; and we then offer to delete or overwrite the old
installation.

We also detect if a chroot environment is still in active use, and then
refuse to damage it.

In order to help users, who accidentally left an old chroot enviroment
running, we have added a "clean up" option to the wrapper script.

We automatically invoke install-build-deps.sh from install-chroot.sh,
so users only need to run install-chroot.sh and then answer a couple
of questions.

BUG=none
TEST=run install-chroot.sh on a Ubuntu machine and install both lucid32 and precise32. Verify that afterwards, we can build Chrome inside the chroot.
Review URL: https://chromiumcodereview.appspot.com/9702047

git-svn-id: http://src.chromium.org/svn/trunk/src/build@126957 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-03-15 19:05:18 +00:00
mmoss@chromium.org 984be559d3 Make chroot setup work better with NFS home dirs.
BUG=none
TEST=install-chroot.sh works on Google corp machines.


Review URL: http://codereview.chromium.org/9500022

git-svn-id: http://src.chromium.org/svn/trunk/src/build@124265 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-02-29 22:08:46 +00:00
mmoss@google.com 2fe04ed138 Add a flag to control deb-srcs and only add host bins to the chroot if the distro matches.
This fixes a problem on the Chrome buildbots where installing a hardy32 chroot
on a lucid64 machine results in 'ld' and other files in the chroot which do not
work because glibc is too old, and also prevents problems with apt-get fetching
from custom mirrors without source packages.

Review URL: http://codereview.chromium.org/3797014

git-svn-id: http://src.chromium.org/svn/trunk/src/build@63175 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-10-20 03:32:17 +00:00
mmoss@google.com 4454d015db Add the chroot creator to the default set of allowed groups (with override flag).
This fixes a buildbot issue where chroots can't be used without sudo (because there is no 'admin' group, and chrome-bot only belongs to the 'chrome-bot' group).

Review URL: http://codereview.chromium.org/3755010

git-svn-id: http://src.chromium.org/svn/trunk/src/build@62790 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-10-15 20:56:22 +00:00
mmoss@google.com 4ba9b32895 Detect available lib64readline version before trying to install in chroot.
This fixes a problem where creating a hardy32 chroot fails because the package
name used to be lib64readline5. Perhaps all the packages should be detected
like this, but it can wait until we know if there are other incompatibilities.

Review URL: http://codereview.chromium.org/3775010

git-svn-id: http://src.chromium.org/svn/trunk/src/build@62743 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-10-15 15:18:16 +00:00
mmoss@google.com 26b3463fcd Allow custom repository mirrors and configure chroot for distro updates.
Review URL: http://codereview.chromium.org/3791007

git-svn-id: http://src.chromium.org/svn/trunk/src/build@62684 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-10-15 00:40:39 +00:00
markus@chromium.org 4ea399d5fa Initial cut of a script that installs chroot environment. This can for
example be used to have an accurate 32bit build and test environment when
otherwise working on a 64bit machine.

This script only works on Debian-derived systems.

BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3272004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@57962 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2010-08-31 05:01:15 +00:00