Subject: php5 fails with 'test == ...'
To: None <jdolecek@NetBSD.org>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-pkg
Date: 11/09/2006 13:40:37
Hi,

I've found that pkgsrc/lang/php5 doesn't build for me as it calls 'test 
... == ...' and aborts with some error. The two patches below fix this.
Do you want to commit them, or should I? For the latter case: what's the 
right place to set/increase PKGREVISION, there are several Makefiles...

Thanks!


  - Hubert


$NetBSD$

--- ext/pdo_sqlite/sqlite/configure.orig	2006-08-14 18:15:28.000000000 +0200
+++ ext/pdo_sqlite/sqlite/configure
@@ -19700,7 +19700,7 @@ if test "$TARGET_EXEEXT" = ".exe"; then
      OS_WIN=0
      OS_OS2=1
      TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1"
-    if test "$ac_compiler_gnu" == "yes" ; then
+    if test "$ac_compiler_gnu" = "yes" ; then
        TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap"
        BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
      fi
$NetBSD$

--- ext/pdo_sqlite/sqlite/configure.ac.orig	2006-08-14 18:15:28.000000000 +0200
+++ ext/pdo_sqlite/sqlite/configure.ac
@@ -412,7 +412,7 @@ if test "$TARGET_EXEEXT" = ".exe"; then
      OS_WIN=0
      OS_OS2=1
      TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1"
-    if test "$ac_compiler_gnu" == "yes" ; then
+    if test "$ac_compiler_gnu" = "yes" ; then
        TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap"
        BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
      fi