Skip to content

Conversation

@craigcomstock
Copy link
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
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
Copy link
Contributor

@larsewi larsewi left a comment

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

if [ -f /etc/os-release ]; then
source /etc/os-release
VERSION_MAJOR=${VERSION_ID%.*}
if [ "$ID" = "rhel" ] || [[ "$ID_LIKE" =~ "rhel" ]]; then
Copy link
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 on lines +25 to +27
cd "$tmpdir"
git clone --recursive --depth 1 https://github.com/LMDB/lmdb
Copy link
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 on lines +27 to +30
cd lmdb/libraries/liblmdb
make
sudo make install prefix=/usr
Copy link
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

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -ex
thisdir=$(dirname $0)
Copy link
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