From owner-svn-ports-head@freebsd.org Tue May 2 03:43:17 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 63AF3D5A987; Tue, 2 May 2017 03:43:17 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3E9E3E2; Tue, 2 May 2017 03:43:17 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v423hGCI029246; Tue, 2 May 2017 03:43:16 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v423hFiL029242; Tue, 2 May 2017 03:43:15 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201705020343.v423hFiL029242@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Tue, 2 May 2017 03:43:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r439925 - in head: Mk mail/thunderbird/files www/firefox-esr/files www/firefox/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 May 2017 03:43:17 -0000 Author: jbeich Date: Tue May 2 03:43:15 2017 New Revision: 439925 URL: https://svnweb.freebsd.org/changeset/ports/439925 Log: gecko: unbreak RUST=on with cargo >= 0.18 error[E0463]: can't find crate for `cheddar` --> media/libstagefright/binding/mp4parse_capi/build.rs:1:1 | 1 | extern crate cheddar; | ^^^^^^^^^^^^^^^^^^^^^ can't find crate error: aborting due to previous error fatal runtime error: failed to initiate panic, error 5 error: Could not compile `mp4parse_capi`. Caused by: process didn't exit successfully: `/usr/local/bin/rustc --crate-name build_script_build media/libstagefright/binding/mp4parse_capi/build.rs --crate-type bin --emit=dep-info,link -C opt-level=2 -C debuginfo=2 -C metadata=13cd8b0152b68b4e -C extra-filename=-13cd8b0152b68b4e--out-dir obj-x86_64-unknown-freebsd12.0/toolkit/library/rust/./release/build/mp4parse_capi-13cd8b0152b68b4e -L dependency=obj-x86_64-unknown-freebsd12.0/toolkit/library/rust/./release/deps` (exit code: 1) Build failed, waiting for other jobs to finish... error: build failed Added: head/mail/thunderbird/files/patch-bug1338655 (contents, props changed) head/www/firefox-esr/files/patch-bug1338655 (contents, props changed) head/www/firefox/files/patch-bug1338655 (contents, props changed) Modified: head/Mk/bsd.gecko.mk (contents, props changed) Modified: head/Mk/bsd.gecko.mk ============================================================================== --- head/Mk/bsd.gecko.mk Tue May 2 02:54:42 2017 (r439924) +++ head/Mk/bsd.gecko.mk Tue May 2 03:43:15 2017 (r439925) @@ -391,7 +391,7 @@ post-patch-SNDIO-on: .if ${PORT_OPTIONS:MRUST} BUILD_DEPENDS+= rustc:${RUST_PORT} . if ${MOZILLA_VER:R:R} >= 51 -BUILD_DEPENDS+= cargo:devel/cargo +BUILD_DEPENDS+= cargo>=0.16.0:devel/cargo . endif RUST_PORT?= lang/rust MOZ_OPTIONS+= --enable-rust Added: head/mail/thunderbird/files/patch-bug1338655 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/thunderbird/files/patch-bug1338655 Tue May 2 03:43:15 2017 (r439925) @@ -0,0 +1,66 @@ +commit bbd48a5613c8 +Author: Ralph Giles +Date: Fri Feb 10 12:58:18 2017 -0800 + + Bug 1338655 - Don't try to build mp4parse bindings. r=froydnj + + We use the cheddar crate to generate a C header file + for our mp4parse_capi wrapper crate. Currently we + do this at code check-in time via update-rust.sh. + + Cargo 0.18 and later will try to execute a build.rs + file in the crate source tree regardless of whether + it's specified in Cargo.toml so patching out that + line just results in 'crate cheddar not found'. + + This change restores the old behaviour by substituting + a 'build = false' line instead. + + We do have syntex vendored, but we don't currently build + it by default, so I prefer this solution to just vendoring + cheddar and generating the header at build time. The syntex + crate is quite large and adds significantly to our compile + time. + + MozReview-Commit-ID: InJRRODWAdP + + --HG-- + extra : rebase_source : 29378fcbc86015ce6cc22dc66d38a43ddbac204e +--- + media/libstagefright/binding/mp4parse-cargo.patch | 5 +++-- + media/libstagefright/binding/mp4parse_capi/Cargo.toml | 2 ++ + 2 files changed, 5 insertions(+), 2 deletions(-) + +diff --git media/libstagefright/binding/mp4parse-cargo.patch media/libstagefright/binding/mp4parse-cargo.patch +index 1dd13d20472a..bfa0ab74b424 100644 +--- mozilla/media/libstagefright/binding/mp4parse-cargo.patch ++++ mozilla/media/libstagefright/binding/mp4parse-cargo.patch +@@ -25,12 +25,13 @@ diff --git a/media/libstagefright/binding/mp4parse_cap + index aeeebc65..5c0836a 100644 + --- a/media/libstagefright/binding/mp4parse_capi/Cargo.toml + +++ b/media/libstagefright/binding/mp4parse_capi/Cargo.toml +-@@ -18,17 +18,9 @@ exclude = [ ++@@ -18,17 +18,11 @@ exclude = [ + "*.mp4", + ] + + -build = "build.rs" +-- +++build = false ++ + [dependencies] + "mp4parse" = {version = "0.6.0", path = "../mp4parse"} + +diff --git media/libstagefright/binding/mp4parse_capi/Cargo.toml media/libstagefright/binding/mp4parse_capi/Cargo.toml +index aee7ee947151..d7e3f55119d3 100644 +--- mozilla/media/libstagefright/binding/mp4parse_capi/Cargo.toml ++++ mozilla/media/libstagefright/binding/mp4parse_capi/Cargo.toml +@@ -18,6 +18,8 @@ exclude = [ + "*.mp4", + ] + ++build = false ++ + [dependencies] + byteorder = "1.0.0" + "mp4parse" = {version = "0.6.0", path = "../mp4parse"} Added: head/www/firefox-esr/files/patch-bug1338655 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/firefox-esr/files/patch-bug1338655 Tue May 2 03:43:15 2017 (r439925) @@ -0,0 +1,66 @@ +commit bbd48a5613c8 +Author: Ralph Giles +Date: Fri Feb 10 12:58:18 2017 -0800 + + Bug 1338655 - Don't try to build mp4parse bindings. r=froydnj + + We use the cheddar crate to generate a C header file + for our mp4parse_capi wrapper crate. Currently we + do this at code check-in time via update-rust.sh. + + Cargo 0.18 and later will try to execute a build.rs + file in the crate source tree regardless of whether + it's specified in Cargo.toml so patching out that + line just results in 'crate cheddar not found'. + + This change restores the old behaviour by substituting + a 'build = false' line instead. + + We do have syntex vendored, but we don't currently build + it by default, so I prefer this solution to just vendoring + cheddar and generating the header at build time. The syntex + crate is quite large and adds significantly to our compile + time. + + MozReview-Commit-ID: InJRRODWAdP + + --HG-- + extra : rebase_source : 29378fcbc86015ce6cc22dc66d38a43ddbac204e +--- + media/libstagefright/binding/mp4parse-cargo.patch | 5 +++-- + media/libstagefright/binding/mp4parse_capi/Cargo.toml | 2 ++ + 2 files changed, 5 insertions(+), 2 deletions(-) + +diff --git media/libstagefright/binding/mp4parse-cargo.patch media/libstagefright/binding/mp4parse-cargo.patch +index 1dd13d20472a..bfa0ab74b424 100644 +--- media/libstagefright/binding/mp4parse-cargo.patch ++++ media/libstagefright/binding/mp4parse-cargo.patch +@@ -25,12 +25,13 @@ diff --git a/media/libstagefright/binding/mp4parse_cap + index aeeebc65..5c0836a 100644 + --- a/media/libstagefright/binding/mp4parse_capi/Cargo.toml + +++ b/media/libstagefright/binding/mp4parse_capi/Cargo.toml +-@@ -18,17 +18,9 @@ exclude = [ ++@@ -18,17 +18,11 @@ exclude = [ + "*.mp4", + ] + + -build = "build.rs" +-- +++build = false ++ + [dependencies] + "mp4parse" = {version = "0.6.0", path = "../mp4parse"} + +diff --git media/libstagefright/binding/mp4parse_capi/Cargo.toml media/libstagefright/binding/mp4parse_capi/Cargo.toml +index aee7ee947151..d7e3f55119d3 100644 +--- media/libstagefright/binding/mp4parse_capi/Cargo.toml ++++ media/libstagefright/binding/mp4parse_capi/Cargo.toml +@@ -18,6 +18,8 @@ exclude = [ + "*.mp4", + ] + ++build = false ++ + [dependencies] + byteorder = "1.0.0" + "mp4parse" = {version = "0.6.0", path = "../mp4parse"} Added: head/www/firefox/files/patch-bug1338655 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/firefox/files/patch-bug1338655 Tue May 2 03:43:15 2017 (r439925) @@ -0,0 +1,66 @@ +commit bbd48a5613c8 +Author: Ralph Giles +Date: Fri Feb 10 12:58:18 2017 -0800 + + Bug 1338655 - Don't try to build mp4parse bindings. r=froydnj + + We use the cheddar crate to generate a C header file + for our mp4parse_capi wrapper crate. Currently we + do this at code check-in time via update-rust.sh. + + Cargo 0.18 and later will try to execute a build.rs + file in the crate source tree regardless of whether + it's specified in Cargo.toml so patching out that + line just results in 'crate cheddar not found'. + + This change restores the old behaviour by substituting + a 'build = false' line instead. + + We do have syntex vendored, but we don't currently build + it by default, so I prefer this solution to just vendoring + cheddar and generating the header at build time. The syntex + crate is quite large and adds significantly to our compile + time. + + MozReview-Commit-ID: InJRRODWAdP + + --HG-- + extra : rebase_source : 29378fcbc86015ce6cc22dc66d38a43ddbac204e +--- + media/libstagefright/binding/mp4parse-cargo.patch | 5 +++-- + media/libstagefright/binding/mp4parse_capi/Cargo.toml | 2 ++ + 2 files changed, 5 insertions(+), 2 deletions(-) + +diff --git media/libstagefright/binding/mp4parse-cargo.patch media/libstagefright/binding/mp4parse-cargo.patch +index 1dd13d20472a..bfa0ab74b424 100644 +--- media/libstagefright/binding/mp4parse-cargo.patch ++++ media/libstagefright/binding/mp4parse-cargo.patch +@@ -27,12 +27,13 @@ diff --git a/media/libstagefright/binding/mp4parse_capi/Cargo.toml b/media/libst + index aeeebc65..5c0836a 100644 + --- a/media/libstagefright/binding/mp4parse_capi/Cargo.toml + +++ b/media/libstagefright/binding/mp4parse_capi/Cargo.toml +-@@ -18,18 +18,10 @@ exclude = [ ++@@ -18,18 +18,12 @@ exclude = [ + "*.mp4", + ] + + -build = "build.rs" +-- +++build = false ++ + [dependencies] + byteorder = "1.0.0" + "mp4parse" = {version = "0.6.0", path = "../mp4parse"} +diff --git media/libstagefright/binding/mp4parse_capi/Cargo.toml media/libstagefright/binding/mp4parse_capi/Cargo.toml +index aee7ee947151..d7e3f55119d3 100644 +--- media/libstagefright/binding/mp4parse_capi/Cargo.toml ++++ media/libstagefright/binding/mp4parse_capi/Cargo.toml +@@ -18,6 +18,8 @@ exclude = [ + "*.mp4", + ] + ++build = false ++ + [dependencies] + byteorder = "1.0.0" + "mp4parse" = {version = "0.6.0", path = "../mp4parse"}