On Apr 9, 2007, at 11:56 AM, Arkadiusz Miskiewicz wrote:
> On Monday 09 of April 2007, Jeff Johnson wrote:
>> On Apr 9, 2007, at 6:53 AM, Arkadiusz Miskiewicz
wrote:
>>> rpm can't handle such situation (tested on
4.4.7 but it seems that
>>> 4.4.9 has
>>> the same problem) where directory changes into
symlink on
>>> upgrade. See
>>> attached spec files.
>>>
>>> Couldn't rpm deal with this situation ? Like mv
dir dir.rpmsave
>>> maybe?
>>
>> Use %pretrans
>> mv dir dir.rpmsave
>> ln -s dir.rpmsave dir
>>
>> A general solution has to propagate the directory
and all its
>> contents, checking
>> for ENOSPC and more , worrying abt multiple mount
points within the
>> tree.
>
> What if I do that in %pre? What's difference between
doing that in %
> pre
> and %pretrans in this case?
>
%pre is too late, rpm goes to great lengths to disambiguate
paths that
follow symlinks, essentially by stating every directory for
a
(dev,inode) pair
in something that rpm calls a fingerprint.
So %pretrans before fingerprint creation is what is needed
to replace a
directory with a symlink.
73 de Jeff
_______________________________________________
Rpm-devel mailing list
Rpm-devel lists.dulug.duke.edu
https://lists.dulug.duke.edu/mailman/listinfo/rpm-devel
a>
|