mirror of
https://github.com/iv-org/invidious.git
synced 2026-08-31 03:04:01 +00:00
Compare commits
4 Commits
v2.2026080
...
release-v2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c2a8ba1a4 | ||
|
|
11fb910221 | ||
|
|
f767f8bcd0 | ||
|
|
b10ba5b4cd |
18
CHANGELOG.md
18
CHANGELOG.md
@@ -4,24 +4,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## v2.20260804.1
|
|
||||||
|
|
||||||
### Wrap-up
|
|
||||||
|
|
||||||
This patch release fixes a regression in the OCI (container) build that omitted debug information, making it harder to diagnose issues in production. The fix ensures that the `-no-pie` link flag is passed correctly, restoring debug symbols for better stack traces and crash analysis.
|
|
||||||
|
|
||||||
No new features are included in this release; it is solely focused on improving the debuggability of containerized instances.
|
|
||||||
|
|
||||||
### Bugs fixed
|
|
||||||
#### For instance owners
|
|
||||||
- Debug information is now included again in OCI images by passing the `-no-pie` link flag correctly (#5895)
|
|
||||||
|
|
||||||
### Full list of pull requests merged since the last release (newest first)
|
|
||||||
|
|
||||||
* fix: pass `-no-pie` link flag argument to include debug information again for OCI (https://github.com/iv-org/invidious/pull/5895, by @Fijxu)
|
|
||||||
* Release v2.20260804.0 (https://github.com/iv-org/invidious/pull/5893, by @github-actions[bot])
|
|
||||||
|
|
||||||
## v2.20260804.0
|
## v2.20260804.0
|
||||||
|
|
||||||
### Wrap-up
|
### Wrap-up
|
||||||
|
|||||||
@@ -48,29 +48,17 @@ RUN crystal spec --warnings all \
|
|||||||
ARG OPENSSL_VERSION
|
ARG OPENSSL_VERSION
|
||||||
COPY --from=openssl-builder /openssl-${OPENSSL_VERSION} /openssl-${OPENSSL_VERSION}
|
COPY --from=openssl-builder /openssl-${OPENSSL_VERSION} /openssl-${OPENSSL_VERSION}
|
||||||
|
|
||||||
# 2026-08-04:
|
|
||||||
#
|
|
||||||
# `-no-pie` has been added to link flags due to missing debug information
|
|
||||||
# when compiling Invidious using `--static` (because `--static` enables PIE, but
|
|
||||||
# with PIE enabled, Crystal cannot provide debug information when an error
|
|
||||||
# in Invidious appears)
|
|
||||||
# References:
|
|
||||||
# - https://forum.crystal-lang.org/t/gcc-15-on-alpine-linux-changes-static-to-imply-pie-i-e-static-pie/9074/5?u=fijxu
|
|
||||||
# - https://github.com/crystal-lang/distribution-scripts/issues/445
|
|
||||||
# - https://github.com/84codes/crystal-packages/issues/41
|
|
||||||
#
|
|
||||||
# `-no-pie` can be removed once it's fixed.
|
|
||||||
RUN --mount=type=cache,target=/root/.cache/crystal if [[ "${release}" == 1 ]] ; then \
|
RUN --mount=type=cache,target=/root/.cache/crystal if [[ "${release}" == 1 ]] ; then \
|
||||||
PKG_CONFIG_PATH=/openssl-${OPENSSL_VERSION} \
|
PKG_CONFIG_PATH=/openssl-${OPENSSL_VERSION} \
|
||||||
crystal build ./src/invidious.cr \
|
crystal build ./src/invidious.cr \
|
||||||
--release \
|
--release \
|
||||||
--static --warnings all \
|
--static --warnings all \
|
||||||
--link-flags "-lxml2 -llzma -no-pie"; \
|
--link-flags "-lxml2 -llzma"; \
|
||||||
else \
|
else \
|
||||||
PKG_CONFIG_PATH=/openssl-${OPENSSL_VERSION} \
|
PKG_CONFIG_PATH=/openssl-${OPENSSL_VERSION} \
|
||||||
crystal build ./src/invidious.cr \
|
crystal build ./src/invidious.cr \
|
||||||
--static --warnings all \
|
--static --warnings all \
|
||||||
--link-flags "-lxml2 -llzma -no-pie"; \
|
--link-flags "-lxml2 -llzma"; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FROM alpine:3.24
|
FROM alpine:3.24
|
||||||
|
|||||||
Reference in New Issue
Block a user