Skip to content

Commit c439304

Browse files
committed
Install mig which is a Macos specific RPC code generator
It is part of xcode, but not part of our RCD installation so far. "mig" command is used by krb5 for instance. Fortunately there's a port for Linux, so it can be installed easily.
1 parent 89eac8c commit c439304

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Dockerfile.mri.erb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,18 @@ RUN printf "1\n" | update-alternatives --config <%= target %>-gcc && \
197197
COPY build/strip_wrapper_codesign /root/
198198
RUN mv /opt/osxcross/target/bin/<%= target %>-strip /opt/osxcross/target/bin/<%= target %>-strip.bin && \
199199
ln /root/strip_wrapper_codesign /opt/osxcross/target/bin/<%= target %>-strip
200+
201+
# Install mig which is a Macos specific RPC code generator, which is part of xcode
202+
RUN apt-get -y update && \
203+
apt-get install -y bison flex && \
204+
rm -rf /var/lib/apt/lists/*
205+
RUN git clone --branch=cross_platform https://github.com/markmentovai/bootstrap_cmds && \
206+
cd bootstrap_cmds && \
207+
autoreconf --install && \
208+
sh configure && \
209+
make && \
210+
sed -E -i 's/^cppflags=(.*)/cppflags=(\1 "-D<%= platform =~ /arm64/ ? "__arm64__" : "__x86_64__" %>" "-I\/opt\/osxcross\/target\/SDK\/MacOSX11.1.sdk\/usr\/include")/' migcom.tproj/mig.sh && \
211+
sudo make install
200212
<% end %>
201213

202214
<% if platform =~ /arm64-darwin/ %>

0 commit comments

Comments
 (0)