Skip to content

Commit 6048ed1

Browse files
authored
Merge pull request #123 from rake-compiler/121-update-pkg-config
Update pkg-config in manylinux build images to 0.29.2
2 parents a494383 + d26db4d commit 6048ed1

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

Dockerfile.mri.erb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,17 @@ RUN mv /opt/osxcross/target/bin/<%= target %>-strip /opt/osxcross/target/bin/<%=
226226
RUN echo "export PATH=\$DEVTOOLSET_ROOTPATH/usr/bin:\$PATH" >> /etc/rubybashrc
227227

228228
# Add prefixed versions of compiler tools
229-
RUN for f in addr2line gcc gcov-tool ranlib ar dwp gcc-ranlib nm readelf as elfedit gcc-ar gprof objcopy size c++filt g++ gcov ld objdump strings cpp gcc-nm pkg-config strip ; do ln -sf $DEVTOOLSET_ROOTPATH/usr/bin/$f $DEVTOOLSET_ROOTPATH/usr/bin/<%= target %>-$f ; done
229+
RUN for f in addr2line gcc gcov-tool ranlib ar dwp gcc-ranlib nm readelf as elfedit gcc-ar gprof objcopy size c++filt g++ gcov ld objdump strings cpp gcc-nm strip ; do ln -sf $DEVTOOLSET_ROOTPATH/usr/bin/$f $DEVTOOLSET_ROOTPATH/usr/bin/<%= target %>-$f ; done
230230

231231
# Use builtin functions of newer gcc to avoid linker issues on Musl based Linux
232232
# TODO: remove in v1.6.0 once musl builds have been out for full minor release cycle, see 864be5b2
233233
COPY build/math_h.patch /root/
234234
RUN cd /usr/include/ && \
235235
patch -p1 < /root/math_h.patch
236+
237+
# Update pkg-config because the distro ships 0.27.1 which is old and has bugs and performance issues.
238+
COPY build/mk_pkg_config.sh /root/
239+
RUN /root/mk_pkg_config.sh
236240
<% end %>
237241

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

build/mk_pkg_config.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#! /usr/bin/env bash
2+
3+
set -o errexit
4+
set -o pipefail
5+
set -x
6+
7+
# sha256 from https://lists.freedesktop.org/archives/pkg-config/2017-March/001084.html
8+
TARFILE=pkg-config-0.29.2.tar.gz
9+
DIR=pkg-config-0.29.2
10+
CHECKSUM=6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591
11+
12+
cd /tmp
13+
14+
wget https://pkgconfig.freedesktop.org/releases/${TARFILE}
15+
sha256sum ${TARFILE} | grep "${CHECKSUM}"
16+
17+
tar -xzvf ${TARFILE}
18+
cd $DIR
19+
20+
./configure --prefix=/usr/local
21+
make install
22+
23+
pkg-config --version
24+
echo "OK"

lib/rake_compiler_dock/version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module RakeCompilerDock
2-
VERSION = "1.5.0"
3-
IMAGE_VERSION = "1.5.0"
2+
VERSION = "1.5.1.dev"
3+
IMAGE_VERSION = "1.5.1.dev"
44
end

0 commit comments

Comments
 (0)