aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/php/php.inc
diff options
context:
space:
mode:
authorchase maupin <chase.maupin@ti.com>2014-01-30 06:49:27 -0600
committerMartin Jansa <Martin.Jansa@gmail.com>2014-02-01 08:51:05 +0100
commitdcf37be559313c63c7d87d6106cc206f664abbbb (patch)
tree472b4a5a33db5e169b01772f29622f80fd8f7cb4 /meta-oe/recipes-devtools/php/php.inc
parent569b9cf130a3c9fecf8cf04a8049e65518808422 (diff)
downloadmeta-openembedded-contrib-dcf37be559313c63c7d87d6106cc206f664abbbb.tar.gz
php: update SRC_URI for new download location
* The old downloads location of http://www.php.net/distributions now points to a listing of all distributions and the mirrors or download locations where the sources can be downloaded. * The new download location is http://museum.php.net/..... where the rest of the URL is based on the major version on PHP being downloaded. This is a change from the previous download server which had a flattened directory structure so that all versions were available in a single location. * To account for this change in the directory structure a variable called PHP_MAJVER is used based off of the PV to point the SRC_URI to the proper subdirectory. * This issue wsa first noted by Joshua Vanderpool at Joshua.Vanderpool@raymondcorp.com and there was discussion at http://lists.openembedded.org/pipermail/openembedded-devel/2014-January/093757.html * This patch has been commited to that master branch Signed-off-by: Chase Maupin <chase.maupin@ti.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/php/php.inc')
-rw-r--r--meta-oe/recipes-devtools/php/php.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc
index 5345f2a0e6..d5e53c0e59 100644
--- a/meta-oe/recipes-devtools/php/php.inc
+++ b/meta-oe/recipes-devtools/php/php.inc
@@ -9,7 +9,11 @@ DEPENDS_virtclass-native = "zlib-native libxml2-native"
INC_PR = "r5"
-SRC_URI = "http://www.php.net/distributions/php-${PV}.tar.bz2"
+# The new PHP downloads server groups PHP releases by major version so find
+# the major version of the PHP recipe.
+PHP_MAJVER = "${@d.getVar('PV',1).split('.')[0]}"
+
+SRC_URI = "http://museum.php.net/php${PHP_MAJVER}/php-${PV}.tar.bz2"
S = "${WORKDIR}/php-${PV}"