treewide: more cmake rpath fixups

This commit is contained in:
K900 2022-07-17 17:42:15 +03:00
parent f888751efd
commit 0ff0b14968
7 changed files with 31 additions and 1 deletions

View file

@ -167,6 +167,9 @@ in stdenv.mkDerivation rec {
"-DDISABLE_DYNAMIC_LOADING_FFMPEG=ON" "-DDISABLE_DYNAMIC_LOADING_FFMPEG=ON"
"-Daudacity_conan_enabled=Off" "-Daudacity_conan_enabled=Off"
"-Daudacity_use_ffmpeg=loaded" "-Daudacity_use_ffmpeg=loaded"
# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
"-DCMAKE_SKIP_BUILD_RPATH=ON"
]; ];
doCheck = false; # Test fails doCheck = false; # Test fails

View file

@ -138,6 +138,11 @@ stdenv.mkDerivation rec {
util-linux util-linux
]; ];
cmakeFlags = [
# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
"-DCMAKE_SKIP_BUILD_RPATH=ON"
];
meta = with lib; { meta = with lib; {
description = "Sound editor with graphical UI"; description = "Sound editor with graphical UI";
homepage = "https://tenacityaudio.org/"; homepage = "https://tenacityaudio.org/";

View file

@ -83,6 +83,9 @@ mkDerivation rec {
cmakeFlags = [ cmakeFlags = [
"-DMINIZIP_INCLUDE_DIRS=${minizip2}/include" "-DMINIZIP_INCLUDE_DIRS=${minizip2}/include"
"-DMINIZIP_LIBRARIES=minizip" "-DMINIZIP_LIBRARIES=minizip"
# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
"-DCMAKE_SKIP_BUILD_RPATH=ON"
]; ];
# The default install phase fails because the paths are somehow messed up in # The default install phase fails because the paths are somehow messed up in

View file

@ -75,7 +75,11 @@ stdenv.mkDerivation rec {
makeFlags = optionals (debug) [ "CFLAGS+=-Og" "CFLAGS+=-ggdb" ]; makeFlags = optionals (debug) [ "CFLAGS+=-Og" "CFLAGS+=-ggdb" ];
cmakeFlags = optionals (withScripting) [ cmakeFlags = [
# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
"-DCMAKE_SKIP_BUILD_RPATH=ON"
]
++ optionals (withScripting) [
"-DKICAD_SCRIPTING_WXPYTHON=ON" "-DKICAD_SCRIPTING_WXPYTHON=ON"
] ]
++ optionals (!withScripting) [ ++ optionals (!withScripting) [

View file

@ -52,6 +52,11 @@ mkDerivation rec {
# the other libraries as `libGL` is part of our `buildInputs`. # the other libraries as `libGL` is part of our `buildInputs`.
NIX_CFLAGS_LINK = "-Wl,-rpath,${libGL}/lib"; NIX_CFLAGS_LINK = "-Wl,-rpath,${libGL}/lib";
cmakeFlags = [
# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
"-DCMAKE_SKIP_BUILD_RPATH=ON"
];
preFixup = '' preFixup = ''
mkdir -p "$out/bin" mkdir -p "$out/bin"
cp -a "./bin/"* "$out/bin" cp -a "./bin/"* "$out/bin"

View file

@ -60,6 +60,11 @@ mkDerivation rec {
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
cmakeFlags = [
# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
"-DCMAKE_SKIP_BUILD_RPATH=ON"
];
qtWrapperArgs = [ qtWrapperArgs = [
"--prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1" "--prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1"
"--prefix LADSPA_PATH : ${ladspaPlugins}/lib/ladspa" "--prefix LADSPA_PATH : ${ladspaPlugins}/lib/ladspa"

View file

@ -62,6 +62,11 @@ stdenv.mkDerivation rec {
yajl yajl
]; ];
cmakeFlags = [
# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
"-DCMAKE_SKIP_BUILD_RPATH=ON"
];
WITH_FONTS = "NO"; WITH_FONTS = "NO";
WITH_UPDATER = "NO"; WITH_UPDATER = "NO";