Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jun 2009 16:17:50 +0200
From:      Andrea 'simplex' Zulato <simplex@twopenguins.it>
To:        freebsd-ports@freebsd.org
Subject:   php5-readline-5.2.10 patch compile error
Message-ID:  <4A43870E.6070708@twopenguins.it>

next in thread | raw e-mail | index | archive | help
Hi, i've upgraded php to 5.2.10 with portupgrade, php5-readline-5.2.10
won't compile.
Here's the error:
--->  Upgrading 'php5-readline-5.2.9' to 'php5-readline-5.2.10'
(devel/php5-readline)
OK? [yes]
--->  Build of devel/php5-readline started at: Thu, 25 Jun 2009 16:09:16
+0200
--->  Building '/usr/ports/devel/php5-readline'
===>  Cleaning for php5-readline-5.2.10
===>  Extracting for php5-readline-5.2.10
=> MD5 Checksum OK for php-5.2.10.tar.bz2.
=> SHA256 Checksum OK for php-5.2.10.tar.bz2.
===>  Patching for php5-readline-5.2.10
===>  Applying FreeBSD patches for php5-readline-5.2.10
1 out of 3 hunks failed--saving rejects to config.m4.rej
=> Patch patch-config.m4 failed to apply cleanly.
*** Error code 1

Stop in /usr/ports/devel/php5-readline.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade20090625-75944-1w6ribe-0 env UPGRADE_TOOL=portupgrade
UPGRADE_PORT=php5-readline-5.2.9 UPGRADE_PORT_VER=5.2.9 make
** Fix the problem and try again.
--->  Build of devel/php5-readline ended at: Thu, 25 Jun 2009 16:09:21
+0200 (consumed 00:00:05)
--->  Upgrade of devel/php5-readline ended at: Thu, 25 Jun 2009 16:09:21
+0200 (consumed 00:00:31)

And the config.m4.rej file:

***************
*** 50,55 ****
      -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
    ])
 
    PHP_CHECK_LIBRARY(history, add_history,
    [
      PHP_ADD_LIBRARY_WITH_PATH(history, $READLINE_DIR/$PHP_LIBDIR,
READLINE_SHARED_LIBADD)
--- 48,60 ----
      -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
    ])
 
+   PHP_CHECK_LIBRARY(readline, rl_completion_matches,
+   [
+     AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, [ ])
+   ],[],[
+     -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
+   ])
+
    PHP_CHECK_LIBRARY(history, add_history,
    [
      PHP_ADD_LIBRARY_WITH_PATH(history, $READLINE_DIR/$PHP_LIBDIR,
READLINE_SHARED_LIBADD)


I'm on a FreeBSD 7.2-RELEASE-p1 #0.
Any clue? Thanks
Andrea 'simplex' Zulato




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A43870E.6070708>