[CMake] Buggy CPack generator behaviour?

Hendrik Sattler post at hendrik-sattler.de
Fri Jul 29 09:52:07 EDT 2011


Zitat von Eric Noulard <eric.noulard at gmail.com>:

> 2011/7/29 Bjørn Forsman <bjorn.forsman at gmail.com>:
>>>
>>> As you guessed this is impossible without backward compat' breakage.
>>> e.g. be aware that with "CPACK_SET_DESTDIR" set to ON RPM and DEB
>>> behavior changes
>>> namely RPM package built with that may not be relocatable.
>>
>> What do you mean with 'not relocatable'? I didn't see any difference
>> in the archive layouts of RPM and DEB when changing CPACK_SET_DESTIR
>> from 'not set' to ON.
>
> if you do:
>
> rpm -qpi your.rpm
>
> you'll see a line like:
>
> "Relocations : (not relocatable)"
> or
> "Relocations : /usr"
>
> When an rpm is relocatable you can do
>
> rpm -i  --prefix=/your/relocation/prefix your.rpm
>
> if the rpm is not relocatable you can't.

That makes it hard to install stuff that MUST be in specific  
directories like e.g. udev rules or files that the software expects in  
/etc (_nobody_ uses /usr/etc). Any package that installs files there  
are not relocatable? That makes this feature pretty useless...

HS



More information about the CMake mailing list