Skip to content

[WIP] mitmproxy#59671

Draft
jason1987d wants to merge 4 commits intovoid-linux:masterfrom
jason1987d:mitmproxy
Draft

[WIP] mitmproxy#59671
jason1987d wants to merge 4 commits intovoid-linux:masterfrom
jason1987d:mitmproxy

Conversation

@jason1987d
Copy link
Copy Markdown
Contributor

@jason1987d jason1987d commented Mar 30, 2026

  • New package: bpf-linker-0.10.2
  • New package: python3-mitmproxy-linux-0.12.9.
  • python3-mitmproxy-rs: update to 0.12.9, adopt.
  • mitmproxy: update to 0.12.9, adopt.

Testing the changes

  • I tested the changes in this PR: NO
    Testing will be done once everything compiles.

New package

Local build testing

  • I built this PR locally for my native architecture, x86_64-libc

Running into issues compiling this (new?) dependency python3-mitmproxy-linux. This arch pkgbuild takes an interesting approach, that I have heard from maintainers here when linking this in IRC that this is NOT a good approach, and did not pass CI when I used it. Still here as a reference.
https://gitlab.archlinux.org/archlinux/packaging/packages/python-mitmproxy-rs/-/raw/main/PKGBUILD?ref_type=heads

error: failed to run custom build command for `mitmproxy-linux v0.12.9 (/builddir/python3-mitmproxy-linux-0.12.9/mitmproxy-linux)`

Caused by:
  process didn't exit successfully: `/builddir/python3-mitmproxy-linux-0.12.9/target/release/build/mitmproxy-linux-4ee17dbffa305b0f/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-changed=/builddir/python3-mitmproxy-linux-0.12.9/mitmproxy-linux-ebpf

  --- stderr
  Error: failed to spawn env -u RUSTC -u RUSTC_WORKSPACE_WRAPPER CARGO_ENCODED_RUSTFLAGS="--cfg=bpf_target_arch=\"x86_64\"\u{1f}-Cdebuginfo=2\u{1f}-Clink-arg=--btf" "rustup" "run" "nightly" "cargo" "build" "--package" "mitmproxy-linux-ebpf" "-Z" "build-std=core" "--bins" "--message-format=json" "--release" "--target" "bpfel-unknown-none" "--features" "" "--target-dir" "/builddir/python3-mitmproxy-linux-0.12.9/target/release/build/mitmproxy-linux-7f4baed8fc763a7f/out/mitmproxy-linux-ebpf"

  Caused by:
      No such file or directory (os error 2)
warning: build failed, waiting for other jobs to finish...
💥 maturin failed
  Caused by: Failed to build a native library through cargo
  Caused by: Cargo build finished with "exit status: 101": `env -u CARGO "cargo" "rustc" "--profile" "release" "--message-format" "json-render-diagnostics" "--manifest-path" "/builddir/python3-mitmproxy-linux-0.12.9/mitmproxy-linux/Cargo.toml" "--bin" "mitmproxy-linux-redirector"`
Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/usr/bin/python3', '--compatibility', 'off'] returned non-zero exit status 1

ERROR Backend subprocess exited when trying to invoke build_wheel
=> ERROR: python3-mitmproxy-linux-0.12.9_1: do_build: 'python3 -m build --no-isolation --wheel ${make_build_args} ${make_build_target}' exited with 1
=> ERROR:   in do_build() at common/build-style/python3-pep517.sh:17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant