[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [pkg-nvidia-devel] Moving diversions between packages



Russ Allbery <rra@debian.org> writes:

> Ian Jackson <ijackson@chiark.greenend.org.uk> writes:
>
>> Why not have the new package ship libGL.so.1 to a more specific filename
>> and create a symlink named libGL.so.1 by hand in its postinst ?  That
>> way you can defer doing the diversion until that part of the postinst,
>> by which time the old package and its diversion are gone.
>
> Oh, huh, I hadn't thought of that.  But wouldn't this cause the library to
> temporarily disappear, which would be contrary to the last paragraph of
> Policy 8.1?  Am I being too conservative about that?

For the split second between the dpkg-divert and the ln call on install
or between the rm and dpkg-divert on removal. I think you are too
conservative there.

You are refering to "between the time that dpkg installs it and the time
that ldconfig is run in the postinst script", right? But the disapearing
would be only for a split second while your postinst runs.

MfG
        Goswin


Reply to: