+fpm variant in php5 Portfile

dreamcat four dreamcat4 at gmail.com
Thu Nov 19 09:08:55 PST 2009


Yeah you might want to check where libevent got installed.
>        --with-libevent=${prefix}

It seems to look in /opt/local/lib for /opt/local/lib/libevent.a ?
Maybe macports differentiates between build dependancies and runtime
(executable) dependancies?
(libevent is a build-time dependancy). Use spotlight search
"libevent.a" to find it.

Here are some other recommendations / tips:
You will probably also want to include an appropriate startupitem or
launchd plist. ie that runs 'php-fpm' and not 'php-cgi'. I don't if
the original portfile already handles that for you.

Another thing: those files will change with each new patch release.
If you want to do checksums you must download from archives the fixed
revision eg:
http://launchpad.net/php-fpm/archive/0.6-103/+download/php-fpm-0.6-103~5.3.patch

# so maybe
set fpm_revision 103
php-fpm-${fpm_patch_version}-{fpm_revision}~5.3.patch # ?

You can specify alternate download location here:
http://php-fpm.org/downloads/archive/
in case launchpad is unavailable or blocked.

On Thu, Nov 19, 2009 at 4:33 PM, Michael J. I. Jackson
<mjijackson at gmail.com> wrote:
> variant fpm description {Add FPM patch} {
>    depends_lib-append \
>        port:libevent
>    configure.args-append \
>        --with-fpm \
>        --with-libevent=${prefix}
>    set fpm_patch_version       0.6
>    set fpm_patch               php-fpm-${fpm_patch_version}~5.3.patch
>    patch_sites-append
> http://launchpad.net/php-fpm/master/${fpm_patch_version}/+download/
>    patchfiles-append           ${fpm_patch}
>    checksums-append \
>        ${fpm_patch} \
>            md5     361c934eec184a398db6c974994a8870
> }
>
>
> However, when I try and use the +fpm variant, the compile fails
> complaining that libevent can't be found. Here's the output I get:
>
>
> $ sudo port install php5 +fpm
> Configuring fpm
> checking dynamic linker characteristics... darwin10.2.0 dyld
> checking for libevent >= 1.4.11... no
> configure: warning: libevent.a could not be found. We looked in:
> configure: warning: " /lib/i686-apple-darwin10/4.2.1/x86_64/
> /lib/x86_64/ /usr/lib/i686-apple-darwin10/4.2.1/x86_64/
> /usr/lib/x86_64/ /usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64/
> /usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64/
> /usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../../i686-apple-darwin10/lib/i686-apple-darwin10/4.2.1/x86_64/
> /usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../../i686-apple-darwin10/lib/x86_64/
> /usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../i686-apple-darwin10/4.2.1/x86_64/
> /usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../x86_64/
> /lib/i686-apple-darwin10/4.2.1/ /lib/
> /usr/lib/i686-apple-darwin10/4.2.1/ /usr/lib/
> /usr/lib/gcc/i686-apple-darwin10/4.2.1/
> /usr/lib/gcc/i686-apple-darwin10/4.2.1/
> /usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../../i686-apple-darwin10/lib/i686-apple-darwin10/4.2.1/
> /usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../../i686-apple-darwin10/lib/
> /usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../i686-apple-darwin10/4.2.1/
> /usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../  /lib /usr/lib
> /usr/local/lib"
> configure: warning: Install libevent system-wide (make install)
> configure: warning: Syntax:
> configure: warning: --with-libevent=yes|path - link to libevent.a
> (static library)
> configure: warning: --with-libevent=shared,path - link to libevent.so
> (shared library)
> configure: error: libevent.a could not be found. Stop.

dreamcat4
dreamcat4 at gmail.com


More information about the macports-users mailing list