On 10/01/12 14:36, Dan Anderson wrote:
Tsu-Phone,

Looks like you have a version mismatch between the version of Solaris
and your Userland workspace.

This is one of the things that make IPS packages so irritating to use.

Maybe the Userland email list would have some ideas.

Yes, a package system that actually enforces the constraints packages specify is quite annoying, isn't it?

Ok, that was mean of me, but the package system is doing what was asked of it.

When mixing packages from completely different OS builds, constraints are going to (as expected) result in pain.

This has nothing to do with IPS and everything to do with how the packages were built.

In this case, it looks like the user is trying to install a version of trousers that was built on an S11 Update 1 system on an S11 FCS system. That's not going to work well.

-Shawn

- Dan

-------- Original Message --------
Subject:        similar trousers installation issue running your script
Date:   Mon, 1 Oct 2012 14:03:57 -0700 (PDT)
From:   Tsu-Phong Wu <[email protected]>
To:     Daniel E Anderson <[email protected]>
CC:     Tsu-phong Wu <[email protected]>



Hi Dan,

Modified your script in couple places and it didn't seem to work for me.
The script is shown at the end of this email.

My S11 is

   [root]fasolt:/root{91} # uname -a
   SunOS fasolt 5.11 11.0 sun4v sparc sun4v
   [root]fasolt:/root{92} # cat /etc/release
                           Oracle Solaris 11 11/11 SPARC
     Copyright (c) 1983, 2011, Oracle and/or its affiliates.  All rights 
reserved.
                             Assembled 18 October 2011

   [root]fasolt:/root{90} #
   BE                           Active Mountpoint Space   Policy Created
   --                           ------ ---------- -----   ------ -------
   s11sru9                      -      -          104.0K  static 2012-08-30 
15:38
   s11sru9_7166836              -      -          400.73M static 2012-08-31 
02:02
   s11sru9_7186095_pre          -      -          8.09M   static 2012-09-14 
13:43
   s11sru_7186095_post          -      -          2.63G   static 2012-09-14 
14:49
   s11sru_7186095_post-backup-1 -      -          226.0K  static 2012-09-20 
14:27
   s11sru_7186095_post-backup-2 -      -          234.0K  static 2012-09-20 
14:43
   s11sru_7186095_post-backup-3 -      -          242.0K  static 2012-09-20 
14:53
   solaris                      -      -          7.29M   static 2012-08-30 
11:38
   solaris_1                    N      /          1.86M   static 2012-10-01 
13:34
   solaris_1-trousers           R      -          3.39G   static 2012-10-01 
13:38
   [root]fasolt:/root{91} #

The captured log is shown below.

+ beadm destroy solaris_1-trousers
+ echo y
be_list: BE (solaris_1-trousers) does not exist
solaris_1-trousers does not exist or appear to be a valid BE.
Please check that the name of the BE provided is correct.
+ beadm create solaris_1-trousers
+ beadm mount solaris_1-trousers /mnt
+ pkg -R /mnt publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                               origin   
onlinehttp://ipkg.us.oracle.com/solaris11/support/
userland
+ pkg -R /mnt change-facet 'facet.version-lock.library/security/trousers=false'
             Packages to update: 436
      Variants/Facets to change:   1
        Create boot environment:  No
Create backup boot environment:  No

Removal Phase ...  Done
Image State Update Phase ...  Done
+ uname -p
+ [ sparc '=' sparc ]
+ pkg -R /mnt set-publisher -pfile:///workspace/tsuwu/su220/sparc/repo
pkg set-publisher:
   Updated publisher(s): userland
+ pkg -R /mnt publisher
PUBLISHER                             TYPE     STATUS   URI
solaris                               origin   
onlinehttp://ipkg.us.oracle.com/solaris11/support/
userland                              origin   
onlinefile:///workspace/tsuwu/su220/sparc/repo/
+ pkg -R /mnt install pkg://userland/library/security/trousers

pkg install: No matching version of library/security/trousers can be installed:
   
Reject:pkg://userland/library/security/[email protected],5.11-0.175.0.1.0.0.1117:20120925T214616Z
   Reason:  All versions matching 'require' 
dependencypkg:/library/security/[email protected],5.11-0.175.0.9.0.4.0  are 
rejected
     
Reject:pkg://solaris/library/security/[email protected],5.11-0.175.0.9.0.4.0:20120629T171812Z
     Reason:  This version is excluded by installed 
incorporationpkg://solaris/consolidation/userland/[email protected],5.11-0.175.0.0.0.2.537:20111019T091357Z
+ pkg -R /mnt info pkg://userland/library/security/trousers
pkg: info: no packages matching the following patterns you specified are
installed on the system.  Try specifying -r to query remotely:

         pkg://userland/library/security/trousers
+ beadm unmount solaris_1-trousers
+ beadm activate solaris_1-trousers

Thanks for your help.
Tsu-Phong

======================
#! /bin/ksh
CURRENT_BE_NAME=$(/usr/sbin/beadm list | grep N | cut -f1 -d' ')
CURRENT_BE_NAME=${CURRENT_BE_NAME:-solaris}
BENAME=${CURRENT_BE_NAME}-trousers
REPO=workspace/tsuwu/su220

set -x

# Create BE
echo y |beadm destroy $BENAME
beadm create $BENAME
beadm mount $BENAME /mnt

pkg -R /mnt publisher    # before
pkg -R /mnt change-facet facet.version-lock.library/security/trousers=false

if [ $(uname -p) = "sparc" ] ; then
      # SPARC userland publisher:
      pkg -R /mnt set-publisher -pfile:///$REPO/sparc/repo
else # i386
      # X86 userland publisher:
      pkg -R /mnt set-publisher -pfile:///$REPO/i386/repo
fi

pkg -R /mnt publisher    # after

pkg -R /mnt install pkg://userland/library/security/trousers
pkg -R /mnt info pkg://userland/library/security/trousers

beadm unmount $BENAME
beadm activate $BENAME



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

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

Reply via email to