You are not logged in.

#1 2011-02-09 10:07:36

Giniu
Package Maintainer (PM)
From: Wrocław/Poland
Registered: 2007-04-02
Posts: 61
Website

Looking for guidance (req. dependency can be A, B or both)

Hello,

I had the python-ets-*-svn packaged in AUR for some time, but now that they moved to git I repackaged all stuff, and that generated some new users and some new reports on AUR. I think that I'm working with AUR too short, so I decided to ask more experienced users for guidance and hints. Let me explain the situation a bit:

There is python2-traitsgui{-git} package, which requires one of python2-traitsbackendwx{-git} or python2-traitsbackendqt{-git}, but user should be able to pick any of two, or both - i.e. you should be able to pick which you like, depending on if you want to use Qt or Wx or both. The solution I found for now is that I made python2-traitsbackendwx{-git} and python2-traitsbackendqt{-git} provide virtual package python2-traitsbackend{-git} and depend on that. That way user can pick which one he wants and install only that, or both. It seemed to be clean solution. But...

The problem is, that it works when user installs dependencies by hand, I'm getting reports from new user that he is unable to install the package trough yaourt because of this (I must say I did not tested automatic install, I installed dependencies first in all configurations, A, B and both, but did not tested it when it lacks the dep.) I wouldn't like to favour one of backends making it default and making the other one provide it. Does there exists better solution to such situation?

Thanks in advance,
Andrzej.


My GPG fingerprint: 7170 26A9 D477 9FC5 3940  7266 40F5 57B7 3149 6106

Offline

#2 2011-02-09 10:18:34

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: Looking for guidance (req. dependency can be A, B or both)

Make python2-traitsbackendwx the dependency and get python2-traitsbackendqt to provide it.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2011-02-09 11:46:23

Giniu
Package Maintainer (PM)
From: Wrocław/Poland
Registered: 2007-04-02
Posts: 61
Website

Re: Looking for guidance (req. dependency can be A, B or both)

ngoonee wrote:

Make python2-traitsbackendwx the dependency and get python2-traitsbackendqt to provide it.

Thanks, I will consider this, though it makes one backend more important than another, while I think they should be treated equally.
--- edit:
I decided to go other way, which for now seems like better (not favouring one backend or another):

python2-traitsgui{-git} (depends on python2-traitsbackend{-git})
python2-traitsbackendqt{-git} (Qt support only, provides python2-traitsbackend{-git})
python2-traitsbackendwx{-git} (Wx support, provides python2-traitsbackend{-git})
python2-traitsbackend{-git} (both, depends on python2-traitsbackendqt{-git} and python2-traitsbackendwx{-git})

Thanks for help anyway.

Last edited by Giniu (2011-02-09 11:58:36)


My GPG fingerprint: 7170 26A9 D477 9FC5 3940  7266 40F5 57B7 3149 6106

Offline

#4 2011-02-09 15:11:06

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: Looking for guidance (req. dependency can be A, B or both)

This way users are required to have both the qt and wx backends installed if they install with a helper. Unnecessarily complicated in my opinion, but its up to you smile. I just hope they don't conflict.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB