On 10/20/11 10:00, Kristin Beatty wrote:
> 
> 
> On 10/20/2011 11:28 AM, Mark J. Nelson wrote:
>> Are you trying to manually maintain dependencies AND use pkgdepend to
>> automatically generate dependencies?

> no

You answer "no," but that is exactly what your example is showing.

>> If so, then you should stick with pkgdepend, and not put the manual
>> entries there in the first place.
>>
>> If not, then the generation of duplicate dependencies is a bug.
>>
>> But the fact that one of the backend dependencies is versioned and the
>> other isn't suggests that you're supplying the non-versioned one explicitly.

> For the fortran package manifest depends have:
> depend fmri=pkg://solarisstudio/solarisstudio12.2/backend type=require

You should remove this line.  It is obviously not needed, because
pkgdepend is adding the backend dependency.

> depend fmri=pkg://solarisstudio/solarisstudio12.2/f90-libs type=require

Why do you need f90-libs?  Do you have a dependency on something in that
package that cannot be analysed by pkgdepend?

--Mark

> After I run "pkgdepend resolve -s .pre-dedup -m manifest" the 
> manifest.pre-dedup has:
> depend fmri=pkg://solarisstudio/solarisstudio12.2/backend type=require
> depend fmri=pkg://solarisstudio/solarisstudio12.2/[email protected] 
> type=require
> depend fmri=pkg://solarisstudio/solarisstudio12.2/f90-libs type=require
> depend fmri=pkg://solarisstudio/solarisstudio12.2/[email protected] 
> type=require
> 
> 
>>
>> ?
>>
>> --Mark
>>
>> On 10/20/11 07:05, Kristin Beatty wrote:
>>> I am currently building on 171 and trying to remove multiple package
>>> dependencies:
>>>
>>> The manifest line contains:
>>> depend fmri=pkg://solarisstudio/solarisstudio12.2/backend type=require
>>> depend fmri=pkg://solarisstudio/solarisstudio12.2/[email protected]
>>> type=require
>>> depend fmri=pkg://solarisstudio/solarisstudio12.2/c++-libs type=require
>>> depend fmri=pkg://solarisstudio/solarisstudio12.2/cc type=require
>>>
>>> One solution was to use the following line: sed
>>> "/^depend.*solarisstudio12.2.*@/d"
>>> but that caused problems when it removed all entries for a package when
>>> there
>>> was only one entry as:
>>>
>>> depend fmri=pkg://solarisstudio/solarisstudio12.2/[email protected]
>>> type=require
>>>
>>> I am trying to automate the process and I thought I could get away with
>>> just having
>>> two identical depend entries but pkglint fails as shown below:
>>>
>>> Lint engine setup...
>>> 1 ...  2 ...  3 ...  4 ...  Done
>>> Starting lint run...
>>> ERROR pkglint.manifest005.2       duplicate depend actions in
>>> pkg://solarisstudio/solarisstudio12.2/[email protected],5.11-0.0
>>> solarisstudio12.2/backend
>>>
>>> Any recommendations?
>>> _______________________________________________
>>> pkg-discuss mailing list
>>> [email protected]
>>> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

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

Reply via email to