Re: httpd virtual package

2015-06-12 Thread Bob Proulx
to...@tuxteam.de wrote:
 Bob Proulx wrote:
 [...]
  I debootstrapped a Jessie chroot in order to test your case.
 [...]
 
 Bob, just a lurker here. Thanks for this very instructive and well-
 written walkthrough!

I am glad you found it useful.  As long as I am on the topic I should
add a small additional hint.

  debootstrap jessie jessie-oc-test http://httpredir.debian.org/debian
  echo owncloud-test  ./jessie-oc-test/etc/debian_chroot
  chroot ./jessie-oc-test su -

By adding /etc/debian_chroot into the chroot it can be automatically
included into the shell prompt.  It makes it easier to remember what
environment one is operating.  For example in the above after the
chroot the prompt will then say:

  (owncloud-test)root@havoc:~# 

When switching back and forth between chroots and the native host
little things like that can save a lot of confusion.

Bob


signature.asc
Description: Digital signature


Re: httpd virtual package

2015-06-11 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Jun 10, 2015 at 04:01:43PM -0600, Bob Proulx wrote:

[...]
 I debootstrapped a Jessie chroot in order to test your case.
[...]

Bob, just a lurker here. Thanks for this very instructive and well-
written walkthrough!

- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlV5XDsACgkQBcgs9XrR2kZCcgCfWTjGwxGPh7F/zfBrz7Lh7gXD
piYAoIFLAG09Ozo5tQkZo85zCRxbWdLU
=AMBQ
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150611100027.ga8...@tuxteam.de



Re: httpd virtual package

2015-06-11 Thread Jonathan Dowland
I forgot to CC the below

On Tue, Jun 09, 2015 at 06:57:33PM +0100, Jonathan Dowland wrote:
 On Tue, Jun 09, 2015 at 07:22:40PM +0800, Anatoly A. Kazantsev wrote:
  $ sudo aptitude install owncloud
 
 A bit of a long shot, but try just 'apt-get' instead. I think aptitude has
 some pretty nasty resolver bugs at the moment.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150611101058.ga24...@chew.redmars.org



Re: httpd virtual package

2015-06-10 Thread Bob Proulx
Anatoly A. Kazantsev wrote:
 P.S: I'm not on the list, please keep me CCed

Will do.

 I'm trying to install owncloud with lighttpd on stable release

Noting that Stable is Jessie 8 at this time.

 Depends: apache2 | httpd, fonts-font-awesome, fonts-liberation,

Either apache2 or httpd will be needed to satisfy the Depends
relationship.  If neither is installed then apt will pull in apache2
since it is listed first.

 It says the package is depends on apache2 or httpd. So as I think it should
 allow me to install it without installing apache2 package if some installed
 package provides httpd (such as lighttpd or nginx).

Yes.  If you already have either lighttpd or nginx installed then
httpd will be povided for already.  However the entire dependency tree
must be analyzed to understand what is happening.

 $ sudo aptitude install owncloud
 Reading package lists...
 Building dependency tree...
 Reading state information...
 Reading extended state information...
 Initializing package states...
 Reading task descriptions...
 Building tag database...
 The following NEW packages will be installed:
   apache2{a} apache2-bin{a} apache2-data{a} apache2-utils{a} 
   fonts-font-awesome{a} fonts-liberation{a} fonts-linuxlibertine{a} 
 ...
 
 it wants to install apache web-server

I debootstrapped a Jessie chroot in order to test your case.

  debootstrap jessie jessie-oc-test http://httpredir.debian.org/debian
  chroot ./jessie-oc-test su -

The first test confirms your problem.  It wants to install apache2.
It can be explicitly avoided with a minus at the end.  This works.  It
is a little unsatisfying needing to manually force it this way but it
does allow installing owncloud on Jessie without installing apache2.

  apt-get install owncloud apache2-

But this is less than optimal since it wants to install php5-cgi in
this case.

Could it be a recommends in one of the packages?

  apt-get install --no-install-recommends owncloud
  ...still wants apache2...

It isn't a recommends.  It must be one of the 112 packages in the
dependency chain.  When dependency chains are that large it is often a
problem for the dependency resolver to do a good job of things.
Something depends upon something else in an alternation which depends
upon another list of alternate things.  The problem space is just too
big and arbitrary for apt to know about it.

