[Fedora-packaging] php/php53 application packaging

indent man indentman at gmail.com
Fri Sep 7 10:42:09 UTC 2012


Or should I make myapp depend on a specific release/epoch/whatever ?
(sounds like a bad idea)
Or change the php-pecl-json version to 1.2.1.myapp ? (bad idea too)
Or provide a php-pecl-json-myapp package ?


On Fri, Sep 7, 2012 at 12:37 PM, indent man <indentman at gmail.com> wrote:

> I'm a bit lost...
> From what I can read, it's not possible to package a php app in centos 5
> so that it may be installed with either php or php53, is it ?
> So should I provide 2 packages: myapp and myapp-php53 ?
>
> My app also needs json.
> The official centos php53-common package "provides" php-pecl-json (1.2.1),
> but php-common does not.
> So, and since I can't use EPEL, I need to provide my own php-pecl-json
> package, with version 1.2.1, and a dependency on php < 5.2.
> And to make myapp depend on php-pecl-json.
> Then, when I try to yum install myapp (not myapp-php53), it tries to
> install php53-common, because it is a valid provider of php-pecl-json.
> And as it also tries to install other php (5.1) dependencies, it crashes
> because of the conflict between php-common and php53-common.
>
> So what is the correct way to make myapp (not myapp-php53) depend on
> php-pecl-json, and not on php53-pecl-json ?
>
> Thanks,
>
>
> On Thu, Sep 6, 2012 at 3:32 PM, Michael Schwendt <mschwendt at gmail.com>wrote:
>
>> On Thu, 6 Sep 2012 13:49:23 +0200, indent man wrote:
>>
>> > I should have said that I'm also packaging the php/php53 foo/bar
>> > dependencies.
>> > So maybe I just forgot some "Conflicts" tags (my bad).
>> > Taking a look at it...
>>
>> Adding them won't solve your problem, however, and may even be
>> wrong for parallel-installable packages.
>> Also notice: http://fedoraproject.org/wiki/Packaging:Conflicts
>>
>> --
>> Fedora release 17 (Beefy Miracle) - Linux 3.5.3-1.fc17.x86_64
>> loadavg: 0.15 0.28 0.31
>> --
>> packaging mailing list
>> packaging at lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/packaging
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/packaging/attachments/20120907/c8b92204/attachment.html>


More information about the packaging mailing list