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