[opensuse-buildservice] install during build for Mandriva fails

Hi all, I'm trying to build an RPM of my kbackup program also for Mandriva. The log https://build.opensuse.org/package/live_build_log?arch=i586&package=kbackup-... shows that the build succeeds, but it stops at the end with the message CMake Error at src/cmake_install.cmake:36 (FILE): file INSTALL cannot copy file "/home/abuild/rpmbuild/BUILD/kbackup-0.6.4/build/src/kbackup" to "/usr/bin/kbackup". Any hints why this fails ? -- Best regards/Schöne Grüße Martin () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at

Am Mittwoch, 26. Mai 2010, 22:41:08 schrieb Martin Koller:
Hi all,
I'm trying to build an RPM of my kbackup program also for Mandriva. The log https://build.opensuse.org/package/live_build_log?arch=i586&package=kbackup-...
shows that the build succeeds, but it stops at the end with the message
CMake Error at src/cmake_install.cmake:36 (FILE): file INSTALL cannot copy file "/home/abuild/rpmbuild/BUILD/kbackup-0.6.4/build/src/kbackup" to "/usr/bin/kbackup".
Any hints why this fails ?
it is a but in the cmake files, it ignores the DESTDIR or INSTALL_ROOT and tries to modify the system. It fails because it does not have root permissions to create a link below /usr directory. bye adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de

On Wednesday May 26 2010 22:41:08 Martin Koller wrote:
Hi all,
I'm trying to build an RPM of my kbackup program also for Mandriva. The log https://build.opensuse.org/package/live_build_log?arch=i586&package=kbackup -kde4&project=home%3Amartinkoller&repository=Mandriva_2009.1
shows that the build succeeds, but it stops at the end with the message
CMake Error at src/cmake_install.cmake:36 (FILE): file INSTALL cannot copy file "/home/abuild/rpmbuild/BUILD/kbackup-0.6.4/build/src/kbackup" to "/usr/bin/kbackup".
Any hints why this fails ?
You have to install the stuff bellow %buildroot and not /. See security:OpenVAS if you need examples of stuff using cmake building for Mandriva. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On Thursday, 27. May 2010 12:03:47 Stephan Kleine wrote:
On Wednesday May 26 2010 22:41:08 Martin Koller wrote:
Hi all,
I'm trying to build an RPM of my kbackup program also for Mandriva. The log https://build.opensuse.org/package/live_build_log?arch=i586&package=kbackup -kde4&project=home%3Amartinkoller&repository=Mandriva_2009.1
shows that the build succeeds, but it stops at the end with the message
CMake Error at src/cmake_install.cmake:36 (FILE): file INSTALL cannot copy file "/home/abuild/rpmbuild/BUILD/kbackup-0.6.4/build/src/kbackup" to "/usr/bin/kbackup".
Any hints why this fails ?
You have to install the stuff bellow %buildroot and not /. See security:OpenVAS if you need examples of stuff using cmake building for Mandriva.
Thanks for your hint. I have adapted the spec file but now it fails on the following: https://build.opensuse.org/package/live_build_log?arch=x86_64&package=kbacku... RPM build errors: Installed (but unpackaged) file(s) found: /usr/share/doc/HTML/de/kbackup/index.cache.bz2 /usr/share/doc/HTML/de/kbackup/index.docbook ... I have tried but I'm lost. I have no idea what to change how in the spec file to make it work for Mandriva. Anybody here to help me out, please ? -- Best regards/Schöne Grüße Martin () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
participants (3)
-
Adrian Schröter
-
Martin Koller
-
Stephan Kleine