replacing folders with symlinks leads to rpm cpio rename errors

Panu Matilainen pmatilai at laiskiainen.org
Fri Sep 21 08:17:27 UTC 2012


On 09/21/2012 10:27 AM, Ralf Corsepius wrote:
> On 09/21/2012 09:22 AM, Julian Sikorski wrote:
>> W dniu 21.09.2012 08:53, Julian Sikorski pisze:
>>> Hi list,
>>>
>>> one of the updates I am preparing is supposed to replace some of the
>>> folders with symlinks. Unfortunately, this leads to rpm cpio: rename
>>> errors upon an update attempt. Is there a standard way of dealing
>>> with this?
>>>
>>> Regards,
>>> Julian
>>>
>> It seems to have gone through upon the second attempt. Odd.
>
> Was the directory empty before installing the rpm replacing the
> directory with a symlink?
>
> I could be wrong, but IIRC, current rpm is only able to handle
> dir->symlink replacers when "dir"s are empty.

A directory (empty or not) can't be automatically replaced by anything 
else (symlink or otherwise) in the existing rpm versions. If absolutely 
necessary, it can be accomplished by doing the necessary renames and 
symlinks in "%pretrans -p <lua>" scriptlet, but that should be only seen 
as the last resort as its not exactly a safe operation.

	- Panu -



More information about the devel mailing list