Hi,
We have a bunch of packages that we want to constraint to a certain
opensolaris build. For example, if our packages are build with
opensolaris build 108, we want them to be installed only on opensolaris
2009.6 build 108. I tried a few things with creating an incorporate
package for this purpose:
TEST 1:
Create an incorporate package, minimal-incorp, that contains all of our
packages, plus the "entire" incorporate package. Note some of our
packages have a "required" dependent type to opensolaris packages like
SUNWcsl. Here is what the minimal-incorp contains (to make it simple, I
only include a few packages):
# pkg contents -m minimal-incorp
set name=fmri value=pkg:/[email protected],5.11-0.108:20090429T022705Z
[ snip ]
depend [email protected],5.11-0.108 type=incorporate
depend [email protected] type=incorporate
# pkg contents -m SUNWscz | grep SUNWcsl
depend [email protected] type=require
I installed [email protected],5.11-0.108 along with other packages
on a node with build 108. I then build these packages again with build
111, and I can see the newer packages (2009.6,5.11-01.11) in our
repository. When I tried to do "image-update" to a new build that is
build with b111, it failed with:
# pkg image-update -n
Creating Plan /
pkg: pkg: the following package(s) violated constraints:
Package pkg:/[email protected],5.11-0.111 conflicts with constraint
in installed pkg:/entire:
Pkg SUNWcsl: Optional min_version: 0.5.11,5.11-0.108 max
version: 0.5.11,5.11-0.108 defined by: pkg:/entire
# pkg install -n entire
No updates available for this image.
Is this expected? After I uninstall the minimal-incorp package,
"image-update" works fine.
TEST 2:
I then removed "entire" from minimal-incorp, and re-did the above test.
Everything is same except "minimal-incorp" does not contain "entire".
But the same error is reported:
# pkg image-update -nv
[ snip ]
+pkg:/[email protected],5.11-0.111:20090427T003658Z
+pkg://re.sfbay/[email protected],5.11-0.111:20090418T200225Z
+pkg:/[email protected],5.11-0.111:20090427T003551Z
pkg: pkg: the following package(s) violated constraints:
Package pkg:/[email protected],5.11-0.111 conflicts with constraint
in installed pkg:/entire:
Pkg SUNWcsl: Optional min_version: 0.5.11,5.11-0.108 max
version: 0.5.11,5.11-0.108 defined by: pkg:/entire
However, "pkg install entire" will get the new [email protected],5.11-0.111
installed. Is those expected behave? I'd appreciate if someone can
confirm if these are expected or not, so we can define what to do with
our incorporate package.
Besides above questions, I also have another few other questions that
are related to above usage of incorporate package:
- Does "pkg image-update" install the packages with newest version
string? Is there a way to let "image-update" to install the packages
with a specific version? E.g., the newest version in the repository is
0.5.11,5.11-0.111. I installed build 108, but I want to use
"image-update" to get to build 109. Is this do-able with "image-update"?
- Does "pkg install [email protected],5.11-0.111" take the node to the same
state as "pkg image-update" does? The version is same, but is the system
really the same?
Thanks a lot for your help,
- Lucia
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss