Date: Mon, 19 Feb 2007 18:37:19 -0500 (EST) From: Michael Scheidell <scheidell@secnap.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: ale@FreeBSD.org Subject: ports/109343: add pdo-mysql support to php 5.2x Message-ID: <20070219233719.0CD251CCF8@scanner.secnap.net> Resent-Message-ID: <200702192340.l1JNe5JG082685@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 109343 >Category: ports >Synopsis: add pdo-mysql support to php 5.2x >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Feb 19 23:40:05 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Michael Scheidell >Release: FreeBSD 5.5-RELEASE-p8 i386 >Organization: SECNAP >Environment: System: FreeBSD scanner.secnap.net 5.5-RELEASE-p8 FreeBSD 5.5-RELEASE-p8 #2: Fri Dec 29 22:23:34 EST 2006 scheidell@scanner.secnap.net:/usr/obj/usr/src/sys/HACKERTRAP_750 i386 >Description: php 5.20 and older supported pdo-mysql. These patches add it back in. Easier than trying to cd to the dir and install it (and pdo-sqlite is supported, why not mysql) Tested on both 4.11 and 5.5. >How-To-Repeat: cd /usr/ports/lang/php5-extensions make config (select PDO_MYSQL) >Fix: These patches: diff -bBru bsd.php.mk.orig bsd.php.mk --- bsd.php.mk.orig Fri Feb 16 03:53:33 2007 +++ bsd.php.mk Mon Feb 19 18:03:47 2007 @@ -242,7 +242,7 @@ # version specific components _USE_PHP_VER4= ${_USE_PHP_ALL} crack dbx dio domxml filepro mcal mcve \ mnogosearch oracle overload pfpro xslt yp -_USE_PHP_VER5= ${_USE_PHP_ALL} dom filter ming mysqli pdo pdo_sqlite \ +_USE_PHP_VER5= ${_USE_PHP_ALL} dom filter ming mysqli pdo pdo_mysql pdo_sqlite \ simplexml soap spl sqlite tidy xmlreader xmlwriter xsl bcmath_DEPENDS= math/php${PHP_VER}-bcmath @@ -291,6 +291,7 @@ pcre_DEPENDS= devel/php${PHP_VER}-pcre pdf_DEPENDS= print/pecl-pdflib pdo_DEPENDS= databases/php${PHP_VER}-pdo +pdo_mysql_DEPENDS= databases/php${PHP_VER}-pdo_mysql pdo_sqlite_DEPENDS= databases/php${PHP_VER}-pdo_sqlite pfpro_DEPENDS= finance/php${PHP_VER}-pfpro pgsql_DEPENDS= databases/php${PHP_VER}-pgsql and: diff -bBru Makefile.orig Makefile --- Makefile.orig Sat Feb 10 14:09:33 2007 +++ Makefile Mon Feb 19 17:45:51 2007 @@ -30,6 +30,7 @@ WITH_JSON= yes WITH_PCRE= yes WITH_PDO= yes +WITH_PDO_MYSQL= yes WITH_PDO_SQLITE=yes WITH_POSIX= yes WITH_SESSION= yes @@ -77,6 +78,7 @@ PCRE "Perl Compatible Regular Expression support" on \ PDF "PDFlib support (implies GD)" off \ PDO "PHP Data Objects Interface (PDO)" on \ + PDO_MYSQL "PDO mysql driver" on \ PDO_SQLITE "PDO sqlite driver" on \ PGSQL "PostgreSQL database support" off \ POSIX "POSIX-like functions" on \ @@ -119,7 +121,7 @@ DOM EXIF FILEINFO FILTER FRIBIDI FTP GD GETTEXT \ GMP HASH ICONV IMAP INTERBASE JSON LDAP MBSTRING MCRYPT \ MHASH MING MSSQL MYSQL MYSQLI NCURSES \ - ODBC OPENSSL PCNTL PCRE PDF PDO PDO_SQLITE PGSQL POSIX \ + ODBC OPENSSL PCNTL PCRE PDF PDO PDO_MYSQL PDO_SQLITE PGSQL POSIX \ PSPELL READLINE RECODE SESSION SHMOP SIMPLEXML SNMP SOAP \ SOCKETS SPL SQLITE SYBASE_CT SYSVMSG SYSVSEM SYSVSHM \ TIDY TOKENIZER WDDX XML XMLREADER XMLRPC XMLWRITER XSL \ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070219233719.0CD251CCF8>