Bug 142103 - %post fails on readonly-mounted /usr/share
%post fails on readonly-mounted /usr/share
Status: CLOSED DUPLICATE of bug 122713
Product: Fedora
Classification: Fedora
Component: servletapi5 (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Gary Benson
:
Depends On: 51193
Blocks:
  Show dependency treegraph
 
Reported: 2004-12-07 06:59 EST by Enrico Scholz
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-06-03 05:15:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Enrico Scholz 2004-12-07 06:59:37 EST
Description of problem:

| # rpm -Uvh servletapi5-5.0.18-1jpp_3fc.noarch.rpm servletapi5-javadoc-5.0.18-1jpp_3fc.noarch.rpm
| Preparing...                ########################################### [100%]
|    1:servletapi5-javadoc    ########################################### [ 50%]
| rm: cannot remove `/usr/share/javadoc/servletapi5': Read-only file system
| rm: cannot remove `/usr/share/javadoc/jsp-api': Read-only file system
| ln: creating symbolic link `/usr/share/javadoc/servletapi5/servletapi5-5.0.18' to `servletapi5-5.0.18': Read-only file system
| ln: creating symbolic link `/usr/share/javadoc/jsp-api/jsp-api-5.0.18' to `jsp-api-5.0.18': Read-only file system
| error: %post(servletapi5-javadoc-5.0.18-1jpp_3fc) scriptlet failed, exit status 1
|    2:servletapi5            ########################################### [100%]



This is caused by the

| $ rpm -q --scripts servletapi5-javadoc
| postinstall scriptlet (using /bin/sh):
| rm -f /usr/share/javadoc/servletapi5
| rm -f /usr/share/javadoc/jsp-api
| ln -s servletapi5-5.0.18 /usr/share/javadoc/servletapi5
| ln -s jsp-api-5.0.18 /usr/share/javadoc/jsp-api


script which does not check whether /usr/share is mounted read-only.

Note that the %post script of the main-package is ok; it uses
'update-alternatives' which seems to operate in a more clever way.


See bug #51193 for additional information.



Version-Release number of selected component (if applicable):

servletapi5-5.0.18-1jpp_3fc


How reproducible:

100%



Additional info:

afais, most of the other java-packages are affected also.
Comment 1 Fernando Nasser 2004-12-07 08:29:33 EST
/usr/share mounted as read-only is not supported.

Out of curiosity, why would someone want to do that?

Regards.
Comment 2 Enrico Scholz 2004-12-07 08:39:13 EST
read-only /usr/share is supported. Please read bug #51193 for details.
Comment 3 Enrico Scholz 2004-12-07 08:58:20 EST
a more java-package specific explaination can be found in bug #122713
Comment 4 Fernando Nasser 2004-12-07 09:38:58 EST
No, our Java packages belong to the RHAPS product that does NOT
support read-only /usr/share.

If this feature is deemed necessary, please create an appropriate
"feature request" so it can be evaluated by PM, work estimated,
scheduled and implemented.

In the meanwhile I have raised the issue of  bug #51193  upstream for
opinions on the feasibility of a solution.
Comment 5 Fernando Nasser 2004-12-07 09:41:19 EST
Correction, the Java-related bug that is to be discussed upstream is
bug #122713
Comment 6 Enrico Scholz 2004-12-07 10:06:16 EST
No, the java-packages belong to the Fedora Core project which supports
%_netsharedpath.
Comment 7 Fernando Nasser 2004-12-07 10:30:33 EST
OK, so I am reassigning it so it is handled in a Fedora Core-only context.
Comment 9 Gary Benson 2005-06-03 05:15:49 EDT

*** This bug has been marked as a duplicate of 122713 ***

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