[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache2 issues



Op dinsdag 29 juli 2014 08:02:43 schreef Jean-Christophe Dubacq:
> [ ⏰ 29/07/2014 07:55 ] [ ✎ Wouter Verhelst ]
> 
> > Op dinsdag 29 juli 2014 10:51:45 schreef Brian May:
> >> So ideally I only want to depend on libapache2-mod-wsgi if apache2 is
> >> installed, but this is not possible.
> > 
> > Sure it is.
> > 
> > Depends: apache2 | libapache2-mod-wsgi, apache2 | httpd
> > 
> > is perfectly legal and will do what you want.
> 
> You surely meant |httpd | libapache2-mod-wsgi, apache2 | httpd| .

No, I don't.

What brian really wants is apache2 or apache2-bin. In the case of
apache2-bin, he needs an additional dependency on libapache2-mod-wsgi.

Really, it should be

apache2 | libapache2-mod-wsgi, apache2 | apache2-bin

to do so.

If other webservers can provide a suitable WSGI implementation, then the
apache2-bin can be replaced with httpd again, and the first list could
include those WSGI implementations as other alternatives.

But you shouldn't be confused into reading the first as "list of
suitable webserver implementations". The first is a list of suitable
WSGI implementations; the second is a list of suitable webserver
implementations. There is some overlap, which is why double dependencies
are fine, but they don't serve the same purpose.

-- 
It is easy to love a country that is famous for chocolate and beer

  -- Barack Obama, speaking in Brussels, Belgium, 2014-03-26

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: