svn commit: r508839 - head/graphics/svgbob/files
Jan Beich
jbeich at FreeBSD.org
Wed Aug 14 07:17:36 UTC 2019
Tobias Kortkamp <tobik at FreeBSD.org> writes:
> Author: tobik
> Date: Tue Aug 13 17:43:08 2019
> New Revision: 508839
> URL: https://svnweb.freebsd.org/changeset/ports/508839
>
> Log:
> graphics/svgbob: Unbreak with Rust 1.37.0
[...]
> Remove #![deny(warnings)] (basically the equivalent to -Werror in
> C/C++) to fix the build with Rust 1.37.0 or greater.
If you can't convince upstream to drop #![deny(warnings)] in favor of
-Dwarnings specified by automation maybe pass --cap-lints warn to avoid
patch churn on updates. Probably doesn't matter much in this port.
Index: graphics/svgbob/Makefile
===================================================================
--- graphics/svgbob/Makefile (revision 508894)
+++ graphics/svgbob/Makefile (working copy)
@@ -14,6 +14,7 @@ USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= ivanceras
GH_TAGNAME= c3e84c87094550d8cdc6fc48b40a00712b2951cb
+RUSTFLAGS+= --cap-lints warn # ignore #![deny(warnings)]
CARGO_CRATES= ansi_term-0.11.0 \
atty-0.2.11 \
Index: graphics/svgbob/files/patch-src_main.rs
===================================================================
--- graphics/svgbob/files/patch-src_main.rs (revision 508894)
+++ graphics/svgbob/files/patch-src_main.rs (nonexistent)
@@ -1,41 +0,0 @@
-error: the item `exit` is imported redundantly
- --> src/main.rs:86:25
- |
-16 | use std::process::exit;
- | ------------------ the item `exit` is already imported here
-...
-86 | use std::process::exit;
- | ^^^^^^^^^^^^^^^^^^
- |
-
---- src/main.rs.orig 2019-04-12 08:16:01 UTC
-+++ src/main.rs
-@@ -1,4 +1,3 @@
--#![deny(warnings)]
- #[macro_use]
- extern crate clap;
-
-@@ -83,7 +82,6 @@ fn main() {
- }
- Err(e) => {
- use std::io::Write;
-- use std::process::exit;
-
- writeln!(
- &mut std::io::stderr(),
-@@ -124,7 +122,6 @@ fn main() {
- if let Some(file) = args.value_of("output") {
- if let Err(e) = svg::save(file, &svg) {
- use std::io::Write;
-- use std::process::exit;
-
- writeln!(
- &mut std::io::stderr(),
-@@ -148,7 +145,6 @@ where
- Ok(a) => Some(a),
- Err(e) => {
- use std::io::Write;
-- use std::process::exit;
-
- writeln!(
- &mut std::io::stderr(),
Property changes on: graphics/svgbob/files/patch-src_main.rs
___________________________________________________________________
Deleted: fbsd:nokeywords
## -1 +0,0 ##
-yes
\ No newline at end of property
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
More information about the svn-ports-all
mailing list