Files
gentoo/dev-lang
Sam James 0a892e7951 dev-lang/rust: fix cross-compilation
libssh2-sys was passing -I/usr/include -I/usr/${CHOST}/include to
the compiler, which would then pick up the multilib wrapper for dev-libs/openssl
for CBUILD and break the build. After a lot of trial and error, it seems
this comes from where zlib is used [0]. Use static zlib instead (which
disables searching for zlib in the zlib-sys crate and builds its own). It
seems Google ran into this at some point too [1].

(This happened with mips-linux-gnu.)

In the process of debugging that, I found the PKG_CONFIG_* exports to be
a bit risky in terms of possibly breaking the build in unexpected ways, so
I've changed them to be scoped to the right target, ditto the OPENSSL_* vars.

[0] https://github.com/alexcrichton/ssh2-rs/blob/libssh2-sys-0.3.1/libssh2-sys/build.rs#L153
[1] https://issues.chromium.org/issues/357917328

Bug: https://bugs.gentoo.org/978022
Signed-off-by: Sam James <sam@gentoo.org>
2026-07-05 03:25:11 +01:00
..
…
…
…
…
…
2026-03-14 19:02:59 +01:00
2026-03-10 13:54:16 +01:00
2025-12-19 10:51:55 +01:00
2026-07-04 15:45:37 +02:00
…
2026-03-14 19:02:59 +01:00
2026-07-01 22:33:48 -04:00
2026-06-27 01:54:34 +02:00
2026-06-06 16:38:38 +01:00
…
…
2025-12-19 10:51:55 +01:00
2026-01-07 23:30:21 +01:00
…
2026-05-29 07:14:15 +01:00
2025-12-19 10:51:55 +01:00
2026-06-25 07:45:09 +02:00
2026-01-08 09:04:31 +01:00
2025-12-19 10:51:55 +01:00
…
2025-12-19 10:51:55 +01:00
2025-12-19 10:51:55 +01:00
2026-06-26 04:11:14 +02:00
2026-03-24 10:53:43 -07:00
2026-01-08 22:19:38 +01:00
2026-05-23 12:23:14 +02:00
…
2026-03-09 10:37:38 +00:00
…
2026-05-27 10:54:53 +01:00
2026-07-01 20:02:26 +03:00
…
2026-03-09 10:38:07 +00:00
2025-12-19 10:51:55 +01:00
2025-12-19 10:51:55 +01:00
2026-03-08 17:30:29 +01:00
2026-06-28 17:11:59 +02:00
2025-12-19 10:51:55 +01:00
…
2026-06-26 14:10:54 +02:00
2026-03-09 10:38:32 +00:00
2026-05-13 00:35:10 +01:00
2026-07-05 03:25:11 +01:00
2025-12-19 10:51:55 +01:00
2026-05-12 22:24:25 +02:00
2026-06-14 06:09:41 +01:00
…
…
2026-01-09 18:39:18 +00:00