unusual rpath issue on x86_64
We're seeing rpath issue on openSUSE since a couple weeks. Altough not certain, this almost matches the CMake package update to 3.21.3 on the build service.
First with AppSCXCAD:
[ 67s] /usr/bin/cmake -P cmake_install.cmake
[ 67s] -- Install configuration: "RelWithDebInfo"
[ 67s] -- Installing: /home/abuild/rpmbuild/BUILDROOT/AppCSXCAD-0.2.2-2.9.x86_64/usr/bin/AppCSXCAD
[ 67s] CMake Error at cmake_install.cmake:55 (file):
[ 67s] file RPATH_CHANGE could not write new RPATH:
[ 67s]
[ 67s] /usr/lib64
[ 67s]
[ 67s] to the file:
[ 67s]
[ 67s] /home/abuild/rpmbuild/BUILDROOT/AppCSXCAD-0.2.2-2.9.x86_64/usr/bin/AppCSXCAD
[ 67s]
[ 67s] No valid ELF RPATH or RUNPATH entry exists in the file;
while on x86, the same package succeeds:
[ 272s] -- Install configuration: "RelWithDebInfo"
[ 272s] -- Installing: /home/abuild/rpmbuild/BUILDROOT/AppCSXCAD-0.2.2-2.9.i386/usr/bin/AppCSXCAD
[ 272s] -- Set runtime path of "/home/abuild/rpmbuild/BUILDROOT/AppCSXCAD-0.2.2-2.9.i386/usr/bin/AppCSXCAD" to "/usr/lib"
[ 272s] -- Installing: /home/abuild/rpmbuild/BUILDROOT/AppCSXCAD-0.2.2-2.9.i386/usr/bin/AppCSXCAD.sh
No particular patch in AppCSXCAD: https://build.opensuse.org/package/show/openSUSE:Factory/AppCSXCAD
and I'm also seeing a rpath issue with qt-creator on x86_64:
[ 2813s] -- Installing: /home/abuild/rpmbuild/BUILDROOT/libqt5-creator-5.0.1-1.8.x86_64/usr/libexec/qtcreator/qtpromaker
[ 2813s] CMake Error at src/tools/qtpromaker/cmake_install.cmake:55 (file):
[ 2813s] file RPATH_CHANGE could not write new RPATH:
[ 2813s]
[ 2813s] $ORIGIN/../../lib64/qtcreator:$ORIGIN/../../lib64/Qt/lib:$ORIGIN/../../lib64/qtcreator/plugins
[ 2813s]
[ 2813s] to the file:
[ 2813s]
[ 2813s] /home/abuild/rpmbuild/BUILDROOT/libqt5-creator-5.0.1-1.8.x86_64/usr/libexec/qtcreator/qtpromaker
[ 2813s]
[ 2813s] The current RUNPATH is:
[ 2813s]
[ 2813s] $ORIGIN/../../lib64/qtcreator:
[ 2813s]
[ 2813s] which does not contain:
[ 2813s]
[ 2813s] $ORIGIN/../../lib64/qtcreator:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
[ 2813s]
[ 2813s] as was expected.
[ 2813s] Call Stack (most recent call first):
[ 2813s] src/tools/cmake_install.cmake:54 (include)
[ 2813s] src/cmake_install.cmake:98 (include)
[ 2813s] cmake_install.cmake:79 (include)
while on i586:
[ 5034s] -- Installing: /home/abuild/rpmbuild/BUILDROOT/libqt5-creator-5.0.1-1.8.i386/usr/libexec/qtcreator/qtpromaker
[ 5034s] -- Set runtime path of "/home/abuild/rpmbuild/BUILDROOT/libqt5-creator-5.0.1-1.8.i386/usr/libexec/qtcreator/qtpromaker" to "$ORIGIN/../../lib/qtcreator:$ORIGIN/../../lib/Qt/lib:$ORIGIN/../../lib/qtcreator/plugins"
Full log attached AppCSXCAD_openSUSE_Tumbleweed_x86_84.txt