summaryrefslogtreecommitdiff
path: root/chromium/docs/linux
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2022-02-02 12:21:57 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2022-02-12 08:13:00 +0000
commit606d85f2a5386472314d39923da28c70c60dc8e7 (patch)
treea8f4d7bf997f349f45605e6058259fba0630e4d7 /chromium/docs/linux
parent5786336dda477d04fb98483dca1a5426eebde2d7 (diff)
downloadqtwebengine-chromium-606d85f2a5386472314d39923da28c70c60dc8e7.tar.gz
BASELINE: Update Chromium to 96.0.4664.181
Change-Id: I762cd1da89d73aa6313b4a753fe126c34833f046 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/docs/linux')
-rw-r--r--chromium/docs/linux/instrumented_libraries.md55
-rw-r--r--chromium/docs/linux/plugins.md2
2 files changed, 27 insertions, 30 deletions
diff --git a/chromium/docs/linux/instrumented_libraries.md b/chromium/docs/linux/instrumented_libraries.md
index a007c5255be..70a028f6c2e 100644
--- a/chromium/docs/linux/instrumented_libraries.md
+++ b/chromium/docs/linux/instrumented_libraries.md
@@ -9,7 +9,7 @@ others are optional, and are currently unused.
### Setting up a chroot
Building the libraries requires `apt-get source`, so the build must be done from
-an Ubuntu 14.04 environment. The preferred way is using a chroot. To get
+an Ubuntu 16.04 environment. The preferred way is using a chroot. To get
started, install `debootstrap` and `schroot`. If you're running a Debian-based
distro, run:
@@ -17,19 +17,19 @@ distro, run:
sudo apt install debootstrap schroot
```
-Create a configuration for a Trusty chroot:
+Create a configuration for a Xenial chroot:
```shell
-sudo $EDITOR /etc/schroot/chroot.d/trusty_amd64.conf
+sudo $EDITOR /etc/schroot/chroot.d/xenial_amd64.conf
```
Add the following to the new file, replacing the instances of `thomasanderson`
with your own username.
```
-[trusty_amd64]
-description=Ubuntu 14.04 Trusty for amd64
-directory=/srv/chroot/trusty_amd64
+[xenial_amd64]
+description=Ubuntu 16.04 Xenial for amd64
+directory=/srv/chroot/xenial_amd64
personality=linux
root-users=thomasanderson
type=directory
@@ -39,8 +39,8 @@ users=thomasanderson
Bootstrap the chroot:
```shell
-sudo mkdir -p /srv/chroot/trusty_amd64
-sudo debootstrap --variant=buildd --arch=amd64 trusty /srv/chroot/trusty_amd64 http://archive.ubuntu.com/ubuntu/
+sudo mkdir -p /srv/chroot/xenial_amd64
+sudo debootstrap --variant=buildd --arch=amd64 xenial /srv/chroot/xenial_amd64 http://archive.ubuntu.com/ubuntu/
```
If your `$HOME` directory is not `/home` (as is the case on gLinux), then route
@@ -54,45 +54,45 @@ sudo mount --bind "$HOME" /home
Add `sources.list`:
```shell
-sudo $EDITOR /srv/chroot/trusty_amd64/etc/apt/sources.list
+sudo $EDITOR /srv/chroot/xenial_amd64/etc/apt/sources.list
```
Add the following contents to the file:
```
-deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe
-deb-src http://archive.ubuntu.com/ubuntu/ trusty main restricted universe
-deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe
-deb-src http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe
-deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe
-deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe
+deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe
+deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted universe
+deb http://archive.ubuntu.com/ubuntu/ xenial-security main restricted universe
+deb-src http://archive.ubuntu.com/ubuntu/ xenial-security main restricted universe
+deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe
+deb-src http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe
```
Enter the chroot and install the necessary packages:
```shell
-schroot -c trusty_amd64 -u root --directory /
+schroot -c xenial_amd64 -u root --directory /home/dev/chromium/src
apt update
apt install lsb-release sudo python pkg-config libgtk2.0-bin libdrm-dev nih-dbus-tool help2man
```
-Add `depot_tools` to your `PATH`. For example, I have it in `~/dev/depot_tools`,
-so I use:
+Install library packages:
```shell
-export PATH=/home/thomasanderson/dev/depot_tools/:$PATH
+third_party/instrumented_libraries/scripts/install-build-deps.sh
```
-Change to your src directory:
-
+Change to a non-root user:
```shell
-cd /home/thomasanderson/dev/chromium/src
+exit
+schroot -c xenial_amd64 -u `whoami` --directory /home/dev/chromium/src
```
-Install library packages:
+Add `depot_tools` to your `PATH`. For example, I have it in `~/dev/depot_tools`,
+so I use:
```shell
-third_party/instrumented_libraries/scripts/install-build-deps.sh
+export PATH=/home/dev/depot_tools/:$PATH
```
Now we're ready to build the libraries. A clean build takes a little over 8
@@ -111,15 +111,12 @@ bucket. `dpranke@` can grant access.
# Exit the chroot.
exit
-# Fix permissions.
-sudo chown -R `whoami`:`groups | awk '{print $1;}'` *.tgz out/Instrumented-*
-
# Move files into place.
mv *.tgz third_party/instrumented_libraries/binaries
# Upload.
-upload_to_google_storage.py -b chromium-instrumented-libraries third_party/instrumented_libraries/binaries/msan-chained-origins-trusty.tgz
-upload_to_google_storage.py -b chromium-instrumented-libraries third_party/instrumented_libraries/binaries/msan-no-origins-trusty.tgz
+upload_to_google_storage.py -b chromium-instrumented-libraries third_party/instrumented_libraries/binaries/msan-chained-origins-xenial.tgz
+upload_to_google_storage.py -b chromium-instrumented-libraries third_party/instrumented_libraries/binaries/msan-no-origins-xenial.tgz
```
## Testing and uploading a CL
diff --git a/chromium/docs/linux/plugins.md b/chromium/docs/linux/plugins.md
index 6c1eae60698..5ed9dd6a31e 100644
--- a/chromium/docs/linux/plugins.md
+++ b/chromium/docs/linux/plugins.md
@@ -4,7 +4,7 @@
### Plugins in general
-* [Gecko Plugin API reference](https://developer.mozilla.org/en/Gecko_Plugin_API_Reference)
+* [Gecko Plugin API reference](https://developer.mozilla.org/en-US/docs/Plugins/Guide)
-- most important to read
* [Mozilla plugins site](http://www.mozilla.org/projects/plugins/)
* [XEmbed extension](https://developer.mozilla.org/en/XEmbed_Extension_for_Mozilla_Plugins)