In order to look at them all I generated a list of all of the packages
that it wants to install.

  apt-get install --no-install-recommends -s owncloud | awk '/^Inst/{print$2}' 
 /tmp/pkglist

I really only care about packages that mention apache2 anywhere in the
headers.  Reduce to that set.

  for i in $(cat /tmp/pkglist); do apt-cache show $i | grep -q apache2  echo 
$i;done
  apache2-bin
  apache2-utils
  apache2-data
  apache2
  libapache2-mod-php5
  php5
  owncloud

Aha!  The chain must be through libapache2-mod-php5.  owncloud depends
upon php5, which depends upon libapache2-mod-php5 | php5-fpm (along
with other OR things).  Let's test that theory and install php5-fpm
first.  Along with nginx.

  apt-get install --no-install-recommends nginx php5-fpm

Then try owncloud.

  apt-get install owncloud

Aha!  That works.  It does not want to install apache2 in this case.

And knowing this I then try it all over again with php5-fpm specified.

  apt-get install php5-fpm nginx owncloud

Yes!  That does not want to install apache2.  The dependency chain
pulling in apache2 was through php5 which wanted an interpreter.

  $ apt-cache show php5 | grep Depends
  Depends: libapache2-mod-php5 (= 5.6.7+dfsg-1~) | libapache2-mod-php5filter 
(= 5.6.7+dfsg-1~) | php5-cgi (= 5.6.7+dfsg-1~) | php5-fpm (= 5.6.7+dfsg-1~), 
php5-common (= 5.6.7+dfsg-1~)

Supplying the php5 interpreter through php5-fpm satisfied that
dependency and avoided it selecting libapache2-mod-php5 which
must hard depend upon apache2.

 I checked it on current testing with installed lighttpd - it works
 as expected, no apache2 packages

I looked in Testing and the dependency chain looks the same there.
But perhaps on that system you already had installed a php5
interpreter?  If so that would have avoided the libapache2-mod-php5
path and make it appear to work okay.  (Which is why we like to debug
in pristine installation root such as through debootstrapped chroots.)

The summary is this:

  apt-get install php5-fpm nginx owncloud

You will still need to configure either nginx or lighttpd to handle
PHP through the fpm or other.  There isn't any automatic configuration
for it.  But it will be a superior solution to libapache2-mod-php5
which is easy and automated but not as efficient.

Hope that helped!

Bob


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/2015061014525443742.noccsple...@bob.proulx.com



Re: httpd virtual package

2015-06-09 Thread Anatoly A. Kazantsev
Hello,

On Wed, 3 Jun 2015 22:18:21 -0600
Bob Proulx b...@proulx.com wrote:

 Anatoly A. Kazantsev wrote:
  P.S: I'm not on the list, please keep me CCed
 ...
 
  I have installed lighttpd (same for nginx) on stable/testing,
  but it doesn't provide httpd virtual package.
 
 But it did.  It showed as Provides: httpd in your data.  That is how
 it provides that virtual name.
 
  Provides: httpd, httpd-cgi
 
 There it is. :-)

Ok, thank you for explanation :-)

 What are you missing that you are expecting to see?  I have not used
 Lighttpd but I do use Nginx and like it and could answer questions
 concerning the use fo it.
 ...

 Bob

I'm trying to install owncloud with lighttpd on stable release

$ aptitude show owncloud
Package: owncloud
New: yes
State: not installed
Version: 7.0.4+dfsg-4~deb8u1
...
Depends: apache2 | httpd, fonts-font-awesome, fonts-liberation,
...

It says the package is depends on apache2 or httpd. So as I think it should
allow me to install it without installing apache2 package if some installed
package provides httpd (such as lighttpd or nginx).

But

$ sudo aptitude install owncloud
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Reading task descriptions...
Building tag database...
The following NEW packages will be installed:
  apache2{a} apache2-bin{a} apache2-data{a} apache2-utils{a} 
  fonts-font-awesome{a} fonts-liberation{a} fonts-linuxlibertine{a} 
...

it wants to install apache web-server

I checked it on current testing with installed lighttpd - it works as expected,
no apache2 packages

