Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9983 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80104 invoked by uid 1010); 21 May 2004 04:47:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 79999 invoked from network); 21 May 2004 04:47:05 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 21 May 2004 04:47:05 -0000 Received: (qmail 11334 invoked from network); 21 May 2004 04:46:59 -0000 Received: from guardian.zend.office (HELO AndiNotebook.zend.com) (10.1.1.4) by int.zend.com with SMTP; 21 May 2004 04:46:59 -0000 Message-ID: <5.1.0.14.2.20040521074649.01fde070@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 21 May 2004 07:46:56 +0300 To: "Wez Furlong" , Cc: "'Sascha Schumann'" In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] [PATCH] primitive load order deps for unix build system From: andi@zend.com (Andi Gutmans) References: How many platforms did you check this one? Andi At 08:34 PM 5/20/2004 +0100, Wez Furlong wrote: >I've cooked up a patch [1] that causes extension modules to be initialized in >an order appropriate to their dependencies. (in other words, it only affects >internal_functions.c during configure time). > >The heart of the patch is an awk script that spits out the module_ptr >structures according to the dependencies it spots in config*.m4 files. > >You mark a dependency using a new (dummy) macro: > >PHP_ADD_EXTENSION_DEP(extension, extension-it-depends-upon) > >This mirrors the ADD_EXTENSION_DEP that we have in the win32 build; this patch >is effectively a port of the same kind of code from the win32 build. > >Now, my awk is a little rusty (it's been more than 6 years since I used it for >anything serious), so that part definitely has room for improvement. > >I'd like to get this into the tree for PHP 5.0, as it will help eliminate some >hacks (like SPL and SimpleXML have at the moment). > >Please test it, particularly on non-Linux platforms (check my awk >portability!) to make sure it doesn't mess things up. > >If someone feels like cleaning up my awk, feel free. If someone can do it all >in 100% portable bourne shell (!) feel free also :) > >--Wez. > >[1] http://www.php.net/~wez/configure-deps.diff > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php