Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Debian 9.3 build scripts. #231

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions mcrouter/m4/ax_boost_context.m4
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,19 @@ AC_DEFUN([AX_BOOST_CONTEXT],
CXXFLAGS_SAVE=$CXXFLAGS

AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[[@%:@include <boost/context/all.hpp>
#include <boost/version.hpp>
[[@%:@include <boost/version.hpp>
#if BOOST_VERSION >= 106100
#include <boost/context/detail/fcontext.hpp>
#else
#include <boost/context/fcontext.hpp>
#endif
]],
[[#if BOOST_VERSION >= 105600
boost::context::fcontext_t fc = boost::context::make_fcontext(0, 0, 0);
[[#if BOOST_VERSION >= 106100
boost::context::detail::fcontext_t fc = boost::context::detail::make_fcontext(0, 0, 0);
#elif BOOST_VERSION >= 105600
boost::context::fcontext_t fc = boost::context::make_fcontext(0, 0, 0);
#else
boost::context::fcontext_t* fc = boost::context::make_fcontext(0, 0, 0);
boost::context::fcontext_t* fc = boost::context::make_fcontext(0, 0, 0);
#endif
]]
)],
Expand Down Expand Up @@ -128,3 +134,4 @@ AC_DEFUN([AX_BOOST_CONTEXT],
LDFLAGS="$LDFLAGS_SAVED"
fi
])

47 changes: 47 additions & 0 deletions mcrouter/scripts/install_debian_9.3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/usr/bin/env bash

set -ex

[ -n "$1" ] || ( echo "Install dir missing"; exit 1 )

sudo apt-get update

sudo apt-get install -y \
autoconf \
autoconf-archive \
automake \
binutils-dev \
cmake \
g++ \
gcc \
git \
googletest \
libboost-all-dev \
libcap-dev \
libdouble-conversion-dev \
libdwarf-dev \
libelf-dev \
libevent-dev \
libgflags-dev \
libgoogle-glog-dev \
libgtest-dev \
libiberty-dev \
libjemalloc-dev \
liblz4-dev \
liblzma-dev \
libsnappy-dev \
libssl-dev \
libssl1.0.2 \
libtool \
libunwind8-dev \
make \
pkg-config \
ragel \
scons \
sudo \
unzip \
zlib1g-dev

cd "$(dirname "$0")" || ( echo "cd fail"; exit 1 )

./get_and_build_everything.sh debian-9.3 "$@"
1 change: 1 addition & 0 deletions mcrouter/scripts/order_debian-9.3/10_folly
1 change: 1 addition & 0 deletions mcrouter/scripts/order_debian-9.3/12_wangle
21 changes: 21 additions & 0 deletions mcrouter/scripts/order_debian-9.3/20_mcrouter
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

source common.sh

# clone the latest gtest
[ -d googletest ] || git clone https://github.com/google/googletest.git

cd "$SCRIPT_DIR/../.." || die "cd fail"

# copy gtest source into lib/gtest folder
mkdir -p ./lib/gtest
cp -r -f -t ./lib/gtest "$PKG_DIR/googletest/googletest"/*

autoreconf --install
LD_LIBRARY_PATH="$INSTALL_DIR/lib:$LD_LIBRARY_PATH" \
LD_RUN_PATH="$INSTALL_DIR/lib:$LD_RUN_PATH" \
LDFLAGS="-L$INSTALL_DIR/lib $LDFLAGS" \
CPPFLAGS="-I$INSTALL_DIR/include $CPPFLAGS" \
LIBS=/usr/lib/x86_64-linux-gnu/libssl.so.1.0.2 \
./configure --prefix="$INSTALL_DIR"
make $MAKE_ARGS && make install $MAKE_ARGS