<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi Eric,<br><br><br> Thanks for your help. I use a remote computer in order to test many operating systems. The content of rpmbuild.out is enigmatic, it seems empty:<br><br>Processing files: sources-1.04.0-1<br>RPM build errors:<br><br><br><br>The commande :cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM<br>gives the following output:<br><br><br>-bash-3.2$ cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM<br>CPack: Create package using RPM<br>CPack: Install projects<br>CPack: - Run preinstall target for: sources<br>CPack: - Install project: sources<br>CPack: Compress package<br>CPackRPM:Debug: rpmbuild version is <4.6.1><br>CPackRPM:Debug: CPACK_TOPLEVEL_DIRECTORY = /home/lnx/_CPack_Packages/Linux/RPM<br>CPackRPM:Debug: CPACK_TOPLEVEL_TAG = Linux<br>CPackRPM:Debug: CPACK_TEMPORARY_DIRECTORY = /home/lnx/_CPack_Packages/Linux/RPM/sources-1.04.0-Linux<br>CPackRPM:Debug: CPACK_OUTPUT_FILE_NAME = sources-1.04.0-Linux.rpm<br>CPackRPM:Debug: CPACK_OUTPUT_FILE_PATH = /home/lnx/sources-1.04.0-Linux.rpm<br>CPackRPM:Debug: CPACK_PACKAGE_FILE_NAME = sources-1.04.0-Linux<br>CPackRPM:Debug: CPACK_RPM_BINARY_SPECFILE = /home/lnx/_CPack_Packages/Linux/RPM/SPECS/sources.spec<br>CPackRPM:Debug: CPACK_PACKAGE_INSTALL_DIRECTORY = sources 1.04.0<br>CPackRPM:Debug: CPACK_TEMPORARY_PACKAGE_FILE_NAME = /home/lnx/_CPack_Packages/Linux/RPM/sources-1.04.0-Linux.rpm<br>CPackRPM:Debug: You may consult rpmbuild logs in:<br>CPackRPM:Debug: - /home/lnx/_CPack_Packages/Linux/RPM/rpmbuild.err<br>CPackRPM:Debug: - /home/lnx/_CPack_Packages/Linux/RPM/rpmbuild.out<br>CPack: Finalize package<br>CPack Error: Problem copying the package: /home/lnx/_CPack_Packages/Linux/RPM/sources-1.04.0-Linux.rpm to /home/lnx/sources-1.04.0-Linux.rpm<br>CPack Error: Error when generating package: sources<br><br><br><br><br><br><br><br><br>The spec file is the following (sources.spec):<br><br><br># -*- rpm-spec -*-<br>Buildroot: /home/lnx/_CPack_Packages/Linux/RPM/sources-1.04.0-Linux<br>Summary: tool<br>Name: sources<br>Version: 1.04.0<br>Release: 1<br>License: unknown<br>Group: unknown<br>Vendor: Humanity<br><br><br><br>#p define prefix /usr/local<br>%define _rpmdir /home/lnx/_CPack_Packages/Linux/RPM<br>%define _rpmfilename sources-1.04.0-Linux.rpm<br>%define _unpackaged_files_terminate_build 0<br>%define _topdir /home/lnx/_CPack_Packages/Linux/RPM<br><br>%description<br>DESCRIPTION<br>===========<br><br>This is an installer created using CPack (http://www.cmake.org). No additional installation instructions provided.<br><br># This is a shortcutted spec file<br># generated by CMake RPM generator<br># we skip the _prepn _build and _install<br># steps because CPack does that for us<br>#p prep<br><br>#p build<br> <br>#p install<br><br>%clean<br><br>%files<br>%defattr(-,root,root,-)<br>#p dir %{prefix}<br>#p {prefix}/*<br>/*<br><br>%changelog<br>* Mon Oct 03 2008 Erk <eric.noulard@gmail.com><br> Update generator to handle optional dependencies using Requires<br> Update DEBUG output typos. <br>* Mon Aug 25 2008 Erk <eric.noulard@gmail.com><br> Update generator to handle optional post-install<br>* Tue Aug 16 2007 Erk <eric.noulard@gmail.com><br> Generated by CPack RPM Generator and associated macros<br><br>Pascale<br><br><br><br><br><br>> Date: Thu, 25 Jun 2009 16:39:14 +0200<br>> Subject: Re: [CMake] CPack, error generating rpm file, error "File must begin         with "/": "<br>> From: eric.noulard@gmail.com<br>> To: chose29@hotmail.com<br>> CC: cmake@cmake.org<br>> <br>> 2009/6/25 Pascale B <chose29@hotmail.com>:<br>> > Hi Eric,<br>> ><br>> > I already had this buildroot problem and fixed it, I copied the file<br>> > locally and can create packages (rpm, deb) on my local computer without any<br>> > problems.<br>> <br>> Ok sorry about that I didn't remember that yuo already faced this.<br>> <br>> > The problem I have now is on another computer, accessed through SSH, and<br>> > I already replaced the CPackRPM.cmake file.<br>> <br>> Ok you did replace the CPackRPM.cmake on the remote computer.<br>> <br>> > Where could the "File must begin<br>> > with "/": come from? I tried to grep this error string in the cmake folder<br>> > and didn't find it?<br>> <br>> I don't know, what is the content of rpmbuild.out file?<br>> <br>> Would you be able to<br>> <br>> 0) ssh to the machine<br>> 1) cd /to/the/buildir<br>> 2) cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM<br>> <br>> and copy the output here.<br>> And send me the buggy generated specs file<br>> should be in .../lnx/_CPack_Packages/Linux/RPM/SPECS.<br>> <br>> What kind of linux is the remote system?<br>> Fedora 9,10,11? Mandriva, Debian etc...<br>> <br>> How are you launching your RPM build on the remote SSH.<br>> Do you use the same CMAKE_INSTALL_PREFIX locally and<br>> <br>> Would you be able to run your RPM building on a remotely launched terminal:<br>> i.e.<br>> <br>> 0) ssh -X login@remote<br>> 1) gnome-terminal<br>> <br>> work on the locally displayed remote terminal.<br>> <br>> <br>> -- <br>> Erk<br>> Membre de l'April - « promouvoir et défendre le logiciel libre » -<br>> http://www.april.org<br><br /><hr />Create a cool, new character for your Windows Live™ Messenger. <a href='http://go.microsoft.com/?linkid=9656621' target='_new'>Check it out</a></body>
</html>