Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llvmPackages_17.llvm: remove origin variable #316071

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

RossComputerGuy
Copy link
Member

Description of changes

Related: #316045 (comment)

This PR removes $ORIGIN from LLVM 17's gnu-install-dirs.patch so that it is inline with how LLVM 18 operates.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@RossComputerGuy
Copy link
Member Author

CC @paparodeo since I can't add them as a reviewer

@RossComputerGuy RossComputerGuy marked this pull request as ready for review May 31, 2024 04:13
@rrbutani rrbutani added the 6.topic: llvm/clang Issues related to llvmPackages, clangStdenv and related label May 31, 2024
@rrbutani rrbutani self-requested a review May 31, 2024 04:26
Copy link
Contributor

@paparodeo paparodeo left a comment

Choose a reason for hiding this comment

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

in this patch there seem to be places that are patching $ORIGIN that shouldn't.

eg:

+    set(_build_rpath "\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}${LLVM_LIBDIR_SUFFIX}" ${extra_libdir})
+    set(_install_rpath "\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}${LLVM_LIBDIR_SUFFIX}" ${extra_libdir})

the _build_rpath seems wrong, as i think that is to be able to run tests out of the build directory and be able to find the libs in $ORIGIN/../lib so the fact we are modifying it seems wrong. however, _install_rpath seems like it needs to be modified and can just be set(_install_rpath ${extra_libdir}) or ${LLVM_LIBRARY_DIR} perhaps as i think that is what ${extra_libdir} expands too.

i think this happened was fixed in llvm18 init.

@RossComputerGuy
Copy link
Member Author

in this patch there seem to be places that are patching $ORIGIN that shouldn't.

I only synced the patch with the one in LLVM 18. I'll remove those and then we can update the LLVM 18 one to kill off $ORIGIN.

@RossComputerGuy
Copy link
Member Author

Hmm, looking at the LLVM 18 patch that one looks fine. I'll update this one to fully sync it with LLVM 18.

Copy link
Contributor

@paparodeo paparodeo left a comment

Choose a reason for hiding this comment

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

LGTM tho has to go thru staging

@RossComputerGuy RossComputerGuy marked this pull request as draft May 31, 2024 14:30
@RossComputerGuy RossComputerGuy changed the base branch from master to staging May 31, 2024 14:31
@RossComputerGuy RossComputerGuy marked this pull request as ready for review May 31, 2024 14:32
@RossComputerGuy
Copy link
Member Author

Move to staging done.

Copy link
Contributor

@drupol drupol left a comment

Choose a reason for hiding this comment

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

LGTM

@drupol drupol merged commit 95ba433 into NixOS:staging Jun 13, 2024
27 checks passed
@RossComputerGuy RossComputerGuy deleted the fix/llvm-17-origin branch June 13, 2024 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants