summaryrefslogtreecommitdiffstats
path: root/build/install-chroot.sh
Commit message (Collapse)AuthorAgeFilesLines
* add proxy support in install-chroot.shjames.wei@intel.com2012-05-091-2/+10
| | | | | | | | | | BUG=126477 TEST= Review URL: https://chromiumcodereview.appspot.com/10375036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136084 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed a few more minor nitpicks:markus@chromium.org2012-03-211-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - "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: svn://svn.chromium.org/chrome/trunk/src@128068 0039d316-1c4b-4281-b951-d872f2087c98
* Lots of tweaks to the install-chroot.sh and install-build-deps.shmarkus@chromium.org2012-03-151-53/+513
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: svn://svn.chromium.org/chrome/trunk/src@126957 0039d316-1c4b-4281-b951-d872f2087c98
* Make chroot setup work better with NFS home dirs.mmoss@chromium.org2012-02-291-2/+4
| | | | | | | | | | BUG=none TEST=install-chroot.sh works on Google corp machines. Review URL: http://codereview.chromium.org/9500022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124265 0039d316-1c4b-4281-b951-d872f2087c98
* Add a flag to control deb-srcs and only add host bins to the chroot if the ↵mmoss@google.com2010-10-201-6/+22
| | | | | | | | | | | | | 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: svn://svn.chromium.org/chrome/trunk/src@63175 0039d316-1c4b-4281-b951-d872f2087c98
* Add the chroot creator to the default set of allowed groups (with override ↵mmoss@google.com2010-10-151-6/+15
| | | | | | | | | | 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: svn://svn.chromium.org/chrome/trunk/src@62790 0039d316-1c4b-4281-b951-d872f2087c98
* Detect available lib64readline version before trying to install in chroot.mmoss@google.com2010-10-151-1/+3
| | | | | | | | | | 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: svn://svn.chromium.org/chrome/trunk/src@62743 0039d316-1c4b-4281-b951-d872f2087c98
* Allow custom repository mirrors and configure chroot for distro updates.mmoss@google.com2010-10-151-9/+86
| | | | | | Review URL: http://codereview.chromium.org/3791007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62684 0039d316-1c4b-4281-b951-d872f2087c98
* Initial cut of a script that installs chroot environment. This can formarkus@chromium.org2010-08-311-0/+221
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: svn://svn.chromium.org/chrome/trunk/src@57962 0039d316-1c4b-4281-b951-d872f2087c98