From owner-svn-ports-head@freebsd.org Thu May 23 06:32:46 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 77A3C159E65E; Thu, 23 May 2019 06:32:46 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 08ABD858F6; Thu, 23 May 2019 06:32:46 +0000 (UTC) (envelope-from tobik@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D12FC115B; Thu, 23 May 2019 06:32:45 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x4N6WjKu089426; Thu, 23 May 2019 06:32:45 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x4N6Wjdl089425; Thu, 23 May 2019 06:32:45 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201905230632.x4N6Wjdl089425@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Thu, 23 May 2019 06:32:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r502314 - in head/shells/ion: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/shells/ion: . files X-SVN-Commit-Revision: 502314 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 08ABD858F6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.96)[-0.962,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 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: Thu, 23 May 2019 06:32:46 -0000 Author: tobik Date: Thu May 23 06:32:45 2019 New Revision: 502314 URL: https://svnweb.freebsd.org/changeset/ports/502314 Log: shells/ion: Attempt to fix build on powerpc64 http://pylon.nyi.freebsd.org/data/head-powerpc64-default/p501607_s347555/logs/errors/ion-shell-1.0.5.900_1.log Added: head/shells/ion/files/ head/shells/ion/files/patch-cargo-crates_decimal-2.0.4_src_dec128.rs (contents, props changed) Modified: head/shells/ion/Makefile Modified: head/shells/ion/Makefile ============================================================================== --- head/shells/ion/Makefile Thu May 23 06:18:25 2019 (r502313) +++ head/shells/ion/Makefile Thu May 23 06:32:45 2019 (r502314) @@ -12,7 +12,8 @@ COMMENT= Modern system shell written in Rust LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -USES= cargo +USES= cargo dos2unix +DOS2UNIX_FILES= cargo-crates/decimal-2.0.4/src/dec128.rs USE_GITHUB= nodefault GH_TUPLE= whitequark:rust-xdg:9b205b3cc5d12dc8678dceebb1b751d0176118db:xdg USE_GITLAB= yes Added: head/shells/ion/files/patch-cargo-crates_decimal-2.0.4_src_dec128.rs ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/shells/ion/files/patch-cargo-crates_decimal-2.0.4_src_dec128.rs Thu May 23 06:32:45 2019 (r502314) @@ -0,0 +1,62 @@ +Allow build on aarch64 and maybe powerpc64 + +https://github.com/alkis/decimal/commit/5577a60b9b8860a322288856ff2419c191ed080f + +error[E0308]: mismatched types + --> .../cargo-crates/decimal-2.0.4/src/dec128.rs:229:35 + | +229 | decQuadToString(self, buf.as_mut().as_mut_ptr()); + | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected u8, found i8 + | + = note: expected type `*mut u8` + found type `*mut i8` + +error[E0308]: mismatched types + --> .../cargo-crates/decimal-2.0.4/src/dec128.rs:230:39 + | +230 | let cstr = CStr::from_ptr(buf.as_ptr()); + | ^^^^^^^^^^^^ expected u8, found i8 + | + = note: expected type `*const u8` + found type `*const i8` + +error[E0308]: mismatched types + --> .../cargo-crates/decimal-2.0.4/src/dec128.rs:249:38 + | +249 | decQuadToEngString(self, buf.as_mut().as_mut_ptr()); + | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected u8, found i8 + | + = note: expected type `*mut u8` + found type `*mut i8` + +error[E0308]: mismatched types + --> .../cargo-crates/decimal-2.0.4/src/dec128.rs:250:39 + | +250 | let cstr = CStr::from_ptr(buf.as_ptr()); + | ^^^^^^^^^^^^ expected u8, found i8 + | + = note: expected type `*const u8` + found type `*const i8` + +error: aborting due to 4 previous errors + +--- cargo-crates/decimal-2.0.4/src/dec128.rs.orig 2019-05-23 06:18:16 UTC ++++ cargo-crates/decimal-2.0.4/src/dec128.rs +@@ -224,7 +224,7 @@ impl Into for d128 { + /// payload is 0. + impl fmt::Display for d128 { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { +- let mut buf = [0 as i8; 43]; ++ let mut buf = [0; 43]; + unsafe { + decQuadToString(self, buf.as_mut().as_mut_ptr()); + let cstr = CStr::from_ptr(buf.as_ptr()); +@@ -244,7 +244,7 @@ impl fmt::Debug for d128 { + /// exponential notation is used the exponent will be a multiple of 3. + impl fmt::LowerExp for d128 { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { +- let mut buf = [0 as i8; 43]; ++ let mut buf = [0; 43]; + unsafe { + decQuadToEngString(self, buf.as_mut().as_mut_ptr()); + let cstr = CStr::from_ptr(buf.as_ptr());