Skip to content

Commit ef02cfc

Browse files
committed
fix: use absolute paths for boringssl include symlink
Relative symlink target resolves relative to the link's own location, not cwd where ln was invoked. quiche/deps/boringssl/src/include pointing at 'target/release/build/...' resolved to quiche/deps/boringssl/src/target/release/build/... (does not exist) — curl ./configure rejected the prefix because dereferencing the include symlink failed. Use absolute /opt/quiche-src/... for both find input and ln target.
1 parent c30313c commit ef02cfc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ RUN cd /opt/quiche-src && \
2222
RUST_BACKTRACE=1 PATH="$HOME/.cargo/bin:$PATH" RUSTFLAGS="-C target-feature=-crt-static" cargo build -vv --package quiche --release --features ffi,pkg-config-meta,qlog --jobs $(nproc) && \
2323
mkdir -p quiche/deps/boringssl/src/lib && \
2424
ln -vnf $(find target/release -name libcrypto.a -o -name libssl.a) quiche/deps/boringssl/src/lib/ && \
25-
BORING_SSL_H=$(find target/release/build -path "*/boring-sys-*/*" -name ssl.h -path "*/openssl/*" | head -1) && \
25+
BORING_SSL_H=$(find /opt/quiche-src/target/release/build -path "*/boring-sys-*/*" -name ssl.h -path "*/openssl/*" | head -1) && \
2626
BORING_INC=$(dirname $(dirname "$BORING_SSL_H")) && \
2727
test -n "$BORING_INC" && test -d "$BORING_INC" && \
28-
ln -vnsfT "$BORING_INC" quiche/deps/boringssl/src/include
28+
ln -vnsfT "$BORING_INC" /opt/quiche-src/quiche/deps/boringssl/src/include
2929

3030
RUN mkdir -p /opt/curl-src && \
3131
tar -xzf /opt/curl.tar.gz -C /opt/curl-src --strip-components=1 && \

0 commit comments

Comments
 (0)