@@ -156,13 +156,21 @@ FROM build_cpython AS build_cpython314_nogil
156156RUN manylinux-entrypoint /build_scripts/build-cpython.sh
[email protected] https://github.com/login/oauth 3.14.0b1 nogil
157157
158158# Build and install more packages from source
159- # Have to build from git source, bcs of submodules..
159+ # Have to build prime_server from git source, bcs of submodules..
160160FROM build_git AS build_prime_server
161161COPY build_scripts/build-prime_server.sh /build_scripts/
162162RUN export PRIME_ROOT=prime_server-0.7.0 && \
163163 export PRIME_GIT_URL=https://github.com/kevinkreiser/prime_server && \
164164 manylinux-entrypoint /build_scripts/build-prime_server.sh
165165
166+ # patchelf in AlmaLinux has a bug which corrupts "valhalla_service"
167+ # installing 523f401 from 15.02.2025, which works nicely
168+ FROM build_git AS build_patchelf
169+ COPY build_scripts/build-patchelf.sh /build_scripts/
170+ RUN export PATCHELF_ROOT=patchelf-523f401 && \
171+ export PATCHELF_GIT_URL=https://github.com/NixOS/patchelf && \
172+ manylinux-entrypoint /build_scripts/build-patchelf.sh
173+
166174# AlmaLinux 8 has protobuf 3.5.0; IIRC that was too old for Valhalla
167175FROM build_base AS build_protobuf
168176COPY build_scripts/build-protobuf.sh /build_scripts/
@@ -191,6 +199,7 @@ COPY --from=build_mpdecimal /manylinux-rootfs /
191199COPY --from=build_sqlite3 /manylinux-rootfs /
192200COPY --from=build_git /manylinux-rootfs /
193201COPY --from=build_prime_server /manylinux-rootfs /
202+ COPY --from=build_patchelf /manylinux-rootfs /
194203COPY --from=build_protobuf /manylinux-rootfs /
195204COPY --from=build_boost /manylinux-rootfs /
196205COPY --from=build_geos /manylinux-rootfs /
0 commit comments