Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
db77fc9c
Commit
db77fc9c
authored
Feb 11, 2016
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1795 from bluca/ci_tweetnacl
Problem: CI is borken
parents
1fb48409
0afac590
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
18 deletions
+19
-18
.travis.yml
.travis.yml
+1
-1
CMakeLists.txt
CMakeLists.txt
+2
-2
Makefile.am
Makefile.am
+6
-2
build.sh
builds/android/build.sh
+1
-1
ci_build.sh
builds/cmake/ci_build.sh
+0
-3
ci_build.sh
builds/libsodium/ci_build.sh
+7
-1
ci_build.sh
ci_build.sh
+1
-7
configure.ac
configure.ac
+1
-1
No files found.
.travis.yml
View file @
db77fc9c
...
...
@@ -9,7 +9,7 @@ os:
env
:
-
BUILD_TYPE=default
-
BUILD_TYPE=android
-
BUILD_TYPE=
tweetnacl
-
BUILD_TYPE=
libsodium
-
BUILD_TYPE=cmake
sudo
:
false
...
...
CMakeLists.txt
View file @
db77fc9c
...
...
@@ -22,14 +22,14 @@ option (ENABLE_CURVE "Enable CURVE security" ON)
if
(
NOT ENABLE_CURVE
)
message
(
STATUS
"CURVE security is disabled"
)
elseif
(
WITH_SODIUM
)
elseif
(
WITH_
LIB
SODIUM
)
find_package
(
Sodium
)
if
(
SODIUM_FOUND
)
message
(
STATUS
"Using libsodium for CURVE security"
)
include_directories
(
${
SODIUM_INCLUDE_DIRS
}
)
# On Solaris, libsodium depends on libssp
if
(
${
CMAKE_SYSTEM_NAME
}
matches
"SunOS"
)
if
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"SunOS"
)
target_link_libraries
(
libzmq ssp
)
endif
()
set
(
HAVE_LIBSODIUM 1
)
...
...
Makefile.am
View file @
db77fc9c
...
...
@@ -192,8 +192,6 @@ src_libzmq_la_SOURCES = \
src/tipc_listener.hpp
\
src/trie.cpp
\
src/trie.hpp
\
src/tweetnacl.c
\
src/tweetnacl.h
\
src/udp_address.cpp
\
src/udp_address.hpp
\
src/udp_engine.cpp
\
...
...
@@ -232,6 +230,12 @@ src_libzmq_la_SOURCES = \
src/socket_poller.hpp
\
src/socket_poller.cpp
if
USE_TWEETNACL
src_libzmq_la_SOURCES
+=
\
src/tweetnacl.c
\
src/tweetnacl.h
endif
if
ON_MINGW
src_libzmq_la_LDFLAGS
=
\
-no-undefined
\
...
...
builds/android/build.sh
View file @
db77fc9c
...
...
@@ -30,7 +30,7 @@ fi
(
android_build_verify_so
"libsodium.so"
&> /dev/null
)
||
{
rm
-rf
"
${
cache
}
/libsodium"
(
cd
"
${
cache
}
"
&&
git clone
--depth
1 git://github.com/jedisct1/libsodium.git
)
||
exit
1
(
cd
"
${
cache
}
"
&&
git clone
-
b
stable
-
-depth
1 git://github.com/jedisct1/libsodium.git
)
||
exit
1
(
cd
"
${
cache
}
/libsodium"
&&
./autogen.sh
\
&&
./configure
--quiet
"
${
ANDROID_BUILD_OPTS
[@]
}
"
--disable-soname-versions
\
&&
make
-j
4
\
...
...
builds/cmake/ci_build.sh
View file @
db77fc9c
...
...
@@ -18,8 +18,5 @@ CMAKE_OPTS+=("-DCMAKE_PREFIX_PATH:PATH=${BUILD_PREFIX}")
CMAKE_OPTS+
=(
"-DCMAKE_LIBRARY_PATH:PATH=
${
BUILD_PREFIX
}
/lib"
)
CMAKE_OPTS+
=(
"-DCMAKE_INCLUDE_PATH:PATH=
${
BUILD_PREFIX
}
/include"
)
git clone
--depth
1
-b
stable git://github.com/jedisct1/libsodium.git
&&
(
cd
libsodium
;
./autogen.sh
&&
./configure
--prefix
=
$BUILD_PREFIX
&&
make
&&
make
install
)
||
exit
1
# Build, check, and install from local source
(
cd
../..
;
mkdir
build_cmake
&&
cd
build_cmake
&&
PKG_CONFIG_PATH
=
${
BUILD_PREFIX
}
/lib/pkgconfig cmake
"
${
CMAKE_OPTS
[@]
}
"
..
&&
make all
VERBOSE
=
1
&&
make
install
)
||
exit
1
builds/
tweetnacl
/ci_build.sh
→
builds/
libsodium
/ci_build.sh
View file @
db77fc9c
...
...
@@ -13,11 +13,17 @@ CONFIG_OPTS+=("LDFLAGS=-L${BUILD_PREFIX}/lib")
CONFIG_OPTS+
=(
"PKG_CONFIG_PATH=
${
BUILD_PREFIX
}
/lib/pkgconfig"
)
CONFIG_OPTS+
=(
"--prefix=
${
BUILD_PREFIX
}
"
)
# Build required projects first
# libsodium
git clone
--depth
1
-b
stable git://github.com/jedisct1/libsodium.git
(
cd
libsodium
;
./autogen.sh
;
./configure
--prefix
=
$BUILD_PREFIX
;
make check
;
make
install
)
# Build and check this project
(
cd
../..
;
./autogen.sh
&&
./configure
"
${
CONFIG_OPTS
[@]
}
"
--with-
tweetnacl
=
yes
&&
./configure
"
${
CONFIG_OPTS
[@]
}
"
--with-
libsodium
=
yes
&&
make
&&
(
if
make check
;
then
true
;
else
cat
test-suite.log
;
exit
1
;
fi
)
&&
make
install
...
...
ci_build.sh
View file @
db77fc9c
...
...
@@ -14,16 +14,10 @@ if [ $BUILD_TYPE == "default" ]; then
CONFIG_OPTS+
=(
"PKG_CONFIG_PATH=
${
BUILD_PREFIX
}
/lib/pkgconfig"
)
CONFIG_OPTS+
=(
"--prefix=
${
BUILD_PREFIX
}
"
)
# Build required projects first
# libsodium
git clone
--depth
1
-b
stable git://github.com/jedisct1/libsodium.git
(
cd
libsodium
;
./autogen.sh
;
./configure
--prefix
=
$BUILD_PREFIX
;
make check
;
make
install
)
# Build and check this project
(
./autogen.sh
&&
./configure
"
${
CONFIG_OPTS
[@]
}
"
--with-libsodium
=
yes
&&
./configure
"
${
CONFIG_OPTS
[@]
}
"
&&
make
&&
(
if
make check
;
then
true
;
else
cat
test-suite.log
;
exit
1
;
fi
)
&&
make
install
...
...
configure.ac
View file @
db77fc9c
...
...
@@ -461,7 +461,7 @@ else
libzmq_pedantic="no" # Disable pedantic warnings
fi
AM_CONDITIONAL(USE_LIBSODIUM, test "$curve_library" == "sodium")
AM_CONDITIONAL(USE_LIBSODIUM, test "$curve_library" == "
lib
sodium")
AM_CONDITIONAL(USE_TWEETNACL, test "$curve_library" == "tweetnacl")
# build using pgm
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment