[94227] trunk/dports/php

Bradley Giesbrecht pixilla at macports.org
Tue Jun 12 19:27:44 PDT 2012


On Jun 12, 2012, at 7:05 PM, Ryan Schmidt wrote:

> 
> On Jun 12, 2012, at 19:00, pixilla at macports.org wrote:
> 
>> Revision: 94227
>>         https://trac.macports.org/changeset/94227
>> Author:   pixilla at macports.org
>> Date:     2012-06-12 17:00:32 -0700 (Tue, 12 Jun 2012)
>> Log Message:
>> -----------
>> php/pear-*:
>> - Change from php5pear to pear PortGroup.
>> - Update pear package versions where applicable.
> 
> I assume your intention is to deprecate and eventually remove the php5pear portgroup. Note that you won't be able to remove the php5pear portgroup until all of these ports have been rebuilt on all users' systems. That means each one will need a revbump or version increase before the old portgroup can be removed.

Yes, this is my intention.

> This is because the portfile that was used at the time of installation is copied into the registry, and is used again when the port is uninstalled, but any portgroups it uses are not copied into the registry, and are used from their original location, so they must continue to exist until nobody has these ports installed anymore.

I wasn't sure what to do. Thank you for the explanation.

> When I changed the php extension ports from the php 1.0 portgroup to the php 1.1 portgroup, I increased the revision at the same time to force such a rebuild. I plan to delete the php 1.0 portgroup in a year, to give all users time to upgrade.

I will do the same for pear 1.0 portgroup. Thanks for lighting the way:)

BTW, I have successfully run my local php webapps with php5, php53 and php54. They utilize various php extension and twenty or so pear classes. I have all three installed symiltaniously and make a simple apache httpd.conf edit to switch between them.

# PHP5# mod-php
#LoadModule php5_module modules/libphp5.so
#Include conf/extra/mod_php.conf
#LoadModule php5_module modules/mod_php53.so
#Include conf/extra/mod_php53.conf
LoadModule php5_module modules/mod_php54.so
Include conf/extra/mod_php54.conf

So, I'm moving on to php54 now :) Thanks!

Oh, and I FINALLY have mariadb 5.5.24 compiling which I really wanted to do before finishing up the mysql5 upgrades. Now mysql55, percona and mariadb will all be based on mysql 5.5 with very similar portfiles and patches and the same file system layout. The patches for mariadb amounted to a few lines in two files to enable cmake in a dir that the tests needed. I spent 6 weeks off and on before I found those few lines. Several times I started to rebase mariadb with mysql55, cursing most of the way :)


In the end so darn simple:

--- a/storage/maria/CMakeLists.txt	2012-06-09 10:56:52.000000000 -0700
+++ b/storage/maria/CMakeLists.txt	2012-06-10 14:30:33.000000000 -0700
@@ -92,4 +92,7 @@
 CMAKE_DEPENDENT_OPTION(USE_ARIA_FOR_TMP_TABLES "Use Aria for temporary tables" ON
                        "WITH_ARIA_STORAGE_ENGINE" OFF)
 
-ADD_SUBDIRECTORY(unittest)
+IF(WITH_MARIA_STORAGE_ENGINE)
+  ENABLE_TESTING()
+  ADD_SUBDIRECTORY(unittest)
+ENDIF()
--- a/storage/perfschema/CMakeLists.txt	2012-06-09 10:56:53.000000000 -0700
+++ b/storage/perfschema/CMakeLists.txt	2012-06-10 14:23:06.000000000 -0700
@@ -74,6 +74,7 @@
 )
 
 MYSQL_ADD_PLUGIN(perfschema ${PERFSCHEMA_SOURCES} STORAGE_ENGINE DEFAULT STATIC_ONLY)
-IF(WITH_PERFSCHEMA_STORAGE_ENGINE)
+IF(WITH_PERFSCHEMA_STORAGE_ENGINE AND WITH_UNIT_TESTS)
+  ENABLE_TESTING()
   ADD_SUBDIRECTORY(unittest)
 ENDIF()



Regards,
Bradley Giesbrecht (pixilla)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2763 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20120612/b0a2711a/attachment-0001.bin>


More information about the macports-dev mailing list