I'm in the process of splitting the Solaris Studio package
into smaller packages, and renaming it from sunstudioexpress
to solstudioex.

I'm having trouble getting the rename to work.  When I install the
old named package, it refuses to install the new renamed package.
"sunstudioexpress" was recently renamed to "developer/sunstudioexpress",
and now I'm renaming that to "developer/solstudioex".

I think I've set up all the dependencies right for renaming a
package, but I get a pkg failure when it's supposed to
transition from an old package name to a newer one.

I'm not sure if there is a problem because the packages
are split between two servers.

I've included the new "Studio" file that I'm using.

Here's a URL to the output of "pkg install -v solstudioex"
when developer/sunstudioexpress is installed.

http://mediacast.sun.com/users/Chris_Quenelle/media/pkg.out.txt


---- to reproduce:

Start by not having any "sunstudioexpress" packages installed.

Here are my publishers:
% pkg publisher
PUBLISHER                             TYPE     STATUS   URI
bug9999                  (preferred)  origin   online   
http://tiaga.sfbay.sun.com:9999/
opensolaris.org                       origin   online   http://ipkg.sfbay/dev/
opensolaris.org                       mirror   online   
http://pkg-na-2.opensolaris.org/


try:
pfexec pkg install pkg://opensolaris.org/developer/sunstudioexpress
pfexec pkg install pkg://bug9999/developer/solstudioex

The second pkg install doesn't work.




#
# TBD: Need to rename "sunstudio" to "solstudio"
# This involves a few extra gymnastics similar
# to the way "sunstudio12u1" was renamed to
# "developer/sunstudio12u1".
#
# Since we're also changing the base directory, perhaps we
# don't need all the same mess that we did with 
# "sunstudio"->"developer/sunstudio"
#


#
# Oracle Solaris Studio, FCS release
#


package developer/sunstudio
version 12.1.1
depend developer/sunstudio12u1
# This dependency is used as part of package renaming
add depend [email protected] type=optional
end package

package developer/sunstudio12u1
classification "Development/C"
classification "Development/C++"
classification "Development/High Performance Computing"
classification "Development/Integrated Development Environments"
classification "Development/Suites"
summary "Sun Studio - C, C++, & Fortran compilers and Tools"
version 12.1.1
import sunstudio12u1
depend SUNWarc
depend SUNWcpp
depend SUNWhea
depend SUNWj6cfg
depend SUNWj6dev
depend SUNWj6dmo
depend SUNWj6dmx
depend SUNWj6dvx
depend SUNWj6man
depend SUNWj6rt
depend SUNWj6rtx
depend SUNWlibm
depend SUNWsprot
depend SUNWtoo
# This dependency is necessary to get the express package to
# remove it's symlinks from /usr/bin.
add depend fmri=developer/[email protected] type=optional
# This dependency is used as part of package renaming
add depend [email protected] type=optional
add set name=info.keyword value="Fortran compiler module iropt optimizer \
    autopar debug debugger debugging breakpoint parallelization tuning \
    multi-thread multi-core productivity HPC linux collector platform \
    xprofile profile profiling performance library blas lapack fftpack \
    fft solver sparse C C++ OpenMP Studio IDE editor refactoring \
    DLight"
end package

package sunstudio
add set name=pkg.renamed value=true
depend developer/sunstudio
version 12.1.1-1
end package

package sunstudio12u1
add set name=pkg.renamed value=true
depend developer/sunstudio12u1
version 12.1.1-1
end package

#
# Oracle Solaris Studio, Express release
#

package developer/solstudioex
classification "Development/C"
classification "Development/C++"
classification "Development/High Performance Computing"
classification "Development/Integrated Development Environments"
classification "Development/Suites"
summary "Sun Studio Express - C, C++, & Fortran compilers and Tools"
version 0.2010.6
depend system/header
depend system/library/c++/sunpro
depend system/library/math
depend system/library/math/header-math
depend developer/build/make
depend developer/macro/cpp
depend developer/library/lint
depend developer/java/jdk
depend developer/linker
#
#depend developer/solstudioex/[email protected]
#
# Perhaps this list should include only user-facing packages
# (like cc) and not system packages (like backend)
# We could let the dependencies pull in the rest.
depend developer/solstudioex/analyzerx
depend developer/solstudioex/backendx
depend developer/solstudioex/c++x
depend developer/solstudioex/c++-libsx
depend developer/solstudioex/ccx
depend developer/solstudioex/compiler-oslibsx
depend developer/solstudioex/dbxx
depend developer/solstudioex/dbxtoolx
depend developer/solstudioex/dlightx
depend developer/solstudioex/dmakex
$(sparc_ONLY)depend developer/solstudioex/f77-libsx
depend developer/solstudioex/f90-libsx
depend developer/solstudioex/fortranx
depend developer/solstudioex/iblasx
depend developer/solstudioex/math-libsx
depend developer/solstudioex/perflibx
depend developer/solstudioex/scalapackx
depend developer/solstudioex/studio-commonx
depend developer/solstudioex/studio-idex
#
# This dependency is used as part of package renaming
add depend fmri=developer/[email protected] type=optional
add depend [email protected] type=optional
#
add set name=info.keyword value="Fortran compiler module iropt optimizer \
    autopar debug debugger debugging breakpoint parallelization tuning \
    multi-thread multi-core productivity HPC linux collector platform \
    xprofile profile profiling performance library blas lapack fftpack \
    fft solver sparse C C++ OpenMP Studio IDE editor refactoring \
    DLight"
end package

package developer/sunstudioexpress
add set name=pkg.renamed value=true
depend developer/solstudioex
add depend [email protected] type=optional
version 0.2009.3.1-1
end package

