-
Notifications
You must be signed in to change notification settings - Fork 0
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
cargo panics on non-tty envrionment #17
Comments
https://github.com/rust-lang/cargo/blob/8ecd4f20a9efb626975ac18a016d480dc7183d9b/Cargo.toml#L41 current haiku-stable rust uses is-terminal 0.4.0 |
https://github.com/sunfishcode/is-terminal/blob/v0.4.0/Cargo.toml#L21 is-terminal 0.4.0 uses rustix 0.36.0 |
interesting |
upgrading to 1.68 will fix this or just upgrade rustix as above PR. |
I set up docker on WSL2. Try cross-building rust for Haiku. |
I've created fork of nielx/rust and update rustix version with |
kenz@sora:~/src/rust-haiku-builder/1.67.0/x86_64$ git diff
diff --git a/1.67.0/x86_64/Dockerfile b/1.67.0/x86_64/Dockerfile
index 6e2bbe5..4b6856f 100644
--- a/1.67.0/x86_64/Dockerfile
+++ b/1.67.0/x86_64/Dockerfile
@@ -1,12 +1,12 @@
FROM docker.io/haiku/cross-compiler:x86_64-r1beta4
-ARG RUST_REV=rust-haiku-1.67.0
-ARG RUST_REPO=https://github.com/nielx/rust
+ARG RUST_REV=haiku-stable
+ARG RUST_REPO=https://github.com/kenz-gelsoft/rust
RUN mkdir /build
-RUN wget https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current/packages/openssl-1.1.1s-2-x86_64.hpkg -P /build/ && \
- wget https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current/packages/openssl_devel-1.1.1s-2-x86_64.hpkg -P /build/ && \
+RUN wget https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current/packages/openssl-1.1.1t-1-x86_64.hpkg -P /build/ && \
+ wget https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current/packages/openssl_devel-1.1.1t-1-x86_64.hpkg -P /build/ && \
wget https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current/packages/curl-7.85.0-2-x86_64.hpkg -P /build/ && \
wget https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current/packages/curl_devel-7.85.0-2-x86_64.hpkg -P /build/ && \
wget https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current/packages/nghttp2-1.43.0-1-x86_64.hpkg -P /build/ && \ |
I skimmed HaikuPorter guide https://github.com/haikuports/haikuports/wiki/A-Gentle-Introduction-to-HaikuPorter-%231 will follow to generate .hpkg file |
Dockerfile build of the haiku-rust-builder repo fails repeatedly. Will try manual build in the container environment. |
kenz@sora:~/src/rust-haiku-builder/1.67.0/x86_64$ git diff
diff --git a/1.67.0/x86_64/Dockerfile b/1.67.0/x86_64/Dockerfile
index 6e2bbe5..946dd31 100644
--- a/1.67.0/x86_64/Dockerfile
+++ b/1.67.0/x86_64/Dockerfile
@@ -1,12 +1,12 @@
FROM docker.io/haiku/cross-compiler:x86_64-r1beta4
-ARG RUST_REV=rust-haiku-1.67.0
-ARG RUST_REPO=https://github.com/nielx/rust
+ARG RUST_REV=haiku-stable
+ARG RUST_REPO=https://github.com/kenz-gelsoft/rust
RUN mkdir /build
-RUN wget https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current/packages/openssl-1.1.1s-2-x86_64.hpkg -P /build/ && \
- wget https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current/packages/openssl_devel-1.1.1s-2-x86_64.hpkg -P /build/ && \
+RUN wget https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current/packages/openssl-1.1.1t-1-x86_64.hpkg -P /build/ && \
+ wget https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current/packages/openssl_devel-1.1.1t-1-x86_64.hpkg -P /build/ && \
wget https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current/packages/curl-7.85.0-2-x86_64.hpkg -P /build/ && \
wget https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current/packages/curl_devel-7.85.0-2-x86_64.hpkg -P /build/ && \
wget https://eu.hpkg.haiku-os.org/haikuports/master/x86_64/current/packages/nghttp2-1.43.0-1-x86_64.hpkg -P /build/ && \
@@ -19,11 +19,11 @@ RUN cd /build/ && git clone --depth=1 --branch $RUST_REV --shallow-submodules --
COPY config.toml /build/rust/
-RUN cd /build/rust/ && \
- X86_64_UNKNOWN_HAIKU_OPENSSL_LIB_DIR=/system/develop/lib/ \
- X86_64_UNKNOWN_HAIKU_OPENSSL_INCLUDE_DIR=/system/develop/headers/ \
- ./x.py -j 8 dist
-
-RUN mkdir /output/ && mv /build/rust/build/dist/* /output && rm -rf /build/
-
-WORKDIR /output/
+#RUN cd /build/rust/ && \
+# X86_64_UNKNOWN_HAIKU_OPENSSL_LIB_DIR=/system/develop/lib/ \
+# X86_64_UNKNOWN_HAIKU_OPENSSL_INCLUDE_DIR=/system/develop/headers/ \
+# ./x.py -j 8 dist
+#
+#RUN mkdir /output/ && mv /build/rust/build/dist/* /output && rm -rf /build/
+#
+#WORKDIR /output/
image built
|
(snip)
|
OK built files can't be uploaded as too large
|
installed in home
|
Official rust_bin package is updated to 1.69 closing |
No description provided.
The text was updated successfully, but these errors were encountered: