Skip to content

Commit 53961de

Browse files
authored
Merge pull request hyperledger-indy#671 from lodo1995/fix-libsodium-readme
Fix readme regarding libsodium version and location
2 parents 723258c + 279c958 commit 53961de

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

doc/rhel-build.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ dnf install -y \
4242
For Amazon Linux 2017.03 or other distributions without `libsodium` available in system repositories:
4343
```
4444
cd /tmp
45-
curl https://download.libsodium.org/libsodium/releases/libsodium-1.0.12.tar.gz | tar -xz
46-
cd /tmp/libsodium-1.0.12
45+
curl https://download.libsodium.org/libsodium/releases/libsodium-1.0.14.tar.gz | tar -xz
46+
cd /tmp/libsodium-1.0.14
4747
./configure
4848
make
4949
make install
50-
rm -rf /tmp/libsodium-1.0.12
50+
rm -rf /tmp/libsodium-1.0.14
5151
5252
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
5353
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
@@ -58,6 +58,10 @@ For Fedora 26/27/28, `libsodium-1.0.14` is already available as a system package
5858
dnf install libsodium libsodium-devel
5959
```
6060

61+
Versions of `libsodium` from `1.0.15` onwards miss the required `crypto_stream_aes128ctr_*` functions. Because of this:
62+
- for distributions without `libsodium` in the system repositories: be advised that in the future the archive might be moved to `https://download.libsodium.org/libsodium/releases/old/libsodium-1.0.14.tar.gz`
63+
- for Fedora and other distribution where `libsodium` is available: make sure that the available version is at most `1.0.14`; if it is more recent, switch to building it from source as explained above
64+
6165
### 4. Additional dependencies
6266
For Fedora 26/27/28, you may also need to install `zeromq` (`libzmq`) before being able to successfully
6367
build `libindy`:

doc/windows-build.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ git clone https://github.com/hyperledger/indy-sdk.git
4343
### Binary deps
4444

4545
- https://www.npcglib.org/~stathis/downloads/openssl-1.0.2k-vs2017.7z
46-
- https://download.libsodium.org/libsodium/releases/libsodium-1.0.12-msvc.zip
46+
- https://download.libsodium.org/libsodium/releases/libsodium-1.0.14-msvc.zip
47+
- versions from 1.0.15 onwards dropped the required `crypto_stream_aes128ctr_*` methods
48+
- please note that in the future this release might be moved to subdirectory `old`
4749

4850
### Source deps
4951

libindy/ci/amazon.dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ RUN \
1818
spectool
1919

2020
RUN cd /tmp && \
21-
curl https://download.libsodium.org/libsodium/releases/old/libsodium-1.0.12.tar.gz | tar -xz && \
22-
cd /tmp/libsodium-1.0.12 && \
21+
curl https://download.libsodium.org/libsodium/releases/libsodium-1.0.14.tar.gz | tar -xz && \
22+
cd /tmp/libsodium-1.0.14 && \
2323
./configure && \
2424
make && \
2525
make install && \
26-
rm -rf /tmp/libsodium-1.0.12
26+
rm -rf /tmp/libsodium-1.0.14
2727

2828
ENV PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
2929
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

0 commit comments

Comments
 (0)