Common Adapter Documentation/BuildStatusPerTargetEnv

CentOS 7

#!/bin/bash
set -x

# CentOS Linux release 7.7.1908 (Core)

# PREPARE SYSTEM AS ROOT
yum install -y sudo yum-utils git make pkgconfig nettle-devel openssl-devel sqlite-devel autoconf automake clang llvm-devel
# Rust not avilable as pks:
# rustc
# cargo

#GET UP TO DDATE DEV TOOLCHAIN
yum install -y centos-release-scl
yum-config-manager --enable rhel-server-rhscl-7-rpms
yum install -y devtoolset-8

usermod -a -G wheel heck

# BUILD AS NORMAL USER
scl enable devtoolset-8 bash

### Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env

###capnproto
mkdir -p ~/code/common/capnproto
cd ~/code/common/capnproto
curl -O https://capnproto.org/capnproto-c++-0.7.0.tar.gz
tar zxf capnproto-c++-0.7.0.tar.gz
cd capnproto-c++-0.7.0
./configure
make -j6 check
sudo make install

### Sequoia
mkdir -p ~/code/common/sequoia
cd ~/code/common/sequoia
git clone https://gitlab.com/sequoia-pgp/sequoia.git .
git checkout pep-engine
make PYTHON=disable
make install PYTHON=disable PREFIX=$HOME

#error: failed to run custom build command for `nettle-sys v2.0.4`
#
#Caused by:
#  process didn't exit successfully: `/home/heck/code/common/sequoia/target/debug/build/nettle-sys-eabe5003cad86d54/build-script-build` (exit code: 101)
#--- stdout
#cargo:rerun-if-env-changed=NETTLE_STATIC
#cargo:rerun-if-env-changed=NETTLE_PREGENERATED_BINDINGS
#cargo:rustc-link-search=native=/usr/lib64
#cargo:rustc-link-lib=nettle
#cargo:rustc-link-lib=hogweed
#cargo:include=/usr/include
#cargo:rustc-link-lib=dylib=nettle
#cargo:rustc-link-lib=dylib=hogweed
#cargo:rustc-link-search=native=/usr/lib64
#cargo:rustc-link-lib=dylib=gmp
#cargo:warning=couldn't execute `llvm-config --prefix` (error: No such file or directory (os error 2))
#cargo:warning=set the LLVM_CONFIG_PATH environment variable to a valid `llvm-config` executable
#
#--- stderr
#bindgen-wrapper.h:13:10: fatal error: 'nettle/ccm.h' file not found
#bindgen-wrapper.h:13:10: fatal error: 'nettle/ccm.h' file not found, err: true
#thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ()', /home/heck/.cargo/registry/src/github.com-1ecc6299db9ec823/nettle-sys-2.0.4/build.rs:83:20
#note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
#
#warning: build failed, waiting for other jobs to finish...
#error: build failed
#make: *** [build] Error 101

CentOS 8

#!/bin/bash
set -x

#CentOS 8

#PREPARE SYSTEM AS ROOT
yum install -y sudo tar cargo rustc yum-utils git make pkgconfig nettle-devel openssl-devel sqlite-devel autoconf automake clang
usermod -a -G wheel heck

# BUILD AS NORMAL USER
###capnproto
mkdir -p ~/code/common/capnproto
cd ~/code/common/capnproto
curl -O https://capnproto.org/capnproto-c++-0.7.0.tar.gz
tar zxf capnproto-c++-0.7.0.tar.gz
cd capnproto-c++-0.7.0
./configure
make -j6 check
sudo make install

### Sequoia
mkdir -p ~/code/common/sequoia
cd ~/code/common/sequoia
git clone https://gitlab.com/sequoia-pgp/sequoia.git .
git checkout pep-engine
make PYTHON=disable



# CAPNPROTO FAILS TO BUILD
# reported to: capnproto@googlegroups.com
#
# Hya,
#the post build tests have failed.
#FAIL: capnp-test
#============================================================================
#Testsuite summary for Capn Proto 0.7.0
#============================================================================
## TOTAL: 3
## PASS:  2
## SKIP:  0
## XFAIL: 0
## FAIL:  1
## XPASS: 0
## ERROR: 0
#============================================================================
#See ./test-suite.log
#Please report to capnproto@googlegroups.com
#============================================================================
#
#
#CentOS Linux release 8.1.1911 (Core)
#minimal install
#vim
#ssh
#samba
#net-tools
#
#
#mkdir -p ~/code/common/capnproto
#cd ~/code/common/capnproto
#curl -O https://capnproto.org/capnproto-c++-0.7.0.tar.gz
#tar zxf capnproto-c++-0.7.0.tar.gz
#cd capnproto-c++-0.7.0
#./configure
#make -j6 check
#sudo make install
#
#
#Please let me know if you need more information.
#
#Cheers
#Heck
#