On current debian testing:

$ aptitude show owncloud
Package: owncloud
New: yes
State: not installed
Version: 7.0.4+dfsg-4
Priority: extra
Section: web
Maintainer: ownCloud for Debian maintainers 
pkg-owncloud-maintain...@lists.alioth.debian.org
Architecture: all
Uncompressed Size: 27.3 M
Depends: apache2 | httpd, fonts-font-awesome, fonts-liberation,
 fonts-linuxlibertine, fonts-lohit-deva, fonts-sil-gentium-basic,
...

$ sudo aptitude install owncloud
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Building tag database...
The following NEW packages will be installed:
  fonts-font-awesome{a} fonts-liberation{a} fonts-linuxlibertine{a}
...

P.S: I'm not on the list, please keep me CCed

-- 
Regards,
Anatoly


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/20150609192240.0796758119d2c7bd9cf56...@gnu.org



Re: httpd virtual package

2015-06-09 Thread Jonathan Dowland
On Tue, Jun 09, 2015 at 07:22:40PM +0800, Anatoly A. Kazantsev wrote:
 $ sudo aptitude install owncloud

A bit of a long shot, but try just 'apt-get' instead. I think aptitude has
some pretty nasty resolver bugs at the moment.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150609175733.ga25...@chew.redmars.org



httpd virtual package

2015-06-03 Thread Anatoly A. Kazantsev
Hello,

I have installed lighttpd (same for nginx) on stable/testing,
but it doesn't provide httpd virtual package.

$ aptitude show lighttpd
Package: lighttpd
State: installed
Automatically installed: no
Version: 1.4.35-4
Priority: optional
Section: httpd
Maintainer: Debian lighttpd maintainers 
pkg-lighttpd-maintain...@lists.alioth.debian.org
Architecture: i386
Uncompressed Size: 779 k
Depends: libattr1 (= 1:2.4.46-8), libbz2-1.0, libc6 (= 2.15), libfam0,
 libldap-2.4-2 (= 2.4.7), libpcre3 (= 8.10), libssl1.0.0 (= 1.0.0),
 zlib1g (= 1:1.1.4), init-system-helpers (= 1.18~), perl, lsb-base (=
 3.2-14) | systemd (= 29.1), mime-support, libterm-readline-perl-perl
Recommends: spawn-fcgi
Suggests: openssl, rrdtool, apache2-utils
Provides: httpd, httpd-cgi
...

$ aptitude show httpd
No current or candidate version found for httpd

Same result from apt-cache:

$ apt-cache show httpd
N: Can't select versions from package 'httpd' as it is purely virtual
N: No packages found

I'll post some other information if you need it. This is my first time on
debian-user@lists.debian.org

P.S: I'm not on the list, please keep me CCed

-- 
Regards,
Anatoly


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/20150604105843.ffd41f9a022a73ae70ba6...@gnu.org



Re: httpd virtual package

2015-06-03 Thread Bob Proulx
Anatoly A. Kazantsev wrote:
 P.S: I'm not on the list, please keep me CCed
...

 I have installed lighttpd (same for nginx) on stable/testing,
 but it doesn't provide httpd virtual package.

But it did.  It showed as Provides: httpd in your data.  That is how
it provides that virtual name.

 Provides: httpd, httpd-cgi

There it is. :-)

What are you missing that you are expecting to see?  I have not used
Lighttpd but I do use Nginx and like it and could answer questions
concerning the use fo it.

 $ aptitude show httpd
 No current or candidate version found for httpd

The aptitude show command shows information about a package name.
The httpd name is not a package name.  Therefore aptitude does not
show it.

 Same result from apt-cache:
 $ apt-cache show httpd
 N: Can't select versions from package 'httpd' as it is purely virtual
 N: No packages found

Same thing for apt-cache.  However apt-cache tells you it is a pure
virtual name and not a package and no packages named httpd are found.
I think that is a little nicer.

 I'll post some other information if you need it. This is my first time on
 debian-user@lists.debian.org

Welcome to the mailing list!  I have CC'd you as requested.  Good job
on making that request.  The default otherwise would be to reply only
to the mailing list.

Bob


signature.asc
Description: Digital signature