[Fedora-packaging] Use of /usr/share/php in RPM

Paul Howarth paul at city-fan.org
Fri Jun 19 09:29:09 UTC 2009


On 19/06/09 06:51, Remi Collet wrote:
> Hi,
>
> /usr/share/php is provided by PHP and included in include_dir defaut value.
>
> So this seems a good place to store "class" file.
>
> But I think we need a Guidelines
>
> 1/ to not allow direct use of /usr/share/php
>
> =>  use a sub-folder
>
> Ex :
> - php-oauth use /usr/share/php/oauth =>  ok
> - php-xmpphp use /usr/share/php/xmpphp =>  ok
>
> See reviews :
> - php-hkit
> Review https://bugzilla.redhat.com/show_bug.cgi?id=505358
> approved but use /usr/share/php
>
> - php-PHPMailer
> Review pending https://bugzilla.redhat.com/show_bug.cgi?id=505356
>
> - php-captchaphp
> Review pending https://bugzilla.redhat.com/show_bug.cgi?id=505354
>
>
>
> 2/ to not allow install for Web application
>
> A web application must install under /usr/share/<appname>
>
> php-laconica seems to be a web-app installed under /usr/share/php
>
>
> Comments before I propose a draft ?

Agreed on both points.

Also take SELinux considerations into account; a similar thread got 
started on fedora-devel-list recently:

https://www.redhat.com/archives/fedora-devel-list/2009-June/msg01350.html

Paul.




More information about the Fedora-packaging mailing list