package sunstudioexpress
add set name=pkg.renamed value=true
depend developer/sunstudioexpress
version 0.2009.3.1-1
end package

#
# Components of Oracle Solaris Studio Express releases are
# put into a subgroup to associate them together, and they
# have an "x" appended to their basename so that 
# "pkg install cc" will not get confused between the FCS and
# Express releases.
#

package developer/solstudioex/analyzerx
classification "Development/C"
classification "Development/C++"
classification "Development/High Performance Computing"
classification "Development/Performance Measurement"
version 0.2010.6
import analyzer
summary "Sun Studio Performance Analyzer (including collect, analyzer, 
er_print, ...)"
add set name=info.keyword value="performance, performance measurement, 
performance tuning, performance analysis"
end package
 
package developer/solstudioex/backendx
version 0.2010.6
import backend
depend developer/solstudioex/math-libsx
summary "Sun Compiler Common Files"
end package
 
package developer/solstudioex/c++x
classification "Development/C++"
classification "Development/High Performance Computing"
version 0.2010.6
import c++
depend developer/solstudioex/ccx
depend developer/solstudioex/backendx
depend developer/solstudioex/c++-libsx
summary "Sun C++ Compilers"
add set name=info.keyword value="optimizer parallelization tuning multi-thread 
multi-core autopar OpenMP "
end package
 
package developer/solstudioex/c++-libsx
version 0.2010.6
import c++-libs
summary "Sun C++ dynamic libraries"
end package
 
package developer/solstudioex/ccx
classification "Development/C"
classification "Development/High Performance Computing"
version 0.2010.6
import cc
depend developer/solstudioex/backendx
summary "Sun C Compiler"
add set name=info.keyword value="optimizer parallelization tuning multi-thread 
multi-core autopar OpenMP "
end package
 
package developer/solstudioex/compiler-oslibsx
version 0.2010.6
import compiler-oslibs
summary "Copies of libraries that are normally delivered through Solaris."
end package
 
package developer/solstudioex/dbxx
classification "Development/Debugging"
version 0.2010.6
import dbx
summary "Sun Studio Debugging Tools"
end package
 
package developer/solstudioex/dbxtoolx
classification "Development/C"
classification "Development/C++"
classification "Development/Fortran"
classification "Development/Debugging"
version 0.2010.6
import dbxtool
depend developer/solstudioex/dbxx
summary "A simple GUI for using dbx.  Based on a simplified Netbeans 
configuration."
add set name=info.keyword value="dbx dbxgui sside dbxtool"
end package
 
package developer/solstudioex/dlightx
classification "Development/Performance Measurement"
version 0.2010.6
import dlight
summary "DLight Observability Tool Aten"
add set name=info.keyword value="C C++ Fortran observability profiler DTrace"
end package
 
package developer/solstudioex/dmakex
classification "Development/C"
classification "Development/C++"
classification "Development/Fortran"
classification "Development/Build"
version 0.2010.6
import dmake
summary "Sun Studio Building Software including Distributed Make (dmake)"
add set name=info.keyword value="distributed parallel build, make, dmake, grid, 
SGE, Sun Grid Engine"
end package
 
$(sparc_ONLY)package developer/solstudioex/f77-libsx
$(sparc_ONLY)version 0.2010.6
$(sparc_ONLY)import f77-libs
$(sparc_ONLY)summary "Sun Fortran legacy dynamic libraries"
$(sparc_ONLY)end package
 
package developer/solstudioex/f90-libsx
version 0.2010.6
import f90-libs
summary "Sun Fortran dynamic libraries"
end package
 
package developer/solstudioex/fortranx
classification "Development/Fortran"
classification "Development/High Performance Computing"
version 0.2010.6
import fortran
depend developer/solstudioex/backendx
depend developer/solstudioex/f90-libsx
$(sparc_ONLY)depend developer/solstudioex/f77-libsx
summary "Sun Fortran Compiler"
add set name=info.keyword value="optimizer parallelization tuning multi-thread 
multi-core autopar OpenMP "
end package
 
package developer/solstudioex/iblasx
classification "Development/High Performance Computing"
version 0.2010.6
import iblas
summary "Interval Libraries"
add set name=info.keyword value="Interval_BLAS"
end package
 
package developer/solstudioex/math-libsx
version 0.2010.6
import math-libs
summary "math libraries"
end package
 
package developer/solstudioex/perflibx
classification "Development/High Performance Computing"
version 0.2010.6
import perflib
summary "Sun Performance Library"
add set name=info.keyword value="BLAS LAPACK FFTPACK SuperLU SPSOLVE Sparse 
BLAS Sort Convolution Correlation"
end package
 
package developer/solstudioex/scalapackx
classification "Development/High Performance Computing"
version 0.2010.6
import scalapack
summary "Scalapack"
add set name=info.keyword value="ScaLAPACK BLACS"
end package
 
package developer/solstudioex/studio-commonx
version 0.2010.6
import studio-common
summary "Common internal components needed by components of the Sun Studio 
product "
add set name=info.keyword value="studio"
end package
 
package developer/solstudioex/studio-idex
classification "Development/Debugging"
classification "Development/Integrated Development Environments"
version 0.2010.6
import studio-ide
depend developer/solstudioex/dbxx
summary "Sun Studio IDE"
add set name=info.keyword value="studio IDE netbeans dbx dbxgui sside"
end package
 
#package developer/solstudioex/solstudioex-incorporation
#version 0.2010.6
#summary "Solaris Studio Express incorporation to avoid package mismatches"
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#$(sparc_ONLY)add depend type=incorporate 
fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#add depend type=incorporate fmri=developer/solstudioex/[email protected]
#end package

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to