Bug 40575 - Failed installation if /usr/share is read-only
Summary: Failed installation if /usr/share is read-only
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: libtool
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Florian La Roche
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-05-14 19:02 UTC by Enrico Scholz
Modified: 2007-04-18 16:33 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-06-11 20:49:07 UTC
Embargoed:


Attachments (Terms of Use)

Description Enrico Scholz 2001-05-14 19:02:23 UTC
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

Comment 1 Florian La Roche 2001-06-12 11:35:33 UTC
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



Note You need to log in before you can comment on or make changes to this bug.