Bug #50889 [Asn->Csd]: Patch-Request: Fixes to confutils.js
| From: | kalle@php.net | Date: | Thu, 25 Mar 2010 03:49:18 +0000 |
| Subject: | Bug #50889 [Asn->Csd]: Patch-Request: Fixes to confutils.js | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-4417@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=50889&edit=1
ID: 50889
Updated by: kalle@php.net
Reported by: thomas dot worm at thomas-worm dot de
Summary: Patch-Request: Fixes to confutils.js
-Status: Assigned
+Status: Closed
Type: Bug
Package: PHP-GTK related
Operating System: Windows
PHP Version: 5.3.1
Assigned To: kalle
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2010-03-25 04:49:07] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=296771
Log: Fixed bug #50889 (Fixes to confutils.js) - Patch by thomas dot worm
at thomas-worm dot de
------------------------------------------------------------------------
[2010-03-17 18:22:13] kalle@php.net
Re-assigned to my-self, I will take a look shortly
------------------------------------------------------------------------
[2010-01-30 21:20:46] thomas dot worm at thomas-worm dot de
Description:
------------
- If php-gtk is compiled without extensions configure.js will run into
an error because MFE is completely empty.
- Sometimes configure.js doesn't write !ENDIF although !IF is always
written. So make isn't able to parse the Makefile
This can be fixed with following patch:
diff -Nur php-gtk.orig/win32/confutils.js php-gtk/win32/confutils.js
--- php-gtk.orig/win32/confutils.js 2010-01-16 19:02:31.068819700
+0100
+++ php-gtk/win32/confutils.js 2010-01-16 20:08:36.402623800 +0100
@@ -991,6 +991,7 @@
function generate_makefile() {
+ MFE.WriteLine(""); // To avoid error if MFE will be complete
empty
MFE.Close(); // Makefile.extensions is now complete
MFO.Close(); // Makefile.objects is now complete
var MF = FSO.CreateTextFile("Makefile", true);
@@ -1022,8 +1023,8 @@
if (make_builds.length > 1) {
MF.WriteLine("!ELSE");
MF.WriteLine("!MESSAGE Note: $(PHPGTKLIB) must be
created before PHP-GTK extensions can be built");
- MF.WriteLine("!ENDIF");
}
+ MF.WriteLine("!ENDIF");
MF.WriteLine("build_dirs: $(BUILD_DIR) $(BUILD_DIRS_SUB)");
MF.WriteBlankLines(1);
Reproduce code:
---------------
cscript /nologo configure.js
Expected result:
----------------
configure.js runs well
nmake is executed
Actual result:
--------------
configure.js crashed when MFE is completely empty
nmake isn't able to read Makefile
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=50889&edit=1