On 10/01/12 16:41, Tsu-Phong Wu wrote:
This is the version I ended up with:

   
pkg://userland/library/security/trousers@0.3.6,5.11-0.175.0.1.0.0.1117:20120925T214616Z

The workspace is created for s11-sru by

   hg clone ssh://u...@userland.us.oracle.com//gates/gate -u s11-sru su220

The build version is picked up automatically by 
su220/make-rules/ips-buildinfo.mk which has the following originals:

   TRUNK_ID ?= 0.175
   UPDATENUM ?= 0
   SRUNUM ?= 1
   PLATNUM ?= 0
   BUILDID ?= 0
and few other ...

I have not made any intentional changes to the version string.
As I'm trying to replace

   
pkg://solaris/library/security/trousers@0.3.6,5.11-0.175.0.0.0.2.537:20111019T105635

with my new version.

Next I'll try SRUNUM 0 and BUILDID 3 so that my version end up 175.0.0.0.3
while that might fix your version string and trick pkg, I think the below complaint is saying your new package also depends on a newer openssl package, which it can't update because you haven't unlocked that one as well. which you could try to do, but I suspect it would then complain about others, some of which might not be unlockable like userland
packages (say, system/library and system/core-os).

    Mike



Thanks.
Tsu-Phong

----- Original Message -----
From: shawn.wal...@oracle.com
To: dan.ander...@oracle.com
Cc: tsu-phong...@oracle.com, userland-discuss@opensolaris.org
Sent: Monday, October 1, 2012 2:48:05 PM GMT -08:00 US/Canada Pacific
Subject: Re: [userland-discuss] Fwd: similar trousers installation issue 
running your script

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 <tsu-phong...@oracle.com>
To:     Daniel E Anderson <dan.ander...@oracle.com>
CC:     Tsu-phong Wu <tsu-phong...@oracle.com>



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/trousers@0.3.6,5.11-0.175.0.1.0.0.1117:20120925T214616Z
    Reason:  All versions matching 'require' 
dependencypkg:/library/security/openssl@1.0.0.10,5.11-0.175.0.9.0.4.0  are 
rejected
      
Reject:pkg://solaris/library/security/openssl@1.0.0.10,5.11-0.175.0.9.0.4.0:20120629T171812Z
      Reason:  This version is excluded by installed 
incorporationpkg://solaris/consolidation/userland/userland-incorporation@0.5.11,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
userland-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/userland-discuss
_______________________________________________
userland-discuss mailing list
userland-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/userland-discuss

_______________________________________________
userland-discuss mailing list
userland-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/userland-discuss

Reply via email to