Red Hat Bugzilla – Bug 551513
php bundles libzip
Last modified: 2012-11-18 05:48:26 EST
php package bundles its own, slightly modified copy of libzip-0.9 under php-5.3.1/ext/zip/lib/ directory. Since libzip is packaged as a separate library in Fedora, php should use the system copy of libzip instead of using the bundled version.
For rationale why Fedora shouldn't have bundled libraries see:
This bug appears to have been reported against 'rawhide' during the Fedora 13 development cycle.
Changing version to '13'.
More information and reason for this action is here:
Doesn't look like upstream want to support that:
"There is no need of it. And no, you should *really* not use an external
This is something we'd carry a local patch for and go against upstream's wishes. however, if you think you can make a case, there is an exception process and we try to work out more standard exceptions from what we learn from each exception granted/not granted. Take a look at: http://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries#Standard_questions and add a ticket to https://fedorahosted.org/fpc/ with those and any other details you think would support the case for bundling.
Joe, any updates on this?
Exception request filed: https://fedorahosted.org/fpc/ticket/62
Joe, please respond to request by toshio dated 2/19 regarding FPC exception
Disabled zip extension in php-5.3.5-6.fc16 to bring the package in line with policy. I'll leave this open to track the issue; if anybody has time/energy to go through that list of questions for the FPC please go ahead (I don't in the near future).
Hi guys, this seems to break Moodle. I'm using php-5.3.8-1.fc16.x86_64 and pulling Moodle from CVS, but unless it's specifically handled it's probably not different with Fedora packaged Moodle.
Moodle 2.1 reports on installation/upgrade: "The Zip PHP extension is now required by Moodle, info-ZIP binaries or PclZip library are not used anymore."
Hiya, we now have a serious problem: Moodle as bundled by Fedora just won't work any more. Vedran was pulling it in from CVS, but as of the release of Fedora 16, the Moodle release in the Fedora repo won't work because it needs the PHP zip extension.
Can we please have some sort of workaround for this? We shouldn't have programs distributed with Fedora that don't work with Fedora...
I installed the extension manually (from PEAR IIRC) and now it works.
We should probably package that extension and add dependency to moodle package that we ship.
Aha. Can you give a few more details on how to do that, so that people finding this bug report (e.g., me...) will know how to work around the problem?
But yes, packaging the extension sounds like the right solution.
Packaging the pecl extension could not be the solution
Because the extension (php-pecl-zip which exists in older fedora version) also provides a bundled version of forked libzip.
So same Guidelines issue than main php package.
(In reply to comment #10)
> I installed the extension manually (from PEAR IIRC) and now it works.
> We should probably package that extension and add dependency to moodle package
> that we ship.
I want to use moodle so I tried to bypass the problem installing the pear/zip extension with the following commands:
sudo pear install --alldeps Archive_Zip-0.1.2
sudo pear install --alldeps File_Archive-1.5.4
rebooted the web server;
anyway the moodle upgrade check still complains that the zip extension is missing.
Is there a trick in order to make moodle work?
(In reply to comment #13)
> Is there a trick in order to make moodle work?
pecl install zip
as root, and after that all was well. (I probably had to restart httpd; I can't remember.)
Yes, that's the command I ran. PEAR didn't work for me either, so I had to use PECL. Sorry for the misinformation.
I understand the problem with packaging, but we should either work with Moodle upstream or php-pecl-zip upstream; situation as it's now is not very nice towards users.
'pecl install zip'
is not working for me with Fedora 16
ERROR: `phpize' failed
I have php-devel installed.
(In reply to comment #16)
> 'pecl install zip'
> is not working for me with Fedora 16
> ERROR: `phpize' failed
> I have php-devel installed.
you also need pcre-devel installed.
Even with pcre-devel I get that error. I was able to install zip extension from source package.
$# cd /tmp
$# wget http://pecl.php.net/get/zip-1.10.2.tgz
$# tar zxf zip-1.10.2.tgz
$# cd zip-1.10.2
$# make install
$# rm -fr /tmp/zip-1.10.2.tgz ; rm -fr /tmp/zip-1.10.2
Then create the file /etc/php.d/zip.ini with this line inside
In addition to moodle this is required by owncloud...
"pecl install zip" worked perfectly for me on F16. Thanks.
php 5.3.11 will have zip extension back (in fedora <= 16)
php 5.4.x in fedora >= 17 use system libzip
I close this one.