Patchwork [for-dora] php: update SRC_URI for new download location

mail settings
Submitter chase maupin
Date Jan. 28, 2014, 3 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/65957/
State Accepted, archived
Headers show


chase maupin - Jan. 28, 2014, 3 p.m.
* The old downloads location of
  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 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 and there was discussion at

Signed-off-by: Chase Maupin <>
 meta-oe/recipes-devtools/php/ |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)


diff --git a/meta-oe/recipes-devtools/php/ b/meta-oe/recipes-devtools/php/
index 5345f2a..75c3704 100644
--- a/meta-oe/recipes-devtools/php/
+++ b/meta-oe/recipes-devtools/php/
@@ -7,9 +7,13 @@  DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native \
            libc-client openssl"
 DEPENDS_virtclass-native = "zlib-native libxml2-native"
-INC_PR = "r5"
+INC_PR = "r6"
-SRC_URI = "${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 = "${PHP_MAJVER}/php-${PV}.tar.bz2"
 S = "${WORKDIR}/php-${PV}"