33
44# === Build stage ===
55
6- FROM registry.fedoraproject.org/fedora:39 AS build
6+ FROM registry.fedoraproject.org/fedora:40 AS build
77ARG MOZJS_BRANCH=mozjs115
88ARG MOZJS_BUILDDEPS=${MOZJS_BRANCH}
99ARG BUILD_OPTS=
@@ -26,14 +26,14 @@ RUN dnf -y install 'dnf-command(builddep)' \
2626 rust \
2727 which \
2828 xz
29- RUN dnf -y builddep ${MOZJS_BUILDDEPS} glib2 gobject-introspection
29+ RUN dnf -y builddep ${MOZJS_BUILDDEPS} gobject-introspection
3030
3131WORKDIR /root
3232
3333RUN mkdir -p include-what-you-use/_build
34- ADD https://include-what-you-use.org/downloads/include-what-you-use-0.21 .src.tar.gz /root/include-what-you-use/
34+ ADD https://include-what-you-use.org/downloads/include-what-you-use-0.22 .src.tar.gz /root/include-what-you-use/
3535WORKDIR /root/include-what-you-use
36- RUN tar xzf include-what-you-use-0.21 .src.tar.gz --strip-components=1
36+ RUN tar xzf include-what-you-use-0.22 .src.tar.gz --strip-components=1
3737
3838WORKDIR /root/include-what-you-use/_build
3939
@@ -58,32 +58,21 @@ RUN rm -f /root/mozjs-install/usr/lib64/libjs_static.ajs
5858
5959WORKDIR /root
6060
61- # Install gnome-introspection from main, so that we can test against it
62- # Temporarily, we can only build gobject-introspection with a GLib that's new
63- # enough to generate its own GIRs
64- RUN git clone https://gitlab.gnome.org/GNOME/glib.git
61+ # Install gobject-introspection from main, so that we can test against it
6562RUN git clone https://gitlab.gnome.org/GNOME/gobject-introspection.git
6663
6764ENV PATH=/opt/GNOME/bin:$PATH
6865ENV LD_LIBRARY_PATH=/opt/GNOME/lib64:$LD_LIBRARY_PATH
6966ENV PKG_CONFIG_PATH=/opt/GNOME/lib64/pkgconfig:$PKG_CONFIG_PATH
7067
71- WORKDIR /root/glib
72- RUN meson setup _build . --prefix=/opt/GNOME --buildtype debugoptimized -Dintrospection=disabled
73- RUN ninja -C _build install
74-
7568WORKDIR /root/gobject-introspection
7669RUN meson setup _build . --prefix=/opt/GNOME --buildtype debugoptimized -Dbuild_introspection_data=false
7770RUN DESTDIR=/root/g-i-install ninja -C _build install
7871RUN ninja -C _build install
7972
80- WORKDIR /root/glib
81- RUN meson configure _build -Dintrospection=enabled
82- RUN DESTDIR=/root/glib-install ninja -C _build install
83-
8473# === Actual Docker image ===
8574
86- FROM registry.fedoraproject.org/fedora:39
75+ FROM registry.fedoraproject.org/fedora:40
8776
8877ARG LOCALES=tr_TR
8978ENV SHELL=/bin/bash
@@ -142,7 +131,6 @@ RUN dnf -y install --enablerepo=fedora-debuginfo,updates-debuginfo \
142131
143132COPY --from=build /root/mozjs-install/usr /usr
144133COPY --from=build /root/iwyu-install/usr /usr
145- COPY --from=build /root/glib-install/opt /opt
146134COPY --from=build /root/g-i-install/opt /opt
147135RUN ln -s /usr/bin/iwyu_tool.py /usr/bin/iwyu_tool
148136
0 commit comments