Skip to content

fix build steps - #85

Open
quinlanj wants to merge 2 commits into
NyaMisty:newfrom
quinlanj:@quin/fixReadme
Open

quinlanj wants to merge 2 commits into
NyaMisty:newfrom
quinlanj:@quin/fixReadme

Conversation

@quinlanj

Copy link
Copy Markdown

The most recent distribution of core-crypto assumes the presence of a code coverage script scripts/code-coverage.cmake. This causes cmake to fail and isn't really relevant for our use.

I've changed the build steps to include removing references to code-coverage. Everything builds successfully after that.

@quinlanj quinlanj changed the title @quin/fix readme fix build steps Dec 22, 2022
@Curve

Curve commented Apr 8, 2023

Copy link
Copy Markdown

Small note for arch linux users: You can also install libcorecrypto-git from the aur - which automatically applies the required fixes mentioned here

Ben-Diehlci pushed a commit to Ben-Diehlci/altserver-linux that referenced this pull request Sep 14, 2026
…yaMisty#111)

The buildenv image has not been rebuildable for some time. Three independent
problems stack up; this fixes the first two. The image still does not build, so
NyaMisty#111 stays open -- but each fix was needed to reveal the next, and both are
confirmed against a real build rather than reasoned about.

1. Apple versioned the archive's top-level directory. corecrypto.zip now
   extracts to corecrypto-2024/, not corecrypto/. The download and unzip were
   always fine; the failure was purely a path mismatch, made invisible by
   Docker's WORKDIR silently CREATING the missing /buildenv/corecrypto, so the
   error surfaced one line later as the confusing "source directory does not
   appear to contain CMakeLists.txt". Renamed version-agnostically rather than
   hardcoding -2024, and a `test -f corecrypto/CMakeLists.txt` now fails loudly
   at the real cause if Apple renames it again.

2. Apple's CMakeLists.txt include()s scripts/code-coverage.cmake, which the
   distribution does not ship -- scripts/ contains only the testvector
   converters. This is exactly what upstream PR NyaMisty#85 diagnosed in December 2022
   ("isn't really relevant for our use") and it was never merged. CODE_COVERAGE
   is off by default, so the include at line 63 is the only reference that
   actually breaks configure; the uses at lines 106 and 359 are already guarded.

STILL BROKEN, not addressed here: with both fixes applied, cmake now configures
far enough to fail at CMakeLists.txt:266 with "No SOURCES given to target:
corecrypto_static". CORECRYPTO_SRCS is populated at CoreCryptoSources.cmake:189,
and the Linux branch subtracts CORECRYPTO_EXCLUDE_SRCS at line 262; something in
that interaction empties the list on the 2024 distribution. That is Apple's
CMake, not ours, and needs its own investigation.

None of this blocks the main build, which pulls the prebuilt
ghcr.io/nyamisty/altserver_builder_alpine_* images -- all four verified still
publicly pullable, and all four legs currently build green against them. What is
broken is only the ability to rebuild those images from source, which is a
bus-factor risk rather than an outage.

Verified by building the Dockerfile through the cmake step for arm64v8/alpine:3.15
under Colima; error 1 and error 2 each confirmed present before the fix and
absent after.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Ben-Diehlci pushed a commit to Ben-Diehlci/altserver-linux that referenced this pull request Sep 14, 2026
The full corecrypto make and make install now exit 0 in the alpine builder, so
this is no longer "configure passes, rest unknown". All three layers are fixed:
the corecrypto-2024 directory rename, the missing scripts/code-coverage.cmake
include (upstream PR NyaMisty#85's diagnosis, unmerged since December 2022), and the
stale corecrypto_static/ccrng_static.c path in Apple's own source list.

The buildenv image can be rebuilt from source again, which it could not for
roughly four years. That matters beyond the issue: the whole build depends on
four prebuilt ghcr.io images that nobody could reproduce, so this removes a real
bus-factor risk rather than just closing a ticket.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Ben-Diehlci pushed a commit to Ben-Diehlci/altserver-linux that referenced this pull request Sep 15, 2026
The full corecrypto make and make install now exit 0 in the alpine builder, so
this is no longer "configure passes, rest unknown". All three layers are fixed:
the corecrypto-2024 directory rename, the missing scripts/code-coverage.cmake
include (upstream PR NyaMisty#85's diagnosis, unmerged since December 2022), and the
stale corecrypto_static/ccrng_static.c path in Apple's own source list.

The buildenv image can be rebuilt from source again, which it could not for
roughly four years. That matters beyond the issue: the whole build depends on
four prebuilt ghcr.io images that nobody could reproduce, so this removes a real
bus-factor risk rather than just closing a ticket.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants