pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/php4 When apache2 is built with the "worker" MPM, ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7ef2710b1113
branches:  trunk
changeset: 485371:7ef2710b1113
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Dec 09 14:50:23 2004 +0000

description:
When apache2 is built with the "worker" MPM, the PHP4 configure script
creates its own compiler wrapper script.  This "meta_ccld" script
isn't recognized by the installed libtool script as a compiler, and
libtool gets confused as to which compiler tag to use.  Rather than
inserting "--tag=CC" into the Makefiles, we patch the configure script
to not make the wrapper script, and instead, to simply append the
appropriate pthreads CFLAGS to the normal CFLAGS variable subsituted
into Makefiles.  This fixes PR pkg/28485.

diffstat:

 www/php4/distinfo         |   3 ++-
 www/php4/patches/patch-ad |  19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r 828a48e900ad -r 7ef2710b1113 www/php4/distinfo
--- a/www/php4/distinfo Wed Dec 08 21:53:34 2004 +0000
+++ b/www/php4/distinfo Thu Dec 09 14:50:23 2004 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.33 2004/10/31 18:23:24 jdolecek Exp $
+$NetBSD: distinfo,v 1.34 2004/12/09 14:50:23 jlam Exp $
 
 SHA1 (php-4.3.9.tar.bz2) = 9995ce1f0b84a6d3c230552446dbcd91dbf426b0
 Size (php-4.3.9.tar.bz2) = 4001681 bytes
 SHA1 (patch-aa) = feb064407950d0fc732b7240e65cac84420d2407
 SHA1 (patch-ab) = fd09b2a1f56d50859f2ee632f7feab28e624fe15
+SHA1 (patch-ad) = 9ca5d2f59bfeea77a98cd0e727546d11669114cd
 SHA1 (patch-ag) = 1ded1d7f4daac6806f41864c783f16d3403315e4
 SHA1 (patch-ah) = 0ac37bd35c4594cb58f1ea85ef811154b644a931
 SHA1 (patch-ai) = 0b9c1c9fb75a64026f2fb3cbd44cc19e0a1f186c
diff -r 828a48e900ad -r 7ef2710b1113 www/php4/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/php4/patches/patch-ad Thu Dec 09 14:50:23 2004 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-ad,v 1.17 2004/12/09 14:50:23 jlam Exp $
+
+--- configure.orig     2004-09-20 18:31:33.000000000 -0400
++++ configure
+@@ -90314,13 +90314,8 @@ old_CC=$CC
+ 
+ if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then
+   CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags"
++  CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
+   INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags"
+-  cat >meta_ccld<<EOF
+-#! /bin/sh
+-exec $CC $ac_cv_pthreads_cflags \$@
+-EOF
+-  CC="$abs_builddir/meta_ccld"
+-  chmod +x meta_ccld
+ fi
+ 
+ if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then



Home | Main Index | Thread Index | Old Index