mpv: fetch waf in do_fetch
PATCH 1/2 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 ]
--- meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb +5 -7
@@ -18,7 +18,9 @@ LICENSE_FLAGS = "commercial" SRCREV_mpv = "70b991749df389bcc0a4e145b5687233a03b4ed7" SRC_URI = " \ git://github.com/mpv-player/mpv;name=mpv \ + https://waf.io/waf-2.0.20;name=waf;subdir=git \ " +SRC_URI[waf.sha256sum] = "bf971e98edc2414968a262c6aa6b88541a26c3cd248689c89f4c57370955ee7f" S = "${WORKDIR}/git"
@@ -101,14 +103,10 @@ EXTRA_OECONF = " \ ${PACKAGECONFIG_CONFARGS} \ " -do_patch[postfuncs] += "get_waf" - -get_waf() { - cd ${S} - ./bootstrap.py - sed -i -e 's|/usr/bin/env python|/usr/bin/env python3|g' ${S}/waf - cd - +link_waf() { + ln -s waf-2.0.20 ${S}/waf } +do_unpack[postfuncs] += "link_waf" FILES_${PN} += " \ ${datadir}/icons \
Signature · 1 line
2.25.1
PATCH 2/2 mpv: don't remove lua for aarch64 twice
LUA_aarch64 is already unset, so there's no need to remove 'lua' from PACKAGECONFIG again.
--- meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb | 1 - 1 file changed, 1 deletion(-)
meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb +0 -1
@@ -44,7 +44,6 @@ PACKAGECONFIG ??= " \ ${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)} \ " -PACKAGECONFIG_remove_aarch64 = "lua" PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11" PACKAGECONFIG[xv] = "--enable-xv,--disable-xv,libxv" PACKAGECONFIG[opengl] = "--enable-gl,--disable-gl,virtual/libgl"
Signature · 1 line
2.25.1
Note that this and the related glmark2 patch both depend on a change I just submitted to oe-core[1].
Ross
[1] https://patchwork.openembedded.org/patch/177061/
Quoted 57 lines · Ross Burton via lists.openembedded.org
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_patchpostfunc, but downloading should be done indo_fetch. Instead of calling ./bootstrap.sh simply add waf to theSRC_URIso 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 <[email protected]>--- meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb +5
-8@@ -18,7 +18,9 @@ LICENSE_FLAGS = "commercial" SRCREV_mpv = "70b991749df389bcc0a4e145b5687233a03b4ed7" SRC_URI = " \ git://github.com/mpv-player/mpv;name=mpv \ + https://waf.io/waf-2.0.20;name=waf;subdir=git \ " +SRC_URI[waf.sha256sum] = "bf971e98edc2414968a262c6aa6b88541a26c3cd248689c89f4c57370955ee7f" S = "${WORKDIR}/git"@@ -101,14 +103,10 @@ EXTRA_OECONF = " \ ${PACKAGECONFIG_CONFARGS} \ " -do_patch[postfuncs] += "get_waf" - -get_waf() { - cd ${S} - ./bootstrap.py - sed -i -e 's|/usr/bin/env python|/usr/bin/env python3|g' ${S}/waf - cd - +link_waf() { + ln -s waf-2.0.20 ${S}/waf } +do_unpack[postfuncs] += "link_waf" FILES_${PN} += " \ ${datadir}/icons \ --2.25.1
The waf changes have been integrated into master now, so these can be merged.
Ross
Quoted 66 lines · Ross Burton
Note that this and the related glmark2 patch both depend on a change I just submitted to oe-core[1].
Ross
[1] https://patchwork.openembedded.org/patch/177061/Quoted 57 lines · Ross Burton via lists.openembedded.org
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_patchpostfunc, but downloading should be done indo_fetch. Instead of calling ./bootstrap.sh simply add waf to theSRC_URIso 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 <[email protected]>--- meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb +5
-8@@ -18,7 +18,9 @@ LICENSE_FLAGS = "commercial" SRCREV_mpv = "70b991749df389bcc0a4e145b5687233a03b4ed7" SRC_URI = " \ git://github.com/mpv-player/mpv;name=mpv \ + https://waf.io/waf-2.0.20;name=waf;subdir=git \ " +SRC_URI[waf.sha256sum] = "bf971e98edc2414968a262c6aa6b88541a26c3cd248689c89f4c57370955ee7f" S = "${WORKDIR}/git"@@ -101,14 +103,10 @@ EXTRA_OECONF = " \ ${PACKAGECONFIG_CONFARGS} \ " -do_patch[postfuncs] += "get_waf" - -get_waf() { - cd ${S} - ./bootstrap.py - sed -i -e 's|/usr/bin/env python|/usr/bin/env python3|g' ${S}/waf - cd - +link_waf() { + ln -s waf-2.0.20 ${S}/waf } +do_unpack[postfuncs] += "link_waf" FILES_${PN} += " \ ${datadir}/icons \ --2.25.1
thanks yes they are already in master-next now
Quoted 75 lines · Ross Burton
The waf changes have been integrated into master now, so these can be merged.
Ross
Quoted 66 lines · Ross Burton
Note that this and the related glmark2 patch both depend on a change I just submitted to oe-core[1].
Ross
[1] https://patchwork.openembedded.org/patch/177061/Quoted 57 lines · Ross Burton via lists.openembedded.org
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_patchpostfunc, but downloading should be done indo_fetch. Instead of calling ./bootstrap.sh simply add waf to theSRC_URIso 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 <[email protected]>--- meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb +5
-8@@ -18,7 +18,9 @@ LICENSE_FLAGS = "commercial" SRCREV_mpv = "70b991749df389bcc0a4e145b5687233a03b4ed7" SRC_URI = " \ git://github.com/mpv-player/mpv;name=mpv \ + https://waf.io/waf-2.0.20;name=waf;subdir=git \ " +SRC_URI[waf.sha256sum] = "bf971e98edc2414968a262c6aa6b88541a26c3cd248689c89f4c57370955ee7f" S = "${WORKDIR}/git"@@ -101,14 +103,10 @@ EXTRA_OECONF = " \ ${PACKAGECONFIG_CONFARGS} \ " -do_patch[postfuncs] += "get_waf" - -get_waf() { - cd ${S} - ./bootstrap.py - sed -i -e 's|/usr/bin/env python|/usr/bin/env python3|g' ${S}/waf - cd - +link_waf() { + ln -s waf-2.0.20 ${S}/waf } +do_unpack[postfuncs] += "link_waf" FILES_${PN} += " \ ${datadir}/icons \ --2.25.1