I have a package:
https://build.opensuse.org/package/show/home:seelook/nootka-beta
and it can be built under Fedora
but crash under Suse OBS machines, however I’m able to build it on my Suse installation.
It crash on:
-- Set runtime path of "/home/abuild/rpmbuild/BUILDROOT/nootka-1.1.5_beta-26.1.i386/usr/bin/nootka" to "/usr/lib/nootka"
155s] -- Installing: /home/abuild/rpmbuild/BUILDROOT/nootka-1.1.5_beta-26.1.i386/usr/lib/nootka/libNootkaCore.so
155s] CMake Error at src/libs/core/cmake_install.cmake:45 (file):
155s] file RPATH_CHANGE could not write new RPATH:
155s]
155s] /usr/lib/nootka
155s]
155s] to the file:
155s]
155s] /home/abuild/rpmbuild/BUILDROOT/nootka-1.1.5_beta-26.1.i386/usr/lib/nootka/libNootkaCore.so
The application was slitted on libraries but those a few libraries are intended to be available only for built application,
so they are installed into /usr/lib/myappp (usr/lib/nootka actually).
This is why rpath is used for main binary /usr/bin/myapp and among those libraries.
When I’m trying to skip rpath with:
cmake -DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_PREFIX=%{_prefix} .
or
-DCMAKE_SKIP_BUILD_RPATH=ON or cmake -DCMAKE_SKIP_INSTALL_RPATH=ON
it doesn’t help (without rpath set the program won’t launch)
Could you help me with it?