Bug 7741 - php-session - user:group apache does not exist - using root
Summary: php-session - user:group apache does not exist - using root
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-08 18:07 CEST by claire robinson
Modified: 2012-10-17 20:21 CEST (History)
2 users (show)

See Also:
Source RPM: php
CVE:
Status comment:


Attachments

Description claire robinson 2012-10-08 18:07:45 CEST
Noticed when installing mediawiki in a clean 3alpha2

No apache installed. Seems like a missing require.

     1/36: libphp5_common5       #############################################
     2/36: t1lib-config          #############################################
     3/36: libt1lib5             #############################################
     4/36: php-session           ########################################warning: user apache does not exist - using root
warning: group apache does not exist - using root
#####
claire robinson 2012-10-08 18:08:26 CEST

Summary: php-session - user:group apache does not exist => php-session - user:group apache does not exist - using root

Comment 1 claire robinson 2012-10-08 18:11:22 CEST
Preparing...                     #############################################
    33/36: apache                #############################################
    34/36: php-gd-bundled        #############################################
    35/36: mediawiki             #############################################
    36/36: apache-mod_php        #############################################
Manuel Hiebel 2012-10-10 16:56:24 CEST

CC: (none) => oliver.bgr
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=7295

Comment 2 Oliver Burger 2012-10-10 17:11:06 CEST
Seems like a missing Requires(pre).

Will look into it.
Comment 3 David Walser 2012-10-17 14:57:00 CEST
It doesn't need a Requires(pre) because there's not a %pre script.

It does need a Requires: webserver-base, as that package provides the apache user.

CC: (none) => luigiwalser

Comment 4 Oliver Burger 2012-10-17 16:21:34 CEST
Iirc using "Requires" does not help, because it could mean, the required package is installed in the same transacton or before.
But if it is installed in the same transaction, it could still be installed after the package in question.
Using "Requires(pre) does make sure, that it is installed before the package in question.

See http://www.rpm.org/wiki/PackagerDocs/Dependencies
Comment 5 David Walser 2012-10-17 17:03:54 CEST
According to Jeff Johnson, the creator of RPM, this is a common misconception.

If one package requires another, the required one should be installed first.  The only reason it might not is if there is a dependency loop.  There used to be a PreReq tag which meant to install one package before another, but that isn't used anymore.  Requires(pre) is not a replacement for that, it is solely meant for if a package has a %pre script that needs another package to be present.
Comment 6 Oliver Burger 2012-10-17 17:17:39 CEST
If Jeff says so...
Even if I don't know, if that's true for the orignal rpm as well or just for his rpm5 fork.

I submitted a new php package with the requires changed.
Comment 7 David Walser 2012-10-17 18:16:45 CEST
(In reply to comment #6)
> If Jeff says so...
> Even if I don't know, if that's true for the orignal rpm as well or just for
> his rpm5 fork.

Also true for rpm4.

> I submitted a new php package with the requires changed.

Thanks.  Now that I look at the spec I notice a similar issue with php-fpm, but it has the wrong solution for it.  It is adding and deleting the apache user with %post and %preun scriplets, but it should not be doing that.  It should require webserver-base as well.  Could you make this change too?

If you do, could you do me a favor and also add this to php-cli:
Provides: /usr/bin/php

This is needed to fix Bug 6534 in Cauldron (already fixed in mga2).  Thanks!
Comment 8 Oliver Burger 2012-10-17 20:21:09 CEST
Will do...

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.