Description of Problem: My /usr/share is NFS-mounted and shared between some systems. To prevent unsolicited actions, this directory is mounted read-only and put into rpm's %_netsharedpath. The libtool's %post install script wants writing access to /usr/share/doc/libtool-1.4/demo and fails because this is not allowed. This failure leads to a slight corruption of the rpm-database: ----------------- $ rpm -q libtool libtool-1.4-1 $ rpm -U /usr/src/redhat/RPMS/i386/libtool-1.4-2.i386.rpm You should update your `aclocal.m4' by running aclocal. rm: cannot unlink `config.guess': Read-only file system ... Error: execution of %post scriptlet from libtool-1.4-2 failed, exit status 1 $ rpm -q libtool libtool-1.4-1 libtool-1.4-2 ------------------- To prevent this I suggest to add the line marked with `+' to the scriptlet: ------------------- /sbin/install-info /usr/share/info/libtool.info.gz /usr/share/info/dir # XXX hack alert cd /usr/share/doc/libtool-1.4/demo || cd /usr/doc/libtool-1.4/demo || exit 0 + { touch .test-write 2>/dev/null && rm -f .test-write; } || exit 0 libtoolize --copy --force aclocal ... ------------------- Steps to Reproduce: 1. mount -o remount,ro /usr; echo '%_netsharedpath /usr' >>/etc/rpm/macros 2. rpm -U libtool-1.4-2.i386.rpm --force
I have disabled the post script writing into /usr/share completely. That doesn;t make any sense. Thanks for this bug-report, Florian La Roche