Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Revert "Merge pull request #1585 from AxelNennker/libsodium-1.0.17"
Browse files Browse the repository at this point in the history
This reverts commit c9a16f8, reversing
changes made to 61232de.
  • Loading branch information
jovfer committed Aug 29, 2019
1 parent d00c101 commit 2322013
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 33 deletions.
6 changes: 3 additions & 3 deletions docs/build-guides/rhel-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ dnf install -y \
For Amazon Linux 2017.03 or other distributions without `libsodium` available in system repositories:
```
cd /tmp
curl https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz | tar -xz
cd /tmp/libsodium-1.0.18
curl https://download.libsodium.org/libsodium/releases/old/libsodium-1.0.14.tar.gz | tar -xz
cd /tmp/libsodium-1.0.14
./configure
make
make install
rm -rf /tmp/libsodium-1.0.18
rm -rf /tmp/libsodium-1.0.14
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
Expand Down
10 changes: 5 additions & 5 deletions docs/build-guides/ubuntu-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
libncursesw5-dev
```

1. `libindy` requires the modern `1.0.18` version of `libsodium` but Ubuntu 16.04 does not support installation it's from `apt` repository.
1. `libindy` requires the modern `1.0.14` version of `libsodium` but Ubuntu 16.04 does not support installation it's from `apt` repository.
Because of this, it requires to build and install `libsodium` from source:
```
cd /tmp && \
curl https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz | tar -xz && \
cd /tmp/libsodium-1.0.18 && \
./configure && \
curl https://download.libsodium.org/libsodium/releases/old/libsodium-1.0.14.tar.gz | tar -xz && \
cd /tmp/libsodium-1.0.14 && \
./configure --disable-shared && \
make && \
make install && \
rm -rf /tmp/libsodium-1.0.18
rm -rf /tmp/libsodium-1.0.14
```

1. Build `libindy`
Expand Down
2 changes: 1 addition & 1 deletion docs/build-guides/windows-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ git clone https://github.com/hyperledger/indy-sdk.git
### Binary deps

- https://www.npcglib.org/~stathis/downloads/openssl-1.0.2k-vs2017.7z
- https://download.libsodium.org/libsodium/releases/libsodium-1.0.18-msvc.zip
- https://download.libsodium.org/libsodium/releases/old/libsodium-1.0.14-msvc.zip

### Source deps

Expand Down
6 changes: 3 additions & 3 deletions libindy/ci/centos.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ RUN curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -
RUN yum -y install nodejs

RUN cd /tmp && \
curl https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz | tar -xz && \
cd /tmp/libsodium-1.0.18 && \
curl https://download.libsodium.org/libsodium/releases/old/libsodium-1.0.14.tar.gz | tar -xz && \
cd /tmp/libsodium-1.0.14 && \
./configure && \
make && \
make install && \
rm -rf /tmp/libsodium-1.0.18
rm -rf /tmp/libsodium-1.0.14

ENV PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
Expand Down
26 changes: 5 additions & 21 deletions libindy/ci/ubuntu.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ RUN apt-get update && \
libgmp3-dev \
curl \
build-essential \
autoconf \
automake \
libtool \
libsqlite3-dev \
cmake \
git \
Expand All @@ -24,6 +21,7 @@ RUN apt-get update && \
wget \
devscripts \
libncursesw5-dev \
libzmq3-dev \
zip \
unzip \
jq
Expand All @@ -40,27 +38,13 @@ RUN pip3 install -U \
plumbum \
deb-pkg-tools

ARG LIBSODIUM_VERSION=1.0.18

RUN cd /tmp && \
curl https://download.libsodium.org/libsodium/releases/libsodium-$LIBSODIUM_VERSION.tar.gz | tar -xz && \
cd /tmp/libsodium-$LIBSODIUM_VERSION && \
./configure && \
make && \
make install && \
rm -rf /tmp/libsodium-$LIBSODIUM_VERSION && \
ldconfig -n /usr/local/lib

ARG LIBZEROMQ_VERSION=4.3.1

RUN cd /tmp && \
curl https://codeload.github.com/zeromq/libzmq/tar.gz/v$LIBZEROMQ_VERSION | tar -xz && \
cd /tmp/libzmq-$LIBZEROMQ_VERSION && \
./autogen.sh && ./configure && \
curl https://download.libsodium.org/libsodium/releases/old/libsodium-1.0.14.tar.gz | tar -xz && \
cd /tmp/libsodium-1.0.14 && \
./configure --disable-shared && \
make && \
make install && \
rm -rf /tmp/libzmq-$LIBZEROMQ_VERSION && \
ldconfig -n /usr/local/lib
rm -rf /tmp/libsodium-1.0.14

RUN apt-get update && apt-get install openjdk-8-jdk -y
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
Expand Down

0 comments on commit 2322013

Please sign in to comment.