Bug 1054642

Summary: Error show when install pecl/imagick for php-5.3/5.4 app
Product: OpenShift Online Reporter: Yan Du <yadu>
Component: ImageAssignee: Vojtech Vitek <vvitek>
Status: CLOSED UPSTREAM QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: akostadi, constantin.tovisi, hripps, ofayans, tiwillia, vvitek
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-20 13:51:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
full build log none

Description Yan Du 2014-01-17 07:59:30 UTC
Created attachment 851445 [details]
full build log

Description of problem:

Below error show when install pecl/imagick for php-5.3/5.4 app

remote: Build process completed successfully
remote: Installing '/usr/lib64/php/modules/imagick.so'
remote: ERROR: failed to write /usr/lib64/php/modules/imagick.so (copy(/usr/lib64/php/modules/imagick.so): failed to open stream: Permission denied)
remote:
remote: Preparing build for deployment
remote: Deployment id is c6d644ba
remote: Activating deployment
remote: Starting PHP 5.3 cartridge (Apache+mod_php)
remote: Result: success
remote: Activation status: success
remote: Deployment completed with status: success


Version-Release number of selected component (if applicable):
INT(devenv_4234)


How reproducible:
Always


Steps to Reproduce:
1. Create a php application
#rhc app create php1 php-5.4/php-5.3
2. In app's local repo, add dependency to deplist.txt
echo pecl/imagick >> deplist.txt
3. Commit changes and git push


Actual results:
Error show when install pecl/imagick for php-5.3/5.4 app


Expected results:
remote: Checking pear: pecl/imagick
remote: 
remote: Extension already installed in the system: pecl/imagick


Additional info:
Full build log attached.

Comment 1 Vojtech Vitek 2014-01-17 17:01:37 UTC
OpenShift doesn't support PECLs officially yet. Users are advised to put PEAR deps into deplist.txt file, not PECLs.

See these two Trello Cards:
- https://trello.com/c/fSWvzkPM
- https://trello.com/c/Ja9IcFIb.

Also, feel free to make a Feature Request for having the imagick library installed by default.

Closing as UPSTREAM.

Comment 3 Xiaoli Tian 2014-02-18 05:09:46 UTC
*** Bug 1066083 has been marked as a duplicate of this bug. ***

Comment 4 Aleksandar Kostadinov 2014-02-20 13:41:51 UTC
I'm running with devenv_4399 and I see the same issue. Please feel free to close again if my understanding of upstream is wrong.

wrt feature request for having the library installed, it was done long ago, see bug 884865. So in my opinion this is a regression. btw we also have a test case for that feature.

Comment 5 Vojtech Vitek 2014-02-20 13:51:42 UTC
@Aleksandar Kostadinov, custom PECLs are not yet supported on OpenShift officially, thus NOTABUG/UPSTREAM. The custom PECL functionality will be implemented once this Trello card https://trello.com/c/Ja9IcFIb get completed.

The missing imagick PECL extension was added to both PHP 5.3 and PHP 5.4 cartridges, btw.

Comment 6 Oleg Fayans 2014-02-25 06:47:00 UTC
Just tested it against INT. I am getting the following error:
ERROR: failed to mkdir /usr/include/php/ext/imagick

Apart from that everything is fine.

Comment 7 Vojtech Vitek 2014-02-28 12:50:50 UTC
*** Bug 1071146 has been marked as a duplicate of this bug. ***