OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002810 [gcc3core] packaging major always 2008-03-05 14:51 2009-07-27 10:14
Reporter zilbauer View Status public  
Assigned To pfelecan
Priority normal Resolution fixed  
Status closed  
Summary 0002810: 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.
Additional Information
Tags No tags attached.
Attached Files

- Relationships
has duplicate 0002719closedpfelecan postinstall script fails 

-  Notes
(0005173)
pfelecan (manager)
2008-03-06 03:31

you should install the X11 headers an retry the installation.
(0005174)
zilbauer (reporter)
2008-03-06 11:17

As near as I can tell, the headers are installed:

$ ls -l /usr/include/X11
lrwxrwxrwx 1 root 22 Mar 1 17:21 /usr/include/X11 -> ../openwin/include/X11


$ ls -l /usr/openwin/include/X11
total 763
-rw-r--r-- 1 root 3947 Dec 15 2004 Composite.h
-rw-r--r-- 1 root 4896 Dec 15 2004 CompositeP.h
-rw-r--r-- 1 root 4248 Dec 15 2004 ConstrainP.h
-rw-r--r-- 1 root 2817 Dec 15 2004 Constraint.h
-rw-r--r-- 1 root 2849 Dec 15 2004 Core.h
-rw-r--r-- 1 root 8820 Dec 15 2004 CoreP.h
-rw-r--r-- 1 root 2886 Dec 15 2004 DECkeysym.h
drwxr-xr-x 2 root 1024 Mar 1 17:20 DPS
drwxr-xr-x 2 root 512 Mar 1 17:20 ICE
-rw-r--r-- 1 root 74063 Dec 15 2004 Intrinsic.h
-rw-r--r-- 1 root 10179 Dec 15 2004 IntrinsicP.h
-rw-r--r-- 1 root 2804 Dec 15 2004 Object.h
-rw-r--r-- 1 root 7128 Dec 15 2004 ObjectP.h
-rw-r--r-- 1 root 2806 Dec 15 2004 RectObj.h
-rw-r--r-- 1 root 6655 Dec 15 2004 RectObjP.h
drwxr-xr-x 2 root 512 Mar 1 17:20 SM
-rw-r--r-- 1 root 17484 Dec 15 2004 Shell.h
-rw-r--r-- 1 root 12869 Dec 15 2004 ShellP.h
-rw-r--r-- 1 root 28135 Dec 15 2004 StringDefs.h
-rw-r--r-- 1 root 9648 Dec 15 2004 Suncompose.h
-rw-r--r-- 1 root 4095 Dec 15 2004 Sunkeysym.h
-rw-r--r-- 1 root 5075 Dec 15 2004 Sunowconfig.h
-rw-r--r-- 1 root 2979 Dec 15 2004 Vendor.h
-rw-r--r-- 1 root 3793 Dec 15 2004 VendorP.h
-rw-r--r-- 1 root 20415 Dec 15 2004 X.h
-rw-r--r-- 1 root 6156 Dec 15 2004 XF86keysym.h
-rw-r--r-- 1 root 34745 Dec 15 2004 XKBlib.h
-rw-r--r-- 1 root 11149 Dec 15 2004 XSunExt.h
-rw-r--r-- 1 root 3750 Dec 15 2004 XWDFile.h
-rw-r--r-- 1 root 2518 Dec 15 2004 Xatom.h
-rw-r--r-- 1 root 4291 Dec 15 2004 Xauth.h
drwxr-xr-x 2 root 1536 Mar 1 17:20 Xaw
-rw-r--r-- 1 root 22557 Dec 15 2004 Xcms.h
lrwxrwxrwx 1 root 35 Mar 2 08:26 Xcursor -> ../../../../X11/include/X11/Xcursor
-rw-r--r-- 1 root 6090 Dec 15 2004 Xdmcp.h
drwxr-xr-x 2 root 512 Mar 1 17:22 Xft
-rw-r--r-- 1 root 2767 Dec 15 2004 Xfuncproto.h
-rw-r--r-- 1 root 3851 Dec 15 2004 Xfuncs.h
-rw-r--r-- 1 root 2877 Dec 15 2004 XlcGeneric.h
-rw-r--r-- 1 root 5981 Dec 15 2004 XlcPubI.h
-rw-r--r-- 1 root 6542 Feb 24 2007 XlcPublic.h
-rw-r--r-- 1 root 24000 Feb 24 2007 Xlcint.h
-rw-r--r-- 1 root 96407 Dec 15 2004 Xlib.h
-rw-r--r-- 1 root 38984 Dec 15 2004 Xlibint.h
-rw-r--r-- 1 root 1769 Dec 15 2004 Xlocale.h
-rw-r--r-- 1 root 6850 Dec 15 2004 Xmd.h
drwxr-xr-x 2 root 512 Mar 1 17:20 Xmu
-rw-r--r-- 1 root 5968 Dec 15 2004 Xos.h
-rw-r--r-- 1 root 2747 Dec 15 2004 Xosdefs.h
-rw-r--r-- 1 root 55959 Dec 15 2004 Xproto.h
-rw-r--r-- 1 root 2588 Dec 15 2004 Xprotostr.h
-rw-r--r-- 1 root 10775 Dec 15 2004 Xresource.h
drwxr-xr-x 2 root 512 Mar 1 17:20 Xst
-rw-r--r-- 1 root 5628 Dec 15 2004 Xstreams.h
-rw-r--r-- 1 root 9954 Dec 15 2004 Xthreads.h
-rw-r--r-- 1 root 22975 Feb 24 2007 Xutil.h
-rw-r--r-- 1 root 2380 Dec 15 2004 Xvarargs.h
-rw-r--r-- 1 root 2298 Dec 15 2004 ap_keysym.h
drwxr-xr-x 2 root 2048 Mar 1 17:03 bitmaps
-rw-r--r-- 1 root 3096 Dec 15 2004 cursorfont.h
drwxr-xr-x 2 root 2048 Mar 2 08:27 extensions
-rw-r--r-- 1 root 2849 Dec 15 2004 keysym.h
-rw-r--r-- 1 root 82500 Dec 15 2004 keysymdef.h
-rw-r--r-- 1 root 16286 Dec 15 2004 xpm.h
(0005232)
ghenry (reporter)
2008-04-04 15:44

the bug is due to this link created during the installation:
ultra20-henry% ll /opt/csw/gcc3/lib/gcc/i386-pc-solaris2.8/3.4.5/include/X11
lrwxrwxrwx 1 root other 34 avr. 4 21:19 /opt/csw/gcc3/lib/gcc/i386-pc-solaris2.8/3.4.5/include/X11 -> root/usr/openwin/share/include/X11

as the link is bad, the command \"chmod -R\" in the postinstall script failed. I suggest to reconstruct the package?
(0005407)
hevisko (reporter)
2008-11-17 17:14

Grrr... I've logged a duplicate ;(

Yes, it's related to the mkheader + fixinc.sh that does that.

Please check the ./configure on this setup whether it's doing things right with that root stuff... or else it's something that needs to be taken upstream, but I've found that I do a pkgtrans, removed the error checking from the chown -R, fixed up pkgmap, and installed ;(
(0006446)
pfelecan (manager)
2009-07-20 18:23

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.
(0006468)
pfelecan (manager)
2009-07-27 10:14

fixed in the upcoming 3.4.6 package


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker