Zitat von Eric Noulard <[email protected]>:

2011/7/29 Bjørn Forsman <[email protected]>:

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

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to