Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit 985cca7

Browse files
Rethink how to configure macports.
This will configure macports based on the BUILDARCH env variable. This is why sleep is a good thing.
1 parent 7c8741b commit 985cca7

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

naev-macos/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ WORKDIR /
7272
COPY --from=build /usr/lib/osxcross /usr/lib/osxcross
7373
COPY --from=build /usr/local/bin/dmg /usr/bin
7474
# Copy Entrypoint
75-
COPY docker-entrypoint.sh /tmp
75+
COPY macports-configure.sh /usr/bin
7676

7777
LABEL org.opencontainers.image.authors "Naev Dev Team"
7878
LABEL org.opencontainers.image.source "https://github.com/naev/naev-infrastructure"
@@ -111,5 +111,3 @@ RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install clang cmake gettex
111111
# Set WORKDIR when you spin up the image.
112112
mkdir -p /tmp/naevBuild
113113
WORKDIR /tmp/naevBuild
114-
ENTRYPOINT ["/tmp/docker-entrypoint.sh"]
115-
CMD ["bash"]
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@
88
if [[ "$BUILDARCH" == "aarch64" ]] then
99
export HOST="aarch64-apple-darwin23"
1010
export MACOSX_DEPLOYMENT_TARGET="$AARCH64_DEPLOYMENT_TARGET"
11-
mv /usr/lib/osxcross/macports.aarch64 /usr/lib/osxcross/macports
11+
rm -f /usr/lib/osxcross/macports
12+
ln -s /usr/lib/osxcross/macports.aarch64 /usr/lib/osxcross/macports
1213
elif [[ "$BUILDARCH" == "x86_64" ]] then
1314
export HOST="x86_64-apple-darwin23"
1415
export MACOSX_DEPLOYMENT_TARGET="$X86_64_DEPLOYMENT_TARGET"
15-
mv /usr/lib/osxcross/macports.x86_64 /usr/lib/osxcross/macports
16+
rm -f /usr/lib/osxcross/macports
17+
ln -s /usr/lib/osxcross/macports.x86_64 /usr/lib/osxcross/macports
1618
# Fallback
1719
else
1820
export HOST="x86_64-apple-darwin23"
1921
export MACOSX_DEPLOYMENT_TARGET="$X86_64_DEPLOYMENT_TARGET"
20-
mv /usr/lib/osxcross/macports.x86_64 /usr/lib/osxcross/macports
22+
rm -f /usr/lib/osxcross/macports
23+
ln -s /usr/lib/osxcross/macports.x86_64 /usr/lib/osxcross/macports
2124
fi
22-
23-
exec "$@"

0 commit comments

Comments
 (0)