commit:     21e088e54e1663356ccfc4efeb98e495ffc0e00f
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  2 15:38:24 2017 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Jun  3 16:50:00 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21e088e5

meson.eclass: pass --wrap-mode nodownload to meson

Downloading sources in src_configure is a bad idea.

Ref: http://mesonbuild.com/FAQ.html#does-wrap-download-sources-behind-my-back

 eclass/meson.eclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/eclass/meson.eclass b/eclass/meson.eclass
index ad260eb65b0..bb60a16aad5 100644
--- a/eclass/meson.eclass
+++ b/eclass/meson.eclass
@@ -48,7 +48,7 @@ EXPORT_FUNCTIONS src_configure src_compile src_test 
src_install
 if [[ -z ${_MESON_ECLASS} ]]; then
 _MESON_ECLASS=1
 
-DEPEND=">=dev-util/meson-0.39.1
+DEPEND=">=dev-util/meson-0.40.0
        >=dev-util/ninja-1.7.2"
 
 # @ECLASS-VARIABLE: BUILD_DIR
@@ -126,6 +126,7 @@ meson_src_configure() {
                --localstatedir "${EPREFIX}/var/lib"
                --prefix "${EPREFIX}/usr"
                --sysconfdir "${EPREFIX}/etc"
+               --wrap-mode nodownload
                )
 
        # Both meson(1) and _meson_create_cross_file need these

Reply via email to