Merge pull request #31775 from obsidiansystems/stdenv-both-propagated-files
stdenv setup: Always use both propagated files
This commit is contained in:
@@ -33,7 +33,7 @@ addToQMAKEPATH() {
|
||||
# package depending on the building package. (This is necessary in case
|
||||
# the building package does not provide runtime dependencies itself and so
|
||||
# would not be propagated to the user environment.)
|
||||
qtCrossEnvHook() {
|
||||
qtEnvHook() {
|
||||
addToQMAKEPATH "$1"
|
||||
if providesQtRuntime "$1"; then
|
||||
if [ "z${!outputBin}" != "z${!outputDev}" ]; then
|
||||
@@ -42,20 +42,11 @@ qtCrossEnvHook() {
|
||||
propagatedUserEnvPkgs+=" $1"
|
||||
fi
|
||||
}
|
||||
crossEnvHooks+=(qtCrossEnvHook)
|
||||
|
||||
qtEnvHook() {
|
||||
addToQMAKEPATH "$1"
|
||||
if providesQtRuntime "$1"; then
|
||||
if [ "z${!outputBin}" != "z${!outputDev}" ]; then
|
||||
propagatedNativeBuildInputs+=" $1"
|
||||
fi
|
||||
if [ -z "$crossConfig" ]; then
|
||||
propagatedUserEnvPkgs+=" $1"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
envHooks+=(qtEnvHook)
|
||||
if [ "$crossConfig" ]; then
|
||||
crossEnvHooks+=(qtEnvHook)
|
||||
else
|
||||
envHooks+=(qtEnvHook)
|
||||
fi
|
||||
|
||||
postPatchMkspecs() {
|
||||
local bin="${!outputBin}"
|
||||
|
||||
Reference in New Issue
Block a user