OpenSolaris

Printable Version Enter a New Search
Bug ID 6386535
Synopsis SUNWxorg-mesa package can fail to install symlink for /usr/include/GL
State 10-Fix Delivered (Fix available in build)
Category:Subcategory xserver:devices_x86
Keywords sirt-postck
Responsible Engineer John M Martin
Reported Against s10u4_09
Duplicate Of
Introduced In
Commit to Fix snv_40
Fixed In snv_40
Release Fixed solaris_nevada(snv_40) , solaris_10u4(s10u4_04) (Bug ID:2150192)
Related Bugs 6569488
Submit Date 16-February-2006
Last Update Date 15-June-2007
Description
When doing an upgrade between builds or manually
upgrading the SUNWxorg-mesa package from b33 to b34,
the SUNWxorg-mesa package installation can fail to
install the symlink for /usr/include/GL if the NVIDIA
driver web installation has been run.

# pkgadd -d . SUNWxorg-mesa
...
/usr/include/GL <symbolic link>
pkgadd: ERROR: unable to create package object </usr/include/GL>.
    file type <s> expected <d> actual
    unable to remove existing directory at </usr/include/GL>
...

Installation of <SUNWxorg-mesa> partially failed.
#

The directory /usr/include/GL created by the NVIDIA
web installation is not replaced with a symlink to
/usr/X11/include/GL.
This also shows up during upgrade testing on x86 from s10u3 FCS to s10u4_09.

	I did the following initial install on x86:

OS: s10u3 FCS
Media: DVD net image
Cluster: SUNWCXall
Locale to use: C


	Then I  upgrade to s10u4_09:

OS:  s10u4_09
Media: DVD net image
Upgrade method:  Live upgrade or regular upgrade.

	The following are dangling links in SUNWxorg-mesa:

/usr/X11/lib/amd64/libGL.so=../GL/amd64/libGL.so s none SUNWxorg-mesa
/usr/X11/lib/amd64/libGLU.so=../GL/amd64/libGLU.so s none SUNWxorg-mesa
/usr/X11/lib/amd64/libGLU.so.1=../GL/amd64/libGLU.so.1 s none SUNWxorg-mesa
/usr/X11/lib/amd64/libGLw.so=../GL/amd64/libGLw.so s none SUNWxorg-mesa
/usr/X11/lib/amd64/libGLw.so.1=../GL/amd64/libGLw.so.1 s none SUNWxorg-mesa
/usr/X11/lib/libGL.so=GL/libGL.so s none SUNWxorg-mesa
/usr/X11/lib/libGLU.so=GL/libGLU.so s none SUNWxorg-mesa
/usr/X11/lib/libGLU.so.1=GL/libGLU.so.1 s none SUNWxorg-mesa
/usr/X11/lib/libGLw.so=GL/libGLw.so s none SUNWxorg-mesa
/usr/X11/lib/libGLw.so.1=GL/libGLw.so.1 s none SUNWxorg-mesa


	In the s10u4_09 SUNWxorg-mesa, there is the preremove script to do this:

root@ins3525-svr# more preremove
# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#pragma ident   "@(#)preremove  1.2     07/01/31 SMI"
#
# SUNWxorg-mesa preremove script.

# If the NVIDIA web installation has been run prior to
# the integration of the OpenGL switcher, it will have
# created the directory /usr/include/GL which the package
# programs will refuse to replace with a symlink. 
(   # Run in a subshell to isolate any directory changes if we later expand this
    # script.

    if [ -d $BASEDIR/include/GL ]; then
        rm -rf $BASEDIR/include/GL
    fi
)

exit 0

root@ins3525-svr# 


	This should really be in preinstall script in SUNWxorg-mesa for s10u4.
Work Around
N/A
Comments
N/A