llvmPackages.libcxx: Fix FreeBSD build#305408
Conversation
ce789e7 wasn't quite right, because multiple outputs.
917006e to
ab097e0
Compare
ce789e7 got it right except for llvm12, all the others (13-git) were handled properly. not sure how llvm12 was missed as i diffed the files against themselves but i might've been sloppy there if the freebsd build was broken in other ways, though i thought 12 worked and 13 & 14 were broken due to libunwind or something, but that could've been pkgsLLVM or aarch64 pkgsLLVM. nixpkgs/pkgs/development/compilers/llvm/16/libcxx/default.nix Lines 101 to 107 in ce789e7 |
|
@ghostofannalee these sorts of mistakes are quite likely --- I don't begrudge the author. That is why @RossComputerGuy doing the deduplication is such a good thing! --- it's best to make that mistake much less likely than try to just be more vigilant than is feasible. |
hmm, i think for llvm12 it might have needed to be
|
|
@ghostofannalee That just sounds like the path that the directory being moved to doesn't exist. |
|
@ghostofannalee Even if libc++ 12 puts it in |
that worked for llvm12 and llvm16 diff --git a/pkgs/development/compilers/llvm/common/libcxx/default.nix b/pkgs/development/compilers/llvm/common/libcxx/default.nix
index 0e91f50551c5..c630213797db 100644
--- a/pkgs/development/compilers/llvm/common/libcxx/default.nix
+++ b/pkgs/development/compilers/llvm/common/libcxx/default.nix
@@ -124,6 +125,7 @@ stdenv.mkDerivation (rec {
# libc++.so.1 and libc++abi.so or the external cxxabi. ld-wrapper doesn't
# support linker scripts so the external cxxabi needs to be symlinked in
postInstall = lib.optionalString (cxxabi != null) ''
+ [[ -d $out/include ]] && { mkdir -p $dev; mv $out/include $dev; }
lndir ${lib.getDev cxxabi}/include $dev/include/c++/v1
lndir ${lib.getLib cxxabi}/lib $out/lib
'';[edit] added diff in PR #306027 |
Description of changes
ce789e7 wasn't quite right, because multiple outputs.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.