On 9/21/2011 2:32 PM, Danek Duvall wrote:
George Vasick wrote:

I received the following error while attempting to install my newly
built gcc-45 package:

(gcc-v20z-s01:bash) gvasick: pkg publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                  (non-sticky) origin   online   
http://10.134.6.21/solaris11/dev/
userland                              origin   online   
file:///net/gcc-v20z-s01/export/home/george/userland/i386/repo/
(gcc-v20z-s01:bash) gvasick: pkg install pkg://userland/developer/gcc-45
Creating Plan /
pkg install: No matching version of developer/gcc-45 can be installed:
   Reject: 
pkg://userland/developer/[email protected],5.11-0.175.0.0.0.0.520:20110922T033844Z
   Reason:  This version is excluded by installed incorporation 
pkg://solaris/consolidation/userland/[email protected],5.11-0.173.0.0.0.0.487:20110827T221139Z

My test system is running build 173.  Any idea what I am doing wrong?

Probably that you only have a build 175 version of gcc in your repo, so
since you're explicitly asking for gcc from your repo, that's all it'll
give you, and it's in conflict with the constraints provided by the
userland incorporation.

The right answer is to allow the incorporation to let the gcc package
float:

     pkg change-facet version-lock.developer/gcc-45=false

That did the trick. I am not quite sure where the build 175 dependency came from. I built the package on this same build 173 system.


Thanks,
George


Assuming that your copy gcc-45 has a dependency on a build 175 mpc and
mpfr, you'll need to unlock those, too, and due to performance issues in
change-facet, you'll want to do them all at once:

     pkg change-facet version-lock.developer/gcc-45=false \
         version-lock.library/mpc=false \
         version-lock.library/mpfr=false

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

Reply via email to