git.iko.soy/typeable/nixpkgs
on master help sign in
php-5.3: Remove
4d918cbEelco Dolstra
nixos/doc/manual/release-notes/rl-1412.xml+5
@@ -24,6 +24,11 @@ services.httpd.package = pkgs.apacheHttpd_2_2;
24
24
25 </para></listitem>
25 </para></listitem>
26
26
27+ <listitem><para>PHP 5.3 has been removed because it is no longer
28+ supported by the PHP project. A <link
29+ xlink:href="http://php.net/migration54">migration guide</link> is
30+ available.</para></listitem>
31+
27 <listitem><para>The host side of a container virtual Ethernet pair
32 <listitem><para>The host side of a container virtual Ethernet pair
28 is now called <literal>ve-<replaceable>container-name</replaceable></literal>
33 is now called <literal>ve-<replaceable>container-name</replaceable></literal>
29 rather than <literal>c-<replaceable>container-name</replaceable></literal>.</para></listitem>
34 rather than <literal>c-<replaceable>container-name</replaceable></literal>.</para></listitem>
pkgs/development/interpreters/php/5.3-freetype-dirs.patchdeleted−64
@@ -1,64 +0,0 @@
1−From a0955f351c7eb1022da7ae36970ffef3b00c8aff Mon Sep 17 00:00:00 2001
2−From: Adam Harvey <aharvey@php.net>
3−Date: Sat, 7 Dec 2013 19:39:40 -0800
4−Subject: [PATCH] Switch to using freetype-config for freetype detection.
5−
6−This fixes GD compilation against libfreetype 2.5.1 and later after they made
7−the rather interesting decision to change their include directory layout in a
8−point release.
9−
10−The original suggestion in the bug was to use pkg-config, but my inclination is
11−to use freetype-config instead: we should be able to get the same configuration
12−information without actually needing pkg-config installed, since pkg-config is
13−by no means guaranteed to exist on many Unices and distros, whereas
14−freetype-config should always be present if a libfreetype build environment is
15−installed. Let's try it out and see what happens.
16−
17−Fixes bug #64405 (Use freetype-config for determining freetype2 dir(s)).
18−
19−diff --git a/ext/gd/config.m4 b/ext/gd/config.m4
20−index 0e35ece..732e14c 100644
21−--- a/ext/gd/config.m4
22−+++ b/ext/gd/config.m4
23−@@ -193,30 +193,25 @@ AC_DEFUN([PHP_GD_FREETYPE2],[
24− if test "$PHP_FREETYPE_DIR" != "no"; then
25−
26− for i in $PHP_FREETYPE_DIR /usr/local /usr; do
27−- if test -f "$i/include/freetype2/freetype/freetype.h"; then
28−+ if test -f "$i/bin/freetype-config"; then
29− FREETYPE2_DIR=$i
30−- FREETYPE2_INC_DIR=$i/include/freetype2
31−+ FREETYPE2_CONFIG="$i/bin/freetype-config"
32− break
33− fi
34− done
35−
36− if test -z "$FREETYPE2_DIR"; then
37−- AC_MSG_ERROR([freetype.h not found.])
38−+ AC_MSG_ERROR([freetype-config not found.])
39− fi
40−
41−- PHP_CHECK_LIBRARY(freetype, FT_New_Face,
42−- [
43−- PHP_ADD_LIBRARY_WITH_PATH(freetype, $FREETYPE2_DIR/$PHP_LIBDIR, GD_SHARED_LIBADD)
44−- PHP_ADD_INCLUDE($FREETYPE2_DIR/include)
45−- PHP_ADD_INCLUDE($FREETYPE2_INC_DIR)
46−- AC_DEFINE(USE_GD_IMGSTRTTF, 1, [ ])
47−- AC_DEFINE(HAVE_LIBFREETYPE,1,[ ])
48−- AC_DEFINE(ENABLE_GD_TTF,1,[ ])
49−- ],[
50−- AC_MSG_ERROR([Problem with freetype.(a|so). Please check config.log for more information.])
51−- ],[
52−- -L$FREETYPE2_DIR/$PHP_LIBDIR
53−- ])
54−+ FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags`
55−+ FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs`
56−+
57−+ PHP_EVAL_INCLINE($FREETYPE2_CFLAGS)
58−+ PHP_EVAL_LIBLINE($FREETYPE2_LIBS, GD_SHARED_LIBADD)
59−+ AC_DEFINE(USE_GD_IMGSTRTTF, 1, [ ])
60−+ AC_DEFINE(HAVE_LIBFREETYPE,1,[ ])
61−+ AC_DEFINE(ENABLE_GD_TTF,1,[ ])
62− else
63− AC_MSG_RESULT([If configure fails try --with-freetype-dir=<DIR>])
64− fi
pkgs/development/interpreters/php/5.3.nixdeleted−245
@@ -1,245 +0,0 @@
1−{ stdenv, fetchurl, composableDerivation, autoconf, automake, flex, bison
2−, apacheHttpd, mysql, libxml2, readline, zlib, curl, gd, postgresql, gettext
3−, openssl, pkgconfig, sqlite, config, libjpeg, libpng, freetype, libxslt
4−, libmcrypt, bzip2, icu, libssh2, makeWrapper, libiconvOrEmpty, libiconv, uwimap
5−, pam }:
6−
7−let
8− libmcryptOverride = libmcrypt.override { disablePosixThreads = true; };
9−in
10−
11−composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed) version; in {
12−
13− version = "5.3.29";
14−
15− name = "php-${version}";
16−
17− enableParallelBuilding = true;
18−
19− buildInputs
20− = [ flex bison pkgconfig ]
21− ++ stdenv.lib.optionals stdenv.isDarwin [ libssh2 makeWrapper ];
22−
23− # need to include the C++ standard library when compiling on darwin
24− NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lstdc++";
25−
26− # need to specify where the dylib for icu is stored
27− DYLD_LIBRARY_PATH = stdenv.lib.optionalString stdenv.isDarwin "${icu}/lib";
28−
29− flags = {
30−
31− # much left to do here...
32−
33− # SAPI modules:
34−
35− apxs2 = {
36− configureFlags = ["--with-apxs2=${apacheHttpd}/bin/apxs"];
37− buildInputs = [apacheHttpd];
38− };
39−
40− # Extensions
41−
42− curl = {
43− configureFlags = ["--with-curl=${curl}" "--with-curlwrappers"];
44− buildInputs = [curl openssl];
45− };
46−
47− pcntl = {
48− configureFlags = [ "--enable-pcntl" ];
49− };
50−
51− zlib = {
52− configureFlags = ["--with-zlib=${zlib}"];
53− buildInputs = [zlib];
54− };
55−
56− libxml2 = {
57− configureFlags
58− = [ "--with-libxml-dir=${libxml2}" ]
59− ++ stdenv.lib.optional (libiconvOrEmpty != [])
60− [ "--with-iconv=${libiconv}" ];
61− buildInputs = [ libxml2 ] ++ libiconvOrEmpty;
62− };
63−
64− readline = {
65− configureFlags = ["--with-readline=${readline}"];
66− buildInputs = [ readline ];
67− };
68−
69− sqlite = {
70− configureFlags = ["--with-pdo-sqlite=${sqlite}"];
71− buildInputs = [ sqlite ];
72− };
73−
74− postgresql = {
75− configureFlags = ["--with-pgsql=${postgresql}"];
76− buildInputs = [ postgresql ];
77− };
78−
79− mysql = {
80− configureFlags = ["--with-mysql=${mysql}"];
81− buildInputs = [ mysql ];
82− };
83−
84− mysqli = {
85− configureFlags = ["--with-mysqli=${mysql}/bin/mysql_config"];
86− buildInputs = [ mysql];
87− };
88−
89− mysqli_embedded = {
90− configureFlags = ["--enable-embedded-mysqli"];
91− depends = "mysqli";
92− assertion = fixed.mysqliSupport;
93− };
94−
95− pdo_mysql = {
96− configureFlags = ["--with-pdo-mysql=${mysql}"];
97− buildInputs = [ mysql ];
98− };
99−
100− bcmath = {
101− configureFlags = ["--enable-bcmath"];
102− };
103−
104− gd = {
105− configureFlags = [
106− "--with-gd=${gd}"
107− "--with-png-dir=${libpng}"
108− "--with-jpeg-dir=${libjpeg}"
109− ];
110− buildInputs = [gd libpng libjpeg freetype];
111− };
112−
113− soap = {
114− configureFlags = ["--enable-soap"];
115− };
116−
117− sockets = {
118− configureFlags = ["--enable-sockets"];
119− };
120−
121− openssl = {
122− configureFlags = ["--with-openssl=${openssl}"];
123− buildInputs = ["openssl"];
124− };
125−
126− mbstring = {
127− configureFlags = ["--enable-mbstring"];
128− };
129−
130− gettext = {
131− configureFlags = ["--with-gettext=${gettext}"];
132− buildInputs = [gettext];
133− };
134−
135− imap = {
136− configureFlags = [ "--with-imap=${uwimap}" "--with-imap-ssl" ]
137− # uwimap builds with kerberos on darwin
138− ++ stdenv.lib.optional (stdenv.isDarwin) "--with-kerberos";
139− buildInputs = [ uwimap openssl ]
140− ++ stdenv.lib.optional (!stdenv.isDarwin) pam;
141− };
142−
143− intl = {
144− configureFlags = ["--enable-intl"];
145− buildInputs = [icu];
146− };
147−
148− exif = {
149− configureFlags = ["--enable-exif"];
150− };
151−
152− xsl = {
153− configureFlags = ["--with-xsl=${libxslt}"];
154− buildInputs = [libxslt];
155− };
156−
157− mcrypt = {
158− configureFlags = ["--with-mcrypt=${libmcrypt}"];
159− buildInputs = [libmcryptOverride];
160− };
161−
162− bz2 = {
163− configureFlags = ["--with-bz2=${bzip2}"];
164− buildInputs = [bzip2];
165− };
166−
167− zip = {
168− configureFlags = ["--enable-zip"];
169− };
170−
171− ftp = {
172− configureFlags = ["--enable-ftp"];
173− };
174−
175− fpm = {
176− configureFlags = ["--enable-fpm"];
177− };
178− };
179−
180− cfg = {
181− apxs2Support = config.php.apxs2 or true;
182− bcmathSupport = config.php.bcmath or true;
183− bz2Support = config.php.bz2 or false;
184− curlSupport = config.php.curl or true;
185− exifSupport = config.php.exif or true;
186− ftpSupport = config.php.ftp or true;
187− fpmSupport = config.php.fpm or false;
188− gdSupport = config.php.gd or true;
189− gettextSupport = config.php.gettext or true;
190− imapSupport = config.php.imap or false;
191− intlSupport = config.php.intl or true;
192− libxml2Support = config.php.libxml2 or true;
193− mbstringSupport = config.php.mbstring or true;
194− mcryptSupport = config.php.mcrypt or false;
195− mysqlSupport = config.php.mysql or true;
196− mysqliSupport = config.php.mysqli or true;
197− opensslSupport = config.php.openssl or true;
198− pcntlSupport = config.php.pcntl or true;
199− pdo_mysqlSupport = config.php.pdo_mysql or true;
200− postgresqlSupport = config.php.postgresql or true;
201− readlineSupport = config.php.readline or true;
202− soapSupport = config.php.soap or true;
203− socketsSupport = config.php.sockets or true;
204− sqliteSupport = config.php.sqlite or true;
205− xslSupport = config.php.xsl or false;
206− zipSupport = config.php.zip or true;
207− zlibSupport = config.php.zlib or true;
208− };
209−
210− configurePhase = ''
211− iniFile=$out/etc/php-recommended.ini
212− [[ -z "$libxml2" ]] || export PATH=$PATH:$libxml2/bin
213− ./configure --with-config-file-scan-dir=/etc --with-config-file-path=$out/etc --prefix=$out $configureFlags
214− echo configurePhase end
215− '' + stdenv.lib.optionalString stdenv.isDarwin ''
216− # don't build php.dSYM as the php binary
217− sed -i 's/EXEEXT = \.dSYM/EXEEXT =/' Makefile
218− '';
219−
220− installPhase = ''
221− unset installPhase; installPhase;
222− cp php.ini-production $iniFile
223− '' + ( stdenv.lib.optionalString stdenv.isDarwin ''
224− for prog in $out/bin/*; do
225− wrapProgram "$prog" --prefix DYLD_LIBRARY_PATH : "$DYLD_LIBRARY_PATH"
226− done
227− '' );
228−
229− src = fetchurl {
230− url = "http://www.php.net/distributions/php-${version}.tar.bz2";
231− sha256 = "1480pfp4391byqzmvdmbxkdkqwdzhdylj63sfzrcgadjf9lwzqf4";
232− name = "php-${version}.tar.bz2";
233− };
234−
235− meta = {
236− description = "An HTML-embedded scripting language";
237− homepage = http://www.php.net/;
238− license = "PHP-3";
239− maintainers = with stdenv.lib.maintainers; [ lovek323 ];
240− platforms = stdenv.lib.platforms.unix;
241− };
242−
243− patches = [ ./fix.patch ./5.3-freetype-dirs.patch ];
244−
245−})
pkgs/top-level/all-packages.nix−11
@@ -4076,17 +4076,6 @@ let
4076 inherit php pkgs;
4076 inherit php pkgs;
4077 });
4077 });
4078
4078
4079− php53 = callPackage ../development/interpreters/php/5.3.nix { };
4080−
4081− php_fpm53 = callPackage ../development/interpreters/php/5.3.nix {
4082− config = config // {
4083− php = (config.php or {}) // {
4084− fpm = true;
4085− apxs2 = false;
4086− };
4087− };
4088− };
4089−
4090 php54 = callPackage ../development/interpreters/php/5.4.nix { };
4079 php54 = callPackage ../development/interpreters/php/5.4.nix { };
4091
4080
4092 picolisp = callPackage ../development/interpreters/picolisp {};
4081 picolisp = callPackage ../development/interpreters/picolisp {};