You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-07-26 23:21:10 +03:00
26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
# install OSSP uuid (http://www.ossp.org/pkg/lib/uuid/)
|
|
# see https://github.com/docker-library/postgres/pull/255 for more details
|
|
&& wget -O uuid.tar.gz "https://www.mirrorservice.org/sites/ftp.ossp.org/pkg/lib/uuid/uuid-$OSSP_UUID_VERSION.tar.gz" \
|
|
&& echo "$OSSP_UUID_SHA256 *uuid.tar.gz" | sha256sum -c - \
|
|
&& mkdir -p /usr/src/ossp-uuid \
|
|
&& tar \
|
|
--extract \
|
|
--file uuid.tar.gz \
|
|
--directory /usr/src/ossp-uuid \
|
|
--strip-components 1 \
|
|
&& rm uuid.tar.gz \
|
|
&& ( \
|
|
cd /usr/src/ossp-uuid \
|
|
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
|
|
# explicitly update autoconf config.guess and config.sub so they support more arches/libcs
|
|
&& wget -O config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb' \
|
|
&& wget -O config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb' \
|
|
&& ./configure \
|
|
--build="$gnuArch" \
|
|
--prefix=/usr/local \
|
|
&& make -j "$(nproc)" \
|
|
&& make install \
|
|
) \
|
|
&& rm -rf /usr/src/ossp-uuid \
|
|
\
|