Election-Tech-Initiative / electionguard-cpp

A C++ implementation of ElectionGuard specification focused on encryption components.
https://www.electionguard.vote/
MIT License
23 stars 26 forks source link

Adds support for making environment for arch linux and some other dis… #325

Open awaistanveer opened 2 years ago

awaistanveer commented 2 years ago

Issue

resolves #142

Description

This pull request adds support for making environment for Arch Linux and other redhat-based distributions such as Oracle Linux and CentOS. A new script called make-environment-linux.sh has been added and called after https://github.com/microsoft/electionguard-cpp/blob/8f8bcb550a273c58d7336f61621b00339913d817/Makefile#L47 when Linux is detected in the Makefile.

The following functionality is added in this pull request:

The new additions do not break the current support for debian-based distributions but add more support for other distributions.

Testing

Official docker images were used to test the new feature. These include:

I am attaching the standard output console logs logs.zip resulting from running make with this PR.

I have also tested it on CentOS 7 and Oracle Linux 7. The make environment tasks work fine, but there are CMake errors that need to be looked at.

cmake -S . -B /root/electionguard-cpp/build/libs/x86_64/Release \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_SHARED_LIBS=ON \ -DCAN_USE_VECTOR_INTRINSICS=ON \ -DCPM_SOURCE_CACHE=/root/electionguard-cpp/.cache/CPM CMake Error: The source directory "/root/electionguard-cpp/build/libs/x86_64/Release" does not exist. Specify --help for usage, or press the help button on the CMake GUI.

Since these distributions are not the latest ones and may not be supported anymore, therefore, we can avoid their support.

ghost commented 2 years ago

CLA assistant check
All CLA requirements met.