Commit graph

1752 commits

Author SHA1 Message Date
Wu Yu Wei
edd082cdbc Allow bootstrap on Pop!_OS 21.10 2021-12-30 15:40:20 +08:00
Max von Forell
127463a2c5 Update more deprecated python imports.
Signed-off-by: Max von Forell <max@vonforell.de>
2021-12-26 15:43:40 +01:00
Josh Matthews
ba9305438e Update deprecated python import. 2021-12-21 14:24:00 -05:00
Josh Matthews
f4de057784 Vendor mach-1.0.0. 2021-12-21 10:57:18 -05:00
Gio de Guzman
43b38e3e37 update Ubuntu version check to > 21.10
Update clang-format version check to use find() instead of startswith() to deal with distro-specific discrepancy
2021-12-15 02:04:11 -06:00
yvt
332de00336 chore(mach): update the required clang-format version to 13 2021-10-16 10:17:15 +09:00
yvt
8f38a44ee7 chore(mach): update the required clang-format version to 12 2021-10-04 09:39:31 +09:00
yvt
3d31ee5594 chore(mach): upgrade blessings to 1.7 2021-09-20 16:19:42 +09:00
bors-servo
c56783caa0
Auto merge of #28598 - witte:simpleservo-macos, r=jdm
Fix simpleservo binary check on macos

<!-- Please describe your changes on the following line: -->
When compiling libsimpleservo on MacOS 11.5.2 I would get an error at the end of the process saying
```
Error running mach:

    ['build', '-d', '--libsimpleservo']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

servo.command_base.BuildNotFound: No Servo binary found. Perhaps you forgot to run `./mach build`?

  File "/Users/yuriwitte/_HtmlTests/servo/python/servo/build_commands.py", line 734, in build
    self.get_binary_path(release, dev, target=target, simpleservo=libsimpleservo)
  File "/Users/yuriwitte/_HtmlTests/servo/python/servo/command_base.py", line 394, in get_binary_path
    raise BuildNotFound('No Servo binary found.'
```
The binary is there, it's just that `get_binary_path` on `command_base.py` checks for a libsimpleservo **.so** instead of a **.dylib**. This pr fixes this check.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix: didn't find a specific issue for this, but these two are also related to file extensions on MacOS:
https://github.com/servo/servo/issues/27654
https://github.com/servo/servo/issues/27318

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because: they _are_ the tests I guess?

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2021-09-14 15:03:24 -04:00
Yuri Witte
d767191230 Fix simpleservo binary check on macos 2021-09-12 18:24:15 -03:00
Florian-Schoenherr
836b212acd docs: clarify 'clean' command
Signed-off-by: Florian-Schoenherr <florian.schoenherr99@gmail.com>
2021-08-21 12:43:17 +02:00
David Heidelberg
aa0484d76b
mach: cleanup after dropping Python 2 support
Signed-off-by: David Heidelberg <david@ixit.cz>
2021-07-19 14:24:29 +02:00
bors-servo
42d7892d88
Auto merge of #28473 - jdm:codesign-build, r=jdm
Enable codesigning for non-nightly UWP builds
2021-07-02 18:23:22 -04:00
Josh Matthews
137236dc2a Load codesigning secret without JSON. 2021-07-02 18:22:48 -04:00
Tristan Matthews
6b22411aab bootstrap: add support for Ubuntu 21.04
Signed-off-by: Tristan Matthews <tmatth@videolan.org>
2021-07-02 01:23:32 -04:00
bors-servo
d12aa889a6
Auto merge of #28463 - mkg20001:nixos-mach, r=jdm
add NixOS support to mach and automatically re-launch mach in nix-shell

<!-- Please describe your changes on the following line: -->

This is a followup for #28454 which adds nixos support directly to mach, saving the user from typing `nix-shell` everytime

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they just extend mach

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2021-06-25 10:20:57 -04:00
Maciej Krüger
49fc87f385
extend message about nixOS shell 2021-06-21 09:13:47 +02:00
yvt
262a41dd2a Use #!/usr/bin/env bash in shell scripts for NixOS compatibility
Signed-off-by: yvt <i@yvt.jp>
2021-06-14 22:06:09 +09:00
Maciej Krüger
8e48b6fd74
add NixOS support to mach and automatically re-launch mach in nix-shell 2021-06-04 10:56:41 +02:00
Josh Matthews
172274d484 Add UWP builds to github actions. 2021-05-29 16:05:02 -04:00
Josh Matthews
a82b268be0 Convert more taskcluster jobs to Github Actions. 2021-05-23 11:16:09 -04:00
bors-servo
5245f9ff27
Auto merge of #28408 - jdm:pyfixes, r=jdm
Python3 fixes

