kde5: avoid propagating dev outputs to reduce closure size
This commit is contained in:
parent
d5bec1a145
commit
e362442562
@ -22,12 +22,13 @@ _ecmSharePaths=( \
|
|||||||
"polkit-1" \
|
"polkit-1" \
|
||||||
"sounds" \
|
"sounds" \
|
||||||
"templates" \
|
"templates" \
|
||||||
"wallpapers" \
|
"wallpapers" )
|
||||||
)
|
|
||||||
|
|
||||||
_ecmPropagateNative() {
|
_ecmPropagateNative() {
|
||||||
|
local target
|
||||||
for dir in ${_ecmSharePaths[@]}; do
|
for dir in ${_ecmSharePaths[@]}; do
|
||||||
if [ -d "$1/share/$dir" ]; then
|
target=$(readlink -m "$1/share/$dir")
|
||||||
|
if [ "$target" != "$1/share" ] && [ -d "$target" ]; then
|
||||||
propagateOnce propagatedNativeBuildInputs "$1"
|
propagateOnce propagatedNativeBuildInputs "$1"
|
||||||
if [ -z "$crossConfig" ]; then
|
if [ -z "$crossConfig" ]; then
|
||||||
propagateOnce propagatedUserEnvPkgs "$1"
|
propagateOnce propagatedUserEnvPkgs "$1"
|
||||||
@ -41,8 +42,10 @@ _ecmPropagateNative() {
|
|||||||
envHooks+=(_ecmSetXdgDirs _ecmPropagate)
|
envHooks+=(_ecmSetXdgDirs _ecmPropagate)
|
||||||
|
|
||||||
_ecmPropagate() {
|
_ecmPropagate() {
|
||||||
|
local target
|
||||||
for dir in ${_ecmSharePaths[@]}; do
|
for dir in ${_ecmSharePaths[@]}; do
|
||||||
if [ -d "$1/share/$dir" ]; then
|
target=$(readlink -m "$1/share/$dir")
|
||||||
|
if [ "$target" != "$1/share" ] && [ -d "$target" ]; then
|
||||||
propagateOnce propagatedBuildInputs "$1"
|
propagateOnce propagatedBuildInputs "$1"
|
||||||
propagateOnce propagatedUserEnvPkgs "$1"
|
propagateOnce propagatedUserEnvPkgs "$1"
|
||||||
addToSearchPathOnce RUNTIME_XDG_DATA_DIRS "$1/share"
|
addToSearchPathOnce RUNTIME_XDG_DATA_DIRS "$1/share"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user