On 05/16/11 08:33 AM, Ghee Teo wrote:
On 16/05/2011 15:19, Shawn Walker wrote:
On 05/16/11 07:31 AM, Ghee Teo wrote:
I was working to upgrade the version of a desktop package called
data/docbook

which essentially is made up of with 4 FOSS moudles
sgml-common
docbook-dtds
docbook-style-dsssl
docbook-style-xsl

I found that there is no easy way to even test my builds due to
intertwined dependencies.
Since I need to remove data/docbook on my machine to install my newly
built packages,
that pull in the following dependencies:

Why do you need to remove the existing packages to install the new
packages?
I can not successfully install the new ones which the existing one in
place.

What's preventing you from installing all of the new ones at the same
time or using 'pkg update' to update to them?
There new ones contain the files which are delivered by the existing one.
e,g. errors I got:

# pkg install data/docbook-style-xsl
Creating Plan /
pkg install: The requested change to the system attempts to install
multiple actions
for link 'usr/share/sgml/docbook/xsl-stylesheets' with conflicting
attributes:

1 package delivers 'link path=usr/share/sgml/docbook/xsl-stylesheets
target=xsl-stylesheets-1.69.1-5.1':
pkg://solaris/data/[email protected],5.11-0.164:20110422T153159Z
1 package delivers 'link path=usr/share/sgml/docbook/xsl-stylesheets
target=xsl-stylesheets-1.75.2':
pkg://mypkgs/data/[email protected],5.11-0.164:20110516T134955Z

# pkg install data/docbook-style-dsssl
Creating Plan |
pkg install: The following packages all deliver file actions to
usr/share/sgml/docbook/dsssl-stylesheets-1.79/print/docbook.dsl:

pkg://mypkgs/data/[email protected],5.11-0.164:20110516T140746Z
pkg://solaris/data/[email protected],5.11-0.164:20110422T153159Z

These packages may not be installed together. Any non-conflicting set may
be, or the packages must be corrected before they can be installed.

So if I understand correctly, the 'docbook' package is being split into four packages:

sgml-common
docbook-dtds
docbook-style-dsssl
docbook-style-xsl

?

If so, you should publish a new version of the 'docbook' package with:

set name=pkg.renamed value=true
depend type=require fmri=.../sgml-common
depend type=require fmri=.../docbook-dtds
depend type=require fmri=.../docbook-style-dsssl
depend type=require fmri=.../docbook-style-xsl

Then you should be able to update the 'docbook' package which will in turn install its replacement packages. The packages that currently depend on docbook will need to be updated to depend on the replacement packages.

Because this is a rename, you should get extra review from someone familiar with the consolidation process.

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

Reply via email to