[OE-core] Issue with package_rpm : can't install files named "%name..."

Paul Eggleton paul.eggleton at linux.intel.com
Mon Oct 28 15:11:55 UTC 2013


Hi Sebastien,

On Monday 28 October 2013 14:44:57 Sebastien MENNETRIER wrote:
> I try to cross-compile and install rubygems and the gems contain some
> directories and files named "%name...".
> 
> To create the rpm package, a spec file that contains the list of all files
> and directories that must be in the rpm package is generated in do_package.
> 
> The rpm process replace all the "%name" in the spec file by the name of the
> package. So the package process try to include some file and directory that
> doesn't exist.
> 
> How can I resolve this issue ? Is it a bug in package_rpm.bbclass ?

It is a limitation in package_rpm.bbclass's current behaviour, yes. It 
probably needs to be fixed to escape % at the start of a filename when writing 
out the spec file (assuming that is possible, that is). Could you please file a 
bug for this (at bugzilla.yoctoproject.org)?

Thanks,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the Openembedded-core mailing list