Package Details: servo-git r48452.2ca6c4b52be-1

Git Clone URL: https://aur.archlinux.org/servo-git.git (read-only, click to copy)
Package Base: servo-git
Description: Parallel Browser Project: web browser written in Rust
Upstream URL: https://github.com/servo/servo
Keywords: browser engine rust
Licenses: MPL
Conflicts: servo
Provides: servo
Submitter: None
Maintainer: alerque (farseerfc, yar)
Last Packager: alerque
Votes: 46
Popularity: 0.44
First Submitted: 2013-08-16 05:23 (UTC)
Last Updated: 2024-08-03 09:45 (UTC)

Dependencies (25)

Required by (0)

Sources (1)

Latest Comments

1 2 3 4 5 6 7 Next › Last »

HurricanePootis commented on 2024-06-28 19:39 (UTC) (edited on 2024-06-28 21:16 (UTC) by HurricanePootis)

Hello this package needs some updates:

  1. License is not SDPX compliant; needs to be changed to MPL-2.0
  2. cargo-nightly instead of cargo. Servo has a rust-toolchain.toml file, which specifies a specific version of rust. To use that, cargo-nightly will install rustup. In addition, the export RUSTUP_TOOLCHAIN=stable needs to be commented out for rust-toolchain.toml to be used.
  3. Disable LTO. Currently, building with LTO enabled results in an error. I tried using lld, export CFLAGS+=" -ffat-lto-objects, and export CXXFLAGS+=" -ffat-lto-objects"—none of them worked.
  4. Autoconf2.13 is no longer needed.

Here is a patch file for the PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index 9000d6c..2c373f8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,12 +4,12 @@
 # Contributor: beatgammit

 pkgname=servo-git
-pkgver=r47479.92196d985dc
+pkgver=r48603.3a0f5649161
 pkgrel=1
 pkgdesc='Parallel Browser Project: web browser written in Rust'
 arch=(x86_64 i686)
 url=https://github.com/servo/servo
-license=(MPL)
+license=(MPL-2.0)
 depends=(bzip2
          fontconfig
          freetype2
@@ -25,8 +25,7 @@ depends=(bzip2
          ttf-font
          xcb-util)
 install="$pkgname.install"
-makedepends=(autoconf2.13
-             cargo
+makedepends=(cargo-nightly
              clang
              cmake
              curl
@@ -41,6 +40,7 @@ provides=("${pkgname%-git}")
 conflicts=("${pkgname%-git}")
 backup=("etc/profile.d/${pkgname%-git}".{csh,sh})
 source=("$pkgname::git+$url.git")
+options=("!lto")
 sha256sums=('SKIP')

 pkgver() {
@@ -56,7 +56,7 @@ prepare() {

 build() {
    cd "$pkgname"
-   export RUSTUP_TOOLCHAIN=stable
+   #export RUSTUP_TOOLCHAIN=stable
    export CARGO_TARGET_DIR=target
    ./mach build --release
 }

micwoj92 commented on 2024-06-02 14:52 (UTC)

I have working pkgbuild.

ccicnce113424 commented on 2024-04-22 12:18 (UTC)

https://github.com/servo/servo/issues/30886#issuecomment-2053977417

cypa commented on 2024-04-10 16:30 (UTC) (edited on 2024-04-10 16:39 (UTC) by cypa)

confirm crown -vV error

error: could not execute process 'crown -vV' (never executed)

Caused by:
  No such file or directory (os error 2)
Failed in 0:00:00
[Warning] Could not generate notification: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable

I guess we need setup proper environment ...

xiota commented on 2024-01-18 19:11 (UTC)

Clean chroot. Same crown -vV error. Unfortunately, I don't know how to fix.

alerque commented on 2024-01-11 09:33 (UTC)

@xiota Happy to accept contributions. Upstream has been messing around with the build system(s) and keep adding and removing stuff. If you have patches that work to make this build at any given point feel free to post them here or ever better PR them here.

xiota commented on 2023-09-25 05:42 (UTC) (edited on 2023-12-24 19:22 (UTC) by xiota)

Clean chroot. Fails to build.

Error from 2023-12-24:

error: could not execute process `crown -vV` (never executed)

Caused by:
  No such file or directory (os error 2)
Failed in 0:00:12
[Warning] Could not generate notification: org.freedesktop.DBus.Error.NotSupported: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead

Error from 2023-09-25:

error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `/home/main-builder/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc - --crate-name ___ --print=file-names -Zgcc-ld=lld --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg` (exit status: 1)
  --- stderr
  error: the option `Z` is only accepted on the nightly compiler

  note: selecting a toolchain with `+toolchain` arguments require a rustup proxy; see <https://rust-lang.github.io/rustup/concepts/index.html>

  help: consider switching to a nightly toolchain: `rustup default nightly`

  note: for more information about Rust's stability policy, see <https://doc.rust-lang.org/book/appendix-07-nightly-rust.html#unstable-features>

Failed in 0:00:06
[Warning] Could not generate notification: org.freedesktop.DBus.Error.NotSupported: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead

alerque commented on 2021-09-21 17:10 (UTC)

@mble It looks like the Arch [community] package for python-blessings is newer than this build demands. Probably the thing to do is patch the servo sources to be more accepting of other versions, then if it doesn't build with 1.7.x submit a patch to servo upstream to fix it. I'm happy to accept such a patch (either in comments with git format-patch or as a PR on this repository) but I'm unlikely to have time to hack around on this build any time too soon. Also either way this should be reported upstream.

mble commented on 2021-09-21 16:42 (UTC)

Updating files:  98% (99189/101213)
Updating files:  99% (100201/101213)
Updating files: 100% (101213/101213)
Updating files: 100% (101213/101213), done.
==> Starting prepare()...
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Obtaining file:///var/tmp/pamac-build-mble/servo-git/src/servo-git/python/tidy (from -r /var/tmp/pamac-build-mble/servo-git/src/servo-git/python/requirements.txt (line 35))
Collecting blessings==1.6
  Using cached blessings-1.6.tar.gz (19 kB)
    ERROR: Command errored out with exit status 1:
     command: /var/tmp/pamac-build-mble/servo-git/src/servo-git/python/_virtualenv3.9/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-dwdd9aw3/blessings_044041f758424b8c8c5d7f6d82c2deeb/setup.py'"'"'; __file__='"'"'/tmp/pip-install-dwdd9aw3/blessings_044041f758424b8c8c5d7f6d82c2deeb/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-dmkmryeq
         cwd: /tmp/pip-install-dwdd9aw3/blessings_044041f758424b8c8c5d7f6d82c2deeb/
    Complete output (1 lines):
    error in blessings setup command: use_2to3 is invalid.
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/af/4a/61acd1c6c29662d3fcbcaee5ba95c20b1d315c5a33534732b6d81e0dc8e8/blessings-1.6.tar.gz#sha256=edc5713061f10966048bf6b40d9a514b381e0ba849c64e034c4ef6c1847d3007 (from https://pypi.org/simple/blessings/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement blessings==1.6 (from versions: 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.5.1, 1.6, 1.6.1, 1.7)
ERROR: No matching distribution found for blessings==1.6
"/var/tmp/pamac-build-mble/servo-git/src/servo-git/python/_virtualenv3.9/bin/python" "-m" "pip" "install" "-I" "-r" "/var/tmp/pamac-build-mble/servo-git/src/servo-git/python/requirements.txt" failed with error code 1:
Output:
Error:
==> ERROR: A failure occurred in build().
    Aborting...