mgorny-nyan (he) :autism:🙀🚂🐧<p><a href="https://social.treehouse.systems/tags/mitmproxy" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>mitmproxy</span></a> update AKA not how I imagined spending my Saturday.</p><p>Previous post: <a href="https://social.treehouse.systems/@mgorny/114364774872404427" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">social.treehouse.systems/@mgor</span><span class="invisible">ny/114364774872404427</span></a></p><p>So:</p><p>1. With help of vadorovsky, I've learned that I need to pass --no-default-features, and then it uses system LLVM which resolves problems 2. and 4.<br>2. <a href="https://social.treehouse.systems/tags/LLVM" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LLVM</span></a> 20 still fails on that assertion, but Tuesday's LLVM 21 snapshot works fine.<br>3. I also needed to package btfdump for bpf-linker's tests but I was finally able to get them to pass.<br>4. After spending hours trying to figure out mitmproxy-linux build failures, I've finally found a way to build it: I need to remove upstream's logic for building bpf binaries, build them manually with correct RUSTFLAGS, and then build the whole thing. <a href="https://github.com/mitmproxy/mitmproxy/issues/7663" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/mitmproxy/mitmproxy</span><span class="invisible">/issues/7663</span></a><br>5. rustc-build-sysroot crate problem is even worse in mitmproxy-linux.<br>6. mitmproxy-linux's tests segfault (yeah, <a href="https://social.treehouse.systems/tags/RustLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RustLang</span></a>).<br>7. But still, with the packages built, I can get tests to pass on mitmproxy itself.</p><p>So yeah, if I can only figure out what to do about these segfaulting tests, I think we can get new mitmproxy version into <a href="https://social.treehouse.systems/tags/Gentoo" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Gentoo</span></a>. Pinned to one Rust version, but that's better than nothing, I guess.</p>