Fixes #28363.
2021-05-03 00:08:41 -04:00
Josh Matthews
a2356ef105 Fix bytes/string py3 confusion. 2021-05-03 00:07:33 -04:00
Josh Matthews
8d0320de75 Fix deprecated gzipfile constructor argument. 2021-05-03 00:07:12 -04:00
zhengrenzhe
7aca943d5b feat: fix build error on apple m1 2021-04-24 19:15:59 +08:00
dependabot[bot]
d6a2c0676f
build(deps): bump pyyaml from 5.1 to 5.4 in /python/tidy
Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.1 to 5.4.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/5.1...5.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-25 22:39:11 +00:00
Josh Matthews
f8b68ec7f7
Update mozdebug for py3 fixes. 2021-03-21 13:24:20 -04:00
Josh Matthews
6f70bc8448
Update boto3 2021-03-14 13:30:12 -04:00
bors-servo
5dd0cba51d
Auto merge of #27865 - servo:github-actions-dev, r=jdm
Add Github Actions workflow for mac/linux/windows builds
2021-03-11 21:08:05 -05:00
Josh Matthews
3b0b810093
Support extra arguments when running with --debug. 2021-03-05 19:43:33 -05:00
Soveu
05cdb0cdb5 add missing llvm package for fedora 2021-02-26 15:19:52 +01:00
Josh Matthews
a6b872a9d1 Ensure clang-cl is always used in windows builds. 2021-02-26 04:20:23 -05:00
Josh Matthews
30143558b3 Don't package gstreamer when it's disabled. 2021-02-26 04:20:23 -05:00
bors-servo
6e1350f3aa
Auto merge of #27647 - jdm:build-std, r=SimonSapin
Use build-std instead of xargo.

The changes to num-integer and indexmap are to work around https://github.com/cuviper/autocfg/issues/34.
2021-02-25 14:28:24 -05:00
Josh Matthews
9535f228f3 Use build-std instead of xargo. 2021-02-25 10:15:05 -05:00
Simon Sapin
4353d534d4 Port ./mach rustup to Python 3 2021-02-25 09:09:18 +01:00
bors-servo
60b642968b
Auto merge of #28193 - servo:jdm-patch-46, r=jdm
Fix more python2isms
2021-02-25 01:19:51 -05:00
bors-servo
19d1544b66
Auto merge of #27619 - servo:rustup, r=jdm
Upgrade to rustc 1.48.0-nightly (623fb90b5 2020-09-26)

https://github.com/rust-lang/hashbrown/pull/159 reduced `size_of::<HashMap>()`
2021-02-25 00:11:29 -05:00
Josh Matthews
dbc7919a28
Fix encoding call. 2021-02-24 23:08:05 -05:00
bors-servo
1b58747ce1
Auto merge of #28169 - servo:jdm-patch-49, r=jdm
Fix some residual python2isms

Fixes nightly and doc builds.
2021-02-19 17:35:10 -05:00
Josh Matthews
462237db4c
Fix str/bytes confusion when uploading to s3. 2021-02-19 10:28:15 -05:00
Josh Matthews
e1f0ae8b0b
Updat clang-fmt version check. 2021-02-19 10:20:08 -05:00
Josh Matthews
52e1a482c4
Update to LLVM 11. 2021-02-18 23:38:04 -05:00
Vincent Ricard
a627dde0d0 Port some code to Python3 2021-02-18 09:35:46 -05:00
Simon Sapin
ee74a64f53 Silence the warning about rustup --version v.s. rustc --version 2021-01-26 09:23:03 +01:00
Simon Sapin
33651a94ed Upgrade Xargo to v0.3.22
This includes a “Fix for changed rustc directory layout.” change:
https://github.com/japaric/xargo/blob/master/CHANGELOG.md#v0322---2020-07-29

We use Xargo to compile rust-std for Windows UWP targets.
I built `xargo.exe` on Taskcluster with task
https://community-tc.services.mozilla.com/tasks/IHwGq_ViRpGuomBx82XmpQ
created through https://community-tc.services.mozilla.com/tasks/create
with this definition:

```yaml
provisionerId: proj-servo
workerType: win2016
schedulerId: taskcluster-github
created: '2021-01-25T19:39:29.952Z'
deadline: '2021-01-26T19:39:29.952Z'
expires: '2022-01-25T19:39:29.952Z'
payload:
  mounts:
    - file: rustup-init.exe
      content:
        url: https://win.rustup.rs/x86_64
  command:
    - '%HOMEDRIVE%%HOMEPATH%\rustup-init.exe --profile=minimal -y'
    - set PATH=%HOMEDRIVE%%HOMEPATH%\.cargo\bin;%PATH%
    - |-
      cargo install xargo --version 0.3.22
      copy %HOMEDRIVE%%HOMEPATH%\.cargo\bin\xargo.exe .
  artifacts:
    - name: public/xargo.exe
      path: xargo.exe
      type: file
      expires: '2022-01-25T15:07:23.782706Z'
  maxRunTime: 5400
metadata:
  name: Xargo build for Windows
  description: ''
  owner: infra@servo.org
  source: https://community-tc.services.mozilla.com/tasks/create
```

(Note the "update timestamps" button in the bottom-right menu.)

I then created a ZIP file that contains `xargo-v0.3.22/xargo.exe` and
uploaded it with `aws s3 cp ./xargo-v0.3.22.zip s3://servo-deps-2/msvc-deps/`
where our build system can find it.
2021-01-26 09:14:44 +01:00
Vincent Ricard
02e9fc6ff9 Fix bootstrap error on Ubuntu 20.10 2021-01-14 20:00:20 +01:00
Simon Schmeisser
526faa03f4
Add support for KDE neon in bootstrap
it's based on Ubuntu but provides recent (User edition) or git versions of the KDE Plasma desktop environment and ecosystem
2020-12-27 21:34:11 +01:00
Josh Matthews
f0e8d6ee80
Remove unneeded python dependencies. 2020-11-30 09:04:21 -05:00
bors-servo
917fd001fe
Auto merge of #27748 - servo:jdm-patch-47, r=jdm
Fix mac packaging with recent gstreamer.

Fixes #27654.
2020-11-13 11:56:22 -05:00