Hardened-PHP patch support for php port

Stanislav Sedov ssedov at mbsd.msk.ru
Wed Aug 9 18:46:48 UTC 2006


On Mon, 7 Aug 2006 20:21:06 +0200
Daniel Gerzo <danger at rulez.sk> mentioned:

> Hello freebsd-ports,
> 
>    I've been trying to add support for Hardened-php patch into our PHP
>    port (only php4 first, since that's what I'm running) and I ran into a
>    problem with autoconf, unfortunately I have no clue what's going on
>    there, therefore I'm asking if anybody on this list have some idea.
>    Here's the error message:
> 
> ===>  Found saved configuration for php4-4.4.3_1
> ===>  Extracting for php4-4.4.3_1
> => MD5 Checksum OK for php-4.4.3.tar.bz2.
> => SHA256 Checksum OK for php-4.4.3.tar.bz2.
> => MD5 Checksum OK for hardening-patch-4.4.3-0.4.13.patch.gz.
> => SHA256 Checksum OK for hardening-patch-4.4.3-0.4.13.patch.gz.
> ===>  Patching for php4-4.4.3_1
> ===>  Applying distribution patches for php4-4.4.3_1
> ===>  Applying FreeBSD patches for php4-4.4.3_1
> ===>   php4-4.4.3_1 depends on file: /usr/local/sbin/apxs - found
> ===>   php4-4.4.3_1 depends on file: /usr/local/sbin/apxs - found
> ===>   php4-4.4.3_1 depends on file: /usr/local/bin/autoconf259 - found
> ===>  Configuring for php4-4.4.3_1
> configure.in:150: warning: AC_PROG_LEX invoked multiple times
> autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
> configure.in:150: the top level
> configure.in:622: error: possibly undefined macro:
> PHP_AC_BROKEN_REALPATH
>       If this token and others are legitimate, please use
>       m4_pattern_allow.
>             See the Autoconf documentation.
> 	    *** Error code 1
> 
> Stop in /usr/ports/lang/php4.
>   
>    The patch for php4 I've produced is attached.
> 
>    Please cc: me when replying, since I'm not subscribed to the list,
>    thank you for you help!
> 

Haven't tested it, but it seems that you need something
like USE_AUTOTOOLS=aclocal:19 autoconf:259
in Makefile, since you patch updates configure.in and probably
adds additional aclocal files/dirs.

If that won't help try to grep out where PHP_AC_BROKEN_REALPATH 
declared.

-- 
Stanislav Sedov         MBSD labs, Inc.         <ssedov at mbsd.msk.ru>
Россия, Москва         http://mbsd.msk.ru

--------------------------------------------------------------------
If the facts don't fit the theory, change the facts.  -- A. Einstein
--------------------------------------------------------------------
PGP fingerprint:  F21E D6CC 5626 9609 6CE2  A385 2BF5 5993 EB26 9581
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060809/e006c1f6/signature.pgp


More information about the freebsd-ports mailing list