All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2][for-dora] php: update SRC_URI for new download location
@ 2014-01-30 12:49 Chase Maupin
  2014-01-30 13:35 ` Errors when using populate_sdk - has anyone encountered this before? Dorairaj, Sanjay
  0 siblings, 1 reply; 10+ messages in thread
From: Chase Maupin @ 2014-01-30 12:49 UTC (permalink / raw)
  To: openembedded-devel

* 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>
---
* Updated in version 2
    * Remove the bump of INC_PR as per suggestion of
      Koen Kooi [koen@dominion.thruhere.net]
---
 meta-oe/recipes-devtools/php/php.inc |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc
index 5345f2a..d5e53c0 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}"
 
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-01-30 23:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-30 12:49 [PATCHv2][for-dora] php: update SRC_URI for new download location Chase Maupin
2014-01-30 13:35 ` Errors when using populate_sdk - has anyone encountered this before? Dorairaj, Sanjay
2014-01-30 16:53   ` Khem Raj
     [not found]     ` <EFF5E6A1D0DAA14BA6B30C755A7B0FE13131B2C8EC@BLRINMSMBX01.bglrodc.lntinfotech.com>
2014-01-30 17:59       ` Khem Raj
     [not found]         ` <EFF5E6A1D0DAA14BA6B30C755A7B0FE13131B2C8ED@BLRINMSMBX01.bglrodc.lntinfotech.com>
     [not found]           ` <EFF5E6A1D0DAA14BA6B30C755A7B0FE13131B2C8EF@BLRINMSMBX01.bglrodc.lntinfotech.com>
2014-01-30 21:07             ` Nicolas Dechesne
2014-01-30 22:03               ` Koen Kooi
2014-01-30 22:07               ` Koen Kooi
2014-01-30 23:12                 ` Dorairaj, Sanjay
2014-01-30 23:22                   ` Ridish Rema Aravindan
2014-01-30 22:42               ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.