On Wed, Feb 29, 2012 at 11:33:27AM +0000, Rodolfo Gouveia wrote:
> On Tue, Feb 28, 2012 at 09:10:58PM +0000, Stuart Henderson wrote:
> > On 2012/02/28 19:12, Rodolfo Gouveia wrote:
> > > I need support for zip in the lang/php/5.3.
> >
> > Is pecl-zip no good?
>
> I wasn't aware of this. This seems to be the same as compiled in
>
> the runtime but available as an extension right?
>
Hmm ... in OpenBSD 5.0 it's only built for 5.2:
# pkg_add -ni pecl-zip
pecl-zip-1.10.2p2:php-5.2.17p5: ok
pecl-zip-1.10.2p2: ok
Looking at lang/php/php.port.mk:
MODPHP_VERSION?= 5.2
seems to indicate that all extensions get built for that version,
and while that has changed in -current, can I just compile pecl-zip
myself with support for 5.3?
I've tried putting MODPHP_VERSION= 5.3 in archivers/pecl-zip/Makefile
and www/pear/Makefile but ended with this error:
pear# make fake
===> Checking files for pear-1.7.2
`/usr/ports/distfiles/pear-1.7.2.tar.bz2' is up to date.
>> (SHA256) pear-1.7.2.tar.bz2: OK
===> pear-1.7.2p3 depends on: php->=5.3,<5.4 - found
===> pear-1.7.2p3 depends on: bzip2-* - found
===> Extracting for pear-1.7.2
===> Patching for pear-1.7.2
===> Configuring for pear-1.7.2
===> Faking installation for pear-1.7.2
Using local package: PEAR-stable......ok
Using local package: Archive_Tar-stable....ok
Using local package: Console_Getopt-stable....ok
Using local package: Structures_Graph-stable....ok
Bootstrapping: PEAR...................(local)
Deprecated: Assigning the return value of new by reference is deprecated in
/tmp/gopejiahlhnYzb/PEAR.php on line 569
Deprecated: Assigning the return value of new by reference is deprecated in
/tmp/gopejiahlhnYzb/PEAR.php on line 572
ok
Bootstrapping: Archive_Tar............
Deprecated: Function ereg_replace() is deprecated in
/usr/ports/pobj/pear-1.7.2/pear-1.7.2/go-pear on line 694
(local) ok
Bootstrapping: Console_Getopt.........
Deprecated: Function ereg_replace() is deprecated in
/usr/ports/pobj/pear-1.7.2/pear-1.7.2/go-pear on line 710
(local) ok
Extracting installer..................
Error while opening
{/tmp/gopejiahlhnYzb/docs/html/Structures_Graph/Structures_Graph_Manipulator_TopologicalSorter.html}
in write binary mode
for _f in patch-usr_local_bin_pear patch-usr_local_bin_peardev
patch-usr_local_bin_pecl patch-var_www_pear_lib_PEAR_Config_php; do patch -d
/usr/ports/pobj/pear-1.7.2/fake-amd64 < /usr/ports/www/pear/files/${_f}; done
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- usr/local/bin/pear.orig Fri Jul 8 20:29:55 2011
|+++ usr/local/bin/pear Fri Jul 8 20:30:19 2011
--------------------------
File to patch:
cheers,
--rodolfo