Skip to content

Conversation

@singiamtel
Copy link
Collaborator

@singiamtel singiamtel commented Feb 6, 2026

Rebased on #6114 but with some temporary fixes for the CI

@singiamtel singiamtel requested a review from a team as a code owner February 6, 2026 12:03
@singiamtel singiamtel changed the title Test changes over #6114 Hotfix: Test changes over #6114 Feb 6, 2026
@singiamtel singiamtel force-pushed the 6114_hotfix branch 3 times, most recently from beced63 to b8dd500 Compare February 9, 2026 16:10
@singiamtel
Copy link
Collaborator Author

Overriden by #6114

@singiamtel singiamtel closed this Feb 10, 2026
@singiamtel singiamtel reopened this Feb 10, 2026
@singiamtel singiamtel requested a review from a team as a code owner February 10, 2026 11:17
@singiamtel singiamtel force-pushed the 6114_hotfix branch 2 times, most recently from c9cf9d4 to 92d2bd8 Compare February 11, 2026 13:39
${PROTOBUF_ROOT:+-DProtobuf_DIR=${PROTOBUF_ROOT}} \
${ABSEIL_ROOT:+-Dabsl_DIR=$ABSEIL_ROOT} \
${C_ARES_ROOT:+-Dc-ares_DIR=$C_ARES_ROOT} \
-Dre2_DIR=${RE2_ROOT:-$(brew --prefix re2)/lib/cmake/re2} \
Copy link
Member

Choose a reason for hiding this comment

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

This will fail when not on macOS, no?

export CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH=OFF

# Build CMAKE_PREFIX_PATH without trailing colons from unset variables
CMAKE_PREFIX_PATH_components="$ABSEIL_ROOT/cmake:$PROTOBUF_ROOT/cmake"
Copy link
Member

Choose a reason for hiding this comment

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

why not

Suggested change
CMAKE_PREFIX_PATH_components="$ABSEIL_ROOT/cmake:$PROTOBUF_ROOT/cmake"
CMAKE_PREFIX_PATH="$ABSEIL_ROOT/cmake:$PROTOBUF_ROOT/cmake${C_ARES_ROOT:+:$C_ARES_ROOT}"

?
Why using a different name from the CMake define?

-G Ninja \
${CXXSTD:+-DCMAKE_CXX_STANDARD=$CXXSTD} \
-DCMAKE_INSTALL_PREFIX=$INSTALLROOT \
-DCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH_components \
Copy link
Member

Choose a reason for hiding this comment

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

See above...

Suggested change
-DCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH_components \
-DCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH \

alibuild-generate-module --bin --lib > etc/modulefiles/$PKGNAME
mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles
mkdir -p "$INSTALLROOT/etc/modulefiles"
alibuild-generate-module --bin --lib >"$INSTALLROOT/etc/modulefiles/$PKGNAME"
Copy link
Member

Choose a reason for hiding this comment

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

This will break the incremental recipe. Why changing it?


# export compile_commands.json in (taken from o2.sh)
DEVEL_SOURCES="$(readlink $SOURCEDIR || echo $SOURCEDIR)"
DEVEL_SOURCES="$(readlink "$SOURCEDIR" || echo "$SOURCEDIR")"
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated. Please move them to a separate PR.

if [ "$DEVEL_SOURCES" != "$SOURCEDIR" ]; then
perl -p -i -e "s|$SOURCEDIR|$DEVEL_SOURCES|" compile_commands.json
ln -sf $BUILDDIR/compile_commands.json $DEVEL_SOURCES/compile_commands.json
ln -sf "$BUILDDIR"/compile_commands.json "$DEVEL_SOURCES"/compile_commands.json
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated. Please move them to a separate PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants