On Wed, Aug 31, 2005 at 10:55:53PM +0300, Lars Wirzenius wrote: > if grep -v '^/lib64$' /etc/ld.so.conf > /etc/ld.so.conf-amd64-libs-tmp; > then > chmod 0644 /etc/ld.so.conf-amd64-libs-tmp > mv /etc/ld.so.conf-amd64-libs-tmp /etc/ld.so.conf > else > rm -f /etc/ld.so.conf > fi > > I'm pretty sure that the else part should > remove /etc/ld.so.conf-amd64-libs-tmp instead of /etc/ld.so.conf. > > The error is repeated in the other if statements, a total of three > times, if I count correctly. Later in the postrm the temporary file is > removed anyway, so I guess the elses could be removed completely?
What do you think the bug is, exactly? "If there are no lines, other than this one, in ld.so.conf, remove ld.so.conf". > The postrm script also runs ldconfig only after it has > modified /etc/ld.so.conf. Would it not be sensible to run it beforehand, > so that ldconfig will remove links in the various 64-bit library > directories? (I suspect this is why the libncurses.so.5 link is left > behind on purge, but I haven't investigated it yet.) Oh, hmm. Let me think about that. -- Daniel Jacobowitz CodeSourcery, LLC -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]