-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
liblas: fix build with boost 1.86 #369334
Conversation
9feeb37
to
4808642
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alternatively can fix the compile error by removing `-std=c++98'.
diff --git a/pkgs/by-name/li/libLAS/package.nix b/pkgs/by-name/li/libLAS/package.nix
index 5bec9b5f2075..f5e3ce2b0e84 100644
--- a/pkgs/by-name/li/libLAS/package.nix
+++ b/pkgs/by-name/li/libLAS/package.nix
@@ -45,6 +45,11 @@ stdenv.mkDerivation rec {
})
];
+ postPatch = ''
+ substituteInPlace CMakeLists.txt \
+ --replace-fail 'set(CMAKE_CXX_FLAGS "''${CMAKE_CXX_FLAGS} -std=c++98 -ansi")' '#'
+ '';
+
nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
buildInputs = [
boost
Thank you @paparodeo , looks as a good idea. |
I guess the problem is related to dropped support of C++98 in boost 1.84.0. |
|
Disable setting of C++98 standard which was dropped in boost 1.84.0. Co-authored-by: Reno Dakota <[email protected]
4808642
to
aaffc2c
Compare
@paparodeo , I replaced my fix with yours. Thank you ! Please review. |
Result of 1 package built:
|
@lucasew , looks like this report belongs to some other PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. built on aarch64-darwin
Great thanks for help @paparodeo . |
It looks like a ZFS issue. It's probably fixed by now. |
Disable setting of C++98 standard which was dropped in boost 1.84.0.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-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.