Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jinja2: fix dependencies #96381

Closed
wants to merge 43 commits into from
Closed

jinja2: fix dependencies #96381

wants to merge 43 commits into from

Conversation

GovanifY
Copy link
Member

@GovanifY GovanifY commented Aug 26, 2020

Motivation for this change

Jinja2 had a missing dependency on setuptools, uncovered while trying to use llvm-cov+gcovr with meson:

Traceback (most recent call last):
  File "/nix/store/zg111qhdg44rhahz51ixd6dfrwafsasz-python3.8-gcovr-4.2/bin/.gcovr-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/zg111qhdg44rhahz51ixd6dfrwafsasz-python3.8-gcovr-4.2/lib/python3.8/site-packages/gcovr/__main__.py", line 253, in main
    print_reports(covdata, options, logger)
  File "/nix/store/zg111qhdg44rhahz51ixd6dfrwafsasz-python3.8-gcovr-4.2/lib/python3.8/site-packages/gcovr/__main__.py", line 368, in print_reports
    generator(covdata, output.value, options)
  File "/nix/store/zg111qhdg44rhahz51ixd6dfrwafsasz-python3.8-gcovr-4.2/lib/python3.8/site-packages/gcovr/html_generator.py", line 107, in print_html_report
    data['CSS'] = templates().get_template('style.css').render(
  File "/nix/store/zg111qhdg44rhahz51ixd6dfrwafsasz-python3.8-gcovr-4.2/lib/python3.8/site-packages/gcovr/html_generator.py", line 36, in __call__
    return self.get()
  File "/nix/store/zg111qhdg44rhahz51ixd6dfrwafsasz-python3.8-gcovr-4.2/lib/python3.8/site-packages/gcovr/html_generator.py", line 25, in load
    result = fn()
  File "/nix/store/zg111qhdg44rhahz51ixd6dfrwafsasz-python3.8-gcovr-4.2/lib/python3.8/site-packages/gcovr/html_generator.py", line 46, in templates
    loader=PackageLoader('gcovr'),
  File "/nix/store/2qix64mfl3mw7n76z5ii7plrmms51x2g-python3.8-Jinja2-2.11.2/lib/python3.8/site-packages/jinja2/loaders.py", line 233, in __init__
    from pkg_resources import DefaultProvider
ModuleNotFoundError: No module named 'pkg_resources'
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

samuelgrf and others added 30 commits August 10, 2020 22:47
nixosTests.virtualbox: Port to python
intel-compute-runtime: 20.02.15268 -> 20.32.17625
The default is null and the documentation should reflect that.
primeos and others added 11 commits August 26, 2020 14:30
I didn't look into this yet but IIRC M86 will finally have a flag for
Linux to enable VA-API. So we shouldn't need
enable-video-acceleration-on-linux.patch anymore.

But we likely need to update enable-vdpau-support-for-nvidia.patch
when/before M86 hits the stable channel if we want to keep VDPAU
support.
Note: The following might also need to be updated:
substituteStream(): WARNING: pattern '/usr/share/xcb' doesn't match anything in file 'ui/gfx/x/BUILD.gn'
nixos/security/misc: add option unprivilegedUsernsClone
shadowsocks service: support plugins
@FRidh
Copy link
Member

FRidh commented Aug 26, 2020

I feared so, this needs to target staging.

@GovanifY
Copy link
Member Author

@FRidh Should I change the branch of the PR?

@GovanifY GovanifY changed the base branch from master to staging August 26, 2020 15:51
@GovanifY
Copy link
Member Author

Argh, let me rebase the commit and reopen the PR

@GovanifY GovanifY closed this Aug 26, 2020
@GovanifY GovanifY mentioned this pull request Aug 26, 2020
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet