Skip to content

Commit

Permalink
fix oss build with build_openr.sh
Browse files Browse the repository at this point in the history
Summary: Install latest version of krb5 from source when compiling with build_openr.sh

Reviewed By: cenzhao

Differential Revision: D8387032

fbshipit-source-id: 3b5bb5c8938a9c11c7711c4637e317e7a490a2f3
  • Loading branch information
saifhhasan authored and facebook-github-bot committed Jun 12, 2018
1 parent 7875a23 commit c6f6b63
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion build/build_openr.sh
Expand Up @@ -255,6 +255,22 @@ install_libnl() {
popd
}

install_krb5() {
pushd .
if [[ ! -e "krb5" ]]; then
git clone https://github.com/krb5/krb5
fi
cd krb5/src
git fetch origin
git checkout krb5-1.16.1-final
set -eu && autoreconf -i
./configure
make
sudo make install
sudo ldconfig
popd
}

install_openr() {
pushd .
cd "$BUILD_DIR"
Expand Down Expand Up @@ -299,7 +315,6 @@ sudo apt-get install -y libdouble-conversion-dev \
liblz4-dev \
liblzma-dev \
scons \
libkrb5-dev \
libsnappy-dev \
libsasl2-dev \
libnuma-dev \
Expand All @@ -326,6 +341,7 @@ install_wangle
install_libsodium
install_libzmq
install_libnl
install_krb5
install_fbthrift
install_fbzmq
install_re2
Expand Down

0 comments on commit c6f6b63

Please sign in to comment.