* Install into lib64 instead of lib
* Pull 4.2 kernel from rawhide instead of building it
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
enable_testing()
include(scripts/GetGitRevisionDescription.cmake)
+get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
+if(LIB64)
+ set(LIBSUFFIX 64)
+endif()
find_package(BISON)
find_package(FLEX)
bc
kexec-tools
cmake
-clang
libstdc++-static
python-netaddr
+python-futures
%end
%post --log=/root/anaconda-post.log
chkconfig ntpd on
+dnf config-manager --add-repo=http://alt.fedoraproject.org/pub/alt/rawhide-kernel-nodebug/fedora-rawhide-kernel-nodebug.repo
+
yum -y clean metadata
yum -y update
set -e -x
numcpu=$(grep -c ^processor /proc/cpuinfo)
-repo=ssh://git@github.com/iovisor/bcc.git
-git ls-remote $repo 2>&1 > /dev/null
-if [[ $? -ne 0 ]]; then
- repo=https://<%= @github_access_token %>@github.com/iovisor/bcc.git
-fi
-git clone $repo
+git clone https://github.com/iovisor/bcc.git
mkdir bcc/build/
cd bcc/build/
-cmake ..
+export PATH=/opt/local/llvm/bin:$PATH
+cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make -j$numcpu
make test
DELIM__
PASSWORD=${PASSWORD:-"iovisor"}
BRIDGE=${BRIDGE:-virbr0}
-MIRROR=${MIRROR:-http://mirror.pnl.gov/fedora/linux/releases/21}
+MIRROR=${MIRROR:-http://mirror.pnl.gov/fedora/linux/releases/22}
MEM=${MEM:-4094}
CPU=${CPU:-4}
SIZE=${SIZE:-40}
# Link against LLVM libraries
target_link_libraries(bpfprog ${clang_libs} ${llvm_libs} LLVMBPFCodeGen)
-install(TARGETS bpfprog LIBRARY DESTINATION lib)
+install(TARGETS bpfprog LIBRARY DESTINATION lib${LIBSUFFIX})
install(DIRECTORY export/ DESTINATION share/bcc/include/bcc
FILES_MATCHING PATTERN "*.h")