kde/H-QML: quitar symlinks /usr/bin del install (rompían el sellado)

qtshadertools construyó qsb + instaló OK, pero el post-paso de symlinks falló:
'ln: /out/: cannot overwrite directory' (línea de user_facing_tool_links con
nombre vacío → ln ... /out/) → install non-zero → no selló → qtdeclarative sin
qsb. Los tools quedan en /usr/lib/qt6/bin con rpath; CMake los halla solo.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-11 17:50:26 -04:00
co-authored by Claude Opus 4.8
parent 6e860cd6c2
commit 4c102aad79
2 changed files with 6 additions and 14 deletions
+3 -7
View File
@@ -32,13 +32,9 @@ cmake -B build -G Ninja -Wno-dev \
-DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF
'''
compile = "cmake --build build"
install = '''
DESTDIR=/out cmake --install build
if [ -f build/user_facing_tool_links.txt ]; then
mkdir -p /out/usr/bin
while read -r target name; do ln -sf "$target" "/out/$name"; done < build/user_facing_tool_links.txt
fi
'''
# Tools (qml/qmlcachegen/qmlimportscanner) en /usr/lib/qt6/bin/ con rpath; sin symlinks a /usr/bin
# (user_facing_tool_links con nombre vacío rompe `ln ... /out/` → install non-zero). CMake los halla solo.
install = "DESTDIR=/out cmake --install build"
[deps]
build = ["cmake", "samurai", "python3", "pkgconf", "qtbase", "mesa", "libdrm", "libxkbcommon", "qtshadertools", "qtsvg", "qtlanguageserver"]
+3 -7
View File
@@ -31,13 +31,9 @@ cmake -B build -G Ninja -Wno-dev \
-DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF
'''
compile = "cmake --build build"
install = '''
DESTDIR=/out cmake --install build
if [ -f build/user_facing_tool_links.txt ]; then
mkdir -p /out/usr/bin
while read -r target name; do ln -sf "$target" "/out/$name"; done < build/user_facing_tool_links.txt
fi
'''
# Los tools (qsb) quedan en /usr/lib/qt6/bin/ con rpath $ORIGIN; CMake los halla vía Qt6ShaderToolsTools.
# Sin symlinks a /usr/bin (user_facing_tool_links tiene líneas de nombre vacío → `ln ... /out/` rompe).
install = "DESTDIR=/out cmake --install build"
[deps]
build = ["cmake", "samurai", "python3", "pkgconf", "qtbase", "mesa", "libdrm", "libxkbcommon"]