[bug-notifications] [gcc3core 0002810]: postinstall script does not complete successfully

Mantis Bug Tracker noreply at opencsw.org
Fri Jul 24 11:21:00 CEST 2009


The issue 0002719 has been set as DUPLICATE OF the following issue. 
====================================================================== 
http://www.opencsw.org/bugtrack/view.php?id=2810 
====================================================================== 
Reported By:                zilbauer
Assigned To:                pfelecan
====================================================================== 
Project:                    gcc3core
Issue ID:                   2810
Category:                   packaging
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2008-03-05 14:51 CET
Last Modified:              2009-07-20 18:23 CEST
====================================================================== 
Summary:                    postinstall script does not complete successfully
Description: 
When installing this package on Solaris 10:

SunOS inet2 5.10 Generic_127112-10 i86pc i386 i86pc Solaris

by way of a \"pkg-get -i gcc3\", the postinstall script fails at
the end of the package install:

...
/opt/csw/share/doc/gcc3core/gccinstall.pdf
/opt/csw/share/doc/gcc3core/gccinstall.ps
/opt/csw/share/doc/gcc3core/gccint.pdf
/opt/csw/share/doc/gcc3core/gccint.ps
/opt/csw/share/doc/gcc3core/libiberty.pdf
/opt/csw/share/doc/gcc3core/libiberty.ps
[ verifying class <none> ]
/opt/csw/gcc3/bin/i386-pc-solaris2.8-gcc <linked pathname>
/opt/csw/gcc3/bin/i386-pc-solaris2.8-gcc-3.4.5 <linked pathname>
## Executing postinstall script.
*** NOTICE ***
Fixing the system headers
for a detailed log see /var/sadm/install/logs/CSWgcc3core-20080305113007
Don\'t forget: whenever your system headers change run the mkheaders
script!
pkgadd: ERROR: postinstall script did not complete successfully

Installation of <CSWgcc3core> failed.
ERROR: could not add CSWgcc3core.


The log file referenced above (CSWgcc3core-20080305113007) contains the
following: 

chown: X11: No such file or directory
postinstall: anomaly : cannot change ownership for include directory!

It\'s possible to continue on with the Blastwave installation of gcc3,
however \"pkg-get\" continually complains that gcc3core is not
fully installed. I\'ve not yet run into a case where the gcc3 installation
fails to work (eventhough the gcc3core package install failed), but that
doesn\'t mean there isn\'t one.

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0002719 postinstall script fails
====================================================================== 

---------------------------------------------------------------------- 
 (0006446) pfelecan (manager) - 2009-07-20 18:23
 http://www.opencsw.org/bugtrack/view.php?id=2810#c6446 
---------------------------------------------------------------------- 
Working on 3.4.6 I can confirm that the issue comes from the chmod -R in
the postinstall script. When using /bin/chmod you get the error as X11 is a
link toward an inexistent target --- this is because fixincl creates this
link in case there is something to fix in the X11 related includes but
doesn't find any, consequently the symbolic link is dangling.

There are 3 solutions:

1. remove the link in postinstall
2. use another method for recursively change the tree's ownership --- e.g.
find
3. make gcc3core depend on gfile and use gchown which is lenient toward
this kind of situation and, IMHO, has the expected behaviour.

I'll probably choose the 2nd one for 3.4.6 as 3 implies a new dependency,
consequently a heavyer payload, and 1 is uncertain.

In the meantime you can avert this error by installing gfile and gnulinks
packages before installing gcc3core --- i.e. provide the dependency that I
discuss in 2 --- and set your PATH to contain /opt/csw/gnu at the beginning
of the list.




More information about the bug-notifications mailing list