Skip to content

Added helper scripts for platform package dependencies, build and install#5912

Merged
craigcomstock merged 1 commit into
cfengine:masterfrom
craigcomstock:ENT-13016/master
Oct 28, 2025
Merged

Added helper scripts for platform package dependencies, build and install#5912
craigcomstock merged 1 commit into
cfengine:masterfrom
craigcomstock:ENT-13016/master

Conversation

@craigcomstock

Copy link
Copy Markdown
Contributor

For now this is focused on redhat-10-aarch64 and termux environment.

Ticket: ENT-13016
Changelog: none

@craigcomstock craigcomstock force-pushed the ENT-13016/master branch 2 times, most recently from 07b49a5 to c345184 Compare October 27, 2025 14:08
@craigcomstock

Copy link
Copy Markdown
Contributor Author

will see if I can make rockylinux/10 work here as well, then will put up for review.

@craigcomstock craigcomstock marked this pull request as ready for review October 27, 2025 16:50

@larsewi larsewi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 🚀 Would be nice to have a comment in the top of the scripts briefly explaining what they do

Comment thread ci/dependencies.sh
if [ -f /etc/os-release ]; then
source /etc/os-release
VERSION_MAJOR=${VERSION_ID%.*}
if [ "$ID" = "rhel" ] || [[ "$ID_LIKE" =~ "rhel" ]]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to have double quotes around the string literals. But does not hurt

Comment thread ci/dependencies.sh
Comment on lines +25 to +26
cd "$tmpdir"
git clone --recursive --depth 1 https://github.com/LMDB/lmdb

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could consider using the -C option here

Suggested change
cd "$tmpdir"
git clone --recursive --depth 1 https://github.com/LMDB/lmdb
git -C "$tmpdir" clone --recursive --depth 1 https://github.com/LMDB/lmdb

Comment thread ci/dependencies.sh
Comment on lines +27 to +29
cd lmdb/libraries/liblmdb
make
sudo make install prefix=/usr

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to do this in a subshell, so that you don't have to cd back out

Comment thread ci/install.sh
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -ex
thisdir=$(dirname $0)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
thisdir=$(dirname $0)
thisdir="$(dirname "$0")"

…tall

For now this is focused on redhat-10-aarch64 and termux environment.

Ticket: ENT-13016
Changelog: none
@craigcomstock craigcomstock merged commit 4846da6 into cfengine:master Oct 28, 2025
5 checks passed
@craigcomstock craigcomstock deleted the ENT-13016/master branch October 28, 2025 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants