[aur-general] How to handle interchangeable dependencies?

Allan McRae allan at archlinux.org
Mon Apr 6 08:48:53 EDT 2009


hollunder at gmx.at wrote:
> On Mon, 06 Apr 2009 22:32:48 +1000
> Allan McRae <allan at archlinux.org> wrote:
>
>   
>> hollunder at gmx.at wrote:
>>     
>>> On Mon, 06 Apr 2009 21:46:48 +1000
>>> Allan McRae <allan at archlinux.org> wrote:
>>>
>>>   
>>>       
>>>> Laurie Clark-Michalek wrote:
>>>>     
>>>>         
>>>>> I disagree. This same thing happens to me with my package
>>>>> "brasero-lite". It is brasero but without the gnome dependencies,
>>>>> and has the provides=('brasero'), but when I try and install a
>>>>> package that has brasero as a dependencie, such as sound-juicer,
>>>>> pacman attempts to install brasero, not realising that i allready
>>>>> have brasero-lite. This isn't a sound juicer fault, it is a fault
>>>>> in pacman. 
>>>>>       
>>>>>           
>>>> That is a different problem....  
>>>>
>>>> The brasero-lite PKGBUILD should have provides=("brasero=2.26.0")
>>>> in it.  Sound-juicer requires "brasero>=2.26.0" so just providing
>>>> brasero is not enough.
>>>>
>>>> Allan
>>>>
>>>>     
>>>>         
>>> I believe this doesn't work either and the problems are at least
>>> related.
>>> Concrete example:
>>> lash-git: provides=('lash=0.6.0')
>>> calf-git: depends=('fluidsynth' 'libglade' 'lash>=0.6.0')
>>>
>>> namcap calf-git-20090406-1-i686.pkg.tar.gz 
>>> calf-git   E: Dependency detected and not included (lash-git) from
>>> files ['usr/bin/calfjackhost']
>>> calf-git   W: Dependency included and not needed (lash)
>>>   
>>>       
>> As I said, we have two completely different problems here.  Yours is
>> a limitation of namcap and it would be good to file a feature request
>> to get it fixed. 
>>
>> The other "problem" is a PKGBUILD with incomplete provides
>> encountering a versioned dependency.  Completely different.
>>
>> Allan
>>
>>     
>
> Allan, I still don't know how I can solve the above mentioned problem.
> As you see I versioned the provides and required the version in this
> case and it doesn't help.
>
> As I see it I have the same problem here as Laurie Clark-Michalek.
> I believe if this was in AUR and I tried to download calf-git through
> yaourt it would try to install lash despite lash-git being installed
> already.
>   

It should not.  If it does, then it is a bug in yaourt.  If you have 
lash-git installed, then build calf-git manually using and installed it 
with "pacman -U <pkg>", there should be no complaints from pacman.

Allan




More information about the aur-general mailing list