Skip to content

another fix to jitterentropy build#43

Merged
yuvalif merged 1 commit intolancedb:mainfrom
yuvalif:wip-fix-jitterentropy-build4
Apr 21, 2026
Merged

another fix to jitterentropy build#43
yuvalif merged 1 commit intolancedb:mainfrom
yuvalif:wip-fix-jitterentropy-build4

Conversation

@yuvalif
Copy link
Copy Markdown
Collaborator

@yuvalif yuvalif commented Apr 21, 2026

this should cover the case of an RPM build.
The issue is that RPM's build macros set CFLAGS in the environment (including -D_FORTIFY_SOURCE=2). Cargo's [env] section in .cargo/config.toml does not override existing environment variables.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the build configuration to make RPM-based builds succeed when the environment CFLAGS includes _FORTIFY_SOURCE, which can break jitterentropy (via aws-lc-sys).

Changes:

  • Add a CMake option to strip _FORTIFY_SOURCE from CFLAGS when invoking cargo build.
  • Enable the new option in the AlmaLinux (RPM-based) GitHub Actions CI job.
  • Remove the .cargo/config.toml attempt to override CFLAGS, since Cargo’s [env] does not override existing environment variables.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
CMakeLists.txt Adds STRIP_FORTIFY_SOURCE and wraps cargo build with cmake -E env to override CFLAGS.
.github/workflows/ci.yml Enables -DSTRIP_FORTIFY_SOURCE=ON for the AlmaLinux build job.
.cargo/config.toml Removes CFLAGS = "-U_FORTIFY_SOURCE" from Cargo config.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CMakeLists.txt
this should cover the case of an RPM build.
The issue is that RPM's build macros set CFLAGS in the environment (including -D_FORTIFY_SOURCE=2).
Cargo's [env] section in .cargo/config.toml does not override existing
environment variables.

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
@yuvalif yuvalif force-pushed the wip-fix-jitterentropy-build4 branch from 9e2c45e to e86cd4b Compare April 21, 2026 06:05
@yuvalif yuvalif requested a review from Copilot April 21, 2026 06:05
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@yuvalif yuvalif merged commit 72fc831 into lancedb:main Apr 21, 2026
11 checks passed
yuvalif added a commit to ceph/ceph-ci that referenced this pull request Apr 21, 2026
see: lancedb/lancedb-c#43

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
yuvalif added a commit to ceph/ceph-ci that referenced this pull request Apr 21, 2026
see: lancedb/lancedb-c#43

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
yuvalif added a commit to ceph/ceph-ci that referenced this pull request Apr 23, 2026
see: lancedb/lancedb-c#43

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
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