summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2020-10-08 17:18:49 +0100
committerArmin Kuster <akuster808@gmail.com>2020-11-09 19:09:03 -0800
commit8ce691e47f5b3f795821a439536f4b54b24f887f (patch)
tree568cf41dbb6f53e5371824af35df437e40ed6262
parent9c012d9aafdd3870e5cbd5795da7749d433f9a34 (diff)
downloadmeta-openembedded-8ce691e47f5b3f795821a439536f4b54b24f887f.tar.gz
mpv: fetch waf in do_fetch
The mpv git repository doesn't include a copy of waf, instead there is a bootstrap script to fetch it. This recipe calls the bootstrap script in a do_patch postfunc, but downloading should be done in do_fetch. Instead of calling ./bootstrap.sh simply add waf to the SRC_URI so that Bitbake can use the mirrors/proxies/caching/checksum functionality. This is both better code and also works in buildtools environments where urllib2 can't make secure connections without configuration. [ YOCTO #14073 ] Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 5af46f89fcef5c436786ed81978de60f26abe054) Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb12
1 files changed, 5 insertions, 7 deletions
diff --git a/meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb b/meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb
index f7b0f30fb9..70a39c7b60 100644
--- a/meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb
+++ b/meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb
@@ -18,7 +18,9 @@ LICENSE_FLAGS = "commercial"
18SRCREV_mpv = "70b991749df389bcc0a4e145b5687233a03b4ed7" 18SRCREV_mpv = "70b991749df389bcc0a4e145b5687233a03b4ed7"
19SRC_URI = " \ 19SRC_URI = " \
20 git://github.com/mpv-player/mpv;name=mpv \ 20 git://github.com/mpv-player/mpv;name=mpv \
21 https://waf.io/waf-2.0.20;name=waf;subdir=git \
21" 22"
23SRC_URI[waf.sha256sum] = "bf971e98edc2414968a262c6aa6b88541a26c3cd248689c89f4c57370955ee7f"
22 24
23S = "${WORKDIR}/git" 25S = "${WORKDIR}/git"
24 26
@@ -101,14 +103,10 @@ EXTRA_OECONF = " \
101 ${PACKAGECONFIG_CONFARGS} \ 103 ${PACKAGECONFIG_CONFARGS} \
102" 104"
103 105
104do_patch[postfuncs] += "get_waf" 106link_waf() {
105 107 ln -s waf-2.0.20 ${S}/waf
106get_waf() {
107 cd ${S}
108 ./bootstrap.py
109 sed -i -e 's|/usr/bin/env python|/usr/bin/env python3|g' ${S}/waf
110 cd -
111} 108}
109do_unpack[postfuncs] += "link_waf"
112 110
113FILES_${PN} += " \ 111FILES_${PN} += " \
114 ${datadir}/icons \ 112 ${datadir}/icons \