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

Commit 55da49d

Browse files
committed
Use more recent meson for release, docs, and windows with pip.
1 parent 6cb3f46 commit 55da49d

File tree

6 files changed

+18
-9
lines changed

6 files changed

+18
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
### Overview:
2-
- `naev-artwork` (Used to render naev artwork.) ***DEPRECATED***
32
- `naev-docs` (Used for building website and docs.)
4-
- `naev-linux-archaic` (Used for old release builds) ***DEPRECATED***
53
- `naev-macos` (Used to cross compile for macOS.)
64
- `naev-release` (Used for packaging releases)
75
- `naev-steamruntime` (Used for testing linux steam builds in the steamruntime (sniper) environment with extra dependencies installed.)
86
- `naev-windows` (Used to cross compile for Windows.)
7+
- `naev-artwork` (Used to render naev artwork.) ***DEPRECATED***
8+
- `naev-linux-archaic` (Used for old release builds) ***DEPRECATED***
9+
10+
### v1.12.4
11+
- `naev-windows`, `naev-release`, and `naev-docs` also try to use a recent meson as fedora 41 version is too old for rust
912

1013
### v1.12.3
1114
- Update `naev-windows` to include more packages to help build Rust branch

naev-docs/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ ENV IMAGE_NAME "naev-docs"
1010
COPY setup-devenv.sh /usr/bin
1111

1212
# Install utilities
13-
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install make meson ninja-build clang gcc git GraphicsMagick llvm libyaml openssl optipng rustup zlib \
13+
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install make python3-pip meson ninja-build clang gcc git GraphicsMagick llvm libyaml openssl optipng rustup zlib \
1414
python3-pyyaml rsync tidy tar unzip xz zip \
1515
# Install ldoc
1616
lua-ldoc \
1717
# Install LaTeX packages
1818
latexmk texlive-luahbtex texlive-roboto texlive-preprint texlive-parskip texlive-sfmath \
1919
texlive-markdown texlive-csvsimple texlive-gobble texlive-microtype texlive-minted texlive-newunicodechar && \
2020
microdnf clean all && \
21+
# Need Meson >=1.7.0 for rust_std=2024, which needs Fedora 42
22+
python3 -m pip install meson --upgrade && \
2123
# Verify tool versions and install locations.
2224
echo "Verifying latexmk install" && \
2325
command -v latexmk && \

naev-macos/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ ENV APPIMAGE_EXTRACT_AND_RUN 1
101101
# Install build tools.
102102
RUN microdnf --nodocs --setopt=install_weak_deps=0 -y install clang cmake gettext genisoimage git llvm meson ninja-build python3-pip python3-pyyaml rustup unzip tar texinfo xz zlib zip && \
103103
microdnf clean all && \
104-
# Need Meson >=1.2.0 for fancy wrap files.
104+
# Need Meson >=1.7.0 for rust_std=2024, which needs Fedora 42
105105
python3 -m pip install meson --upgrade && \
106106
# Verify tool version.
107107
echo "Verifying meson install" && \

naev-release/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ WORKDIR /tmp
2323
# Install utilities
2424
RUN curl -L -O https://cli.github.com/packages/rpm/gh-cli.repo --output-dir /etc/yum.repos.d && \
2525
microdnf update -y && \
26-
microdnf --nodocs --setopt=install_weak_deps=0 -y install gh meson ninja-build clang gcc python3-pyyaml file git readline-devel rustup tar xz unzip zip \
26+
microdnf --nodocs --setopt=install_weak_deps=0 -y install gh python3-pip meson ninja-build clang gcc python3-pyyaml file git readline-devel rustup tar xz unzip zip \
2727
# Install SteamCMD and friends
2828
glibc.i686 SDL2.i686 && \
2929
microdnf clean all && \
30+
# Need Meson >=1.7.0 for rust_std=2024, which needs Fedora 42
31+
python3 -m pip install meson --upgrade && \
3032
# Download and install SteamCMD
3133
curl -L -O http://media.steampowered.com/installer/steamcmd_linux.tar.gz && \
3234
mkdir -p /opt/steamcmd && \

naev-steamruntime/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ENV RANLIB llvm-ranlib
1616
ENV STRIP llvm-strip
1717
ENV LD ld.lld
1818

19-
ENV CFLAGS "-fPIC"
19+
ENV CFLAGS "-fPIC"
2020
ENV CXXFLAGS "-fPIC"
2121

2222
# Install luarocks deps
@@ -143,7 +143,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python3-pip \
143143
apt-get clean && \
144144
# Install mutagen module for soundtrack generation
145145
python3 -m pip install mutagen && \
146-
# Need Meson >=1.2.0 for fancy wrap files.
146+
# Need Meson >=1.7.0 for rust_std=2024, which is obviously not up-to-date in steamOS
147147
python3 -m pip install meson --upgrade && \
148148
# Verify meson and python.
149149
echo "Verifying python install" && \
@@ -165,4 +165,4 @@ ENV APPIMAGE_EXTRACT_AND_RUN 1
165165
# Set WORKDIR when you spin up the image.
166166
RUN mkdir -p /tmp/naevBuild
167167
WORKDIR /tmp/naevBuild
168-
CMD [ "/usr/bin/setup-devenv.sh", "/bin/bash" ]
168+
CMD [ "/usr/bin/setup-devenv.sh", "/bin/bash" ]

naev-windows/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ COPY _copr:copr.fedorainfracloud.org:jackgreiner:ucrt64-libraries.repo /etc/yum.
1414
COPY setup-devenv.sh /usr/bin
1515

1616
RUN microdnf update -y && \
17-
microdnf --nodocs --setopt=install_weak_deps=0 -y install clang gcc gettext git lld llvm meson ninja-build python3-pyyaml rustup tar texinfo xz unzip zip \
17+
microdnf --nodocs --setopt=install_weak_deps=0 -y install clang gcc gettext git lld llvm python3-pip meson ninja-build python3-pyyaml rustup tar texinfo xz unzip zip \
1818
# OK, seems like the rust is a bit a of mess as it is trying to compile some things internally with hardcoded mingw64 paths
1919
# We have to toss the dependencies here so that it works. In particular, mlua-sys seems to want to build luajit
2020
# Would make sense to try to use either only ucrt64 or mingw64 stuff someday
@@ -25,6 +25,8 @@ RUN microdnf update -y && \
2525
ucrt64-gcc ucrt64-gcc-c++ ucrt64-dlfcn ucrt64-enet ucrt64-freetype ucrt64-libvorbis ucrt64-libxml2 ucrt64-libtiff \
2626
ucrt64-openal-soft ucrt64-SDL2 ucrt64-SDL2_image ucrt64-libpng mingw32-nsis ucrt64-pcre2 ucrt64-physfs && \
2727
microdnf clean all && \
28+
# Need Meson >=1.7.0 for rust_std=2024, which needs Fedora 42
29+
python3 -m pip install meson --upgrade && \
2830
# Install openblas for mingw (building this from source is an option but probably painful)
2931
curl -L -O https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.28/OpenBLAS-0.3.28-x64-64.zip && \
3032
unzip OpenBLAS-0.3.28-x64-64.zip -d /usr/x86_64-w64-mingw32ucrt/sys-root/mingw && \

0 commit comments

Comments
 (0)