Skip to contentSkip to conversation

php: update SRC_URI for new download location

PATCH In review Bryan Evenson 2 participants 2 messages Mar 31, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 php: update SRC_URI for new download location

From: chase maupin <[email protected]>

* 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 [email protected] 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

---
 meta-oe/recipes-devtools/php/php.inc |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta-oe/recipes-devtools/php/php.inc +5 -1
index 225c3d7..6175a10 100644
@@ -9,7 +9,11 @@ DEPENDS_virtclass-native = "zlib-native libxml2-native"
 
 INC_PR = "r4"
 
-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}"
 
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 18 lines · Bryan Evenson

From: chase maupin <[email protected]>

* 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 [email protected] 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

Quoted 2 lines

+ Eric Bénard