FreeBSD Bugzilla – Attachment 187212 Details for
Bug 223047
lang/rust: unbreak FFI for returning structs on i386
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v0
rust.i386.ffi.struct.diff (text/plain), 1.71 KB, created by
Jan Beich
on 2017-10-16 11:22:15 UTC
(
hide
)
Description:
v0
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2017-10-16 11:22:15 UTC
Size:
1.71 KB
patch
obsolete
>From 8ec61a66d02285411541b8df9b6f2e24080c0859 Mon Sep 17 00:00:00 2001 >From: Jan Beich <jbeich@FreeBSD.org> >Date: Mon, 16 Oct 2017 10:06:28 +0000 >Subject: [PATCH] lang/rust: unbreak FFI for returning structs on i386 > >PR: 223047 >Suggested by: Sebastien Marie <semarie@openbsd.org> >Approved by: rust (dumbbell || riggs) !!! NOT YET !!! >MFH: 2017Q4 >--- > lang/rust/Makefile | 1 + > .../files/patch-src_librustc__back_target_freebsd__base.rs | 12 ++++++++++++ > 2 files changed, 13 insertions(+) > create mode 100644 lang/rust/files/patch-src_librustc__back_target_freebsd__base.rs > >diff --git a/lang/rust/Makefile b/lang/rust/Makefile >index 7c394d37e7dd..653c448bed4a 100644 >--- a/lang/rust/Makefile >+++ b/lang/rust/Makefile >@@ -3,6 +3,7 @@ > > PORTNAME= rust > PORTVERSION?= 1.20.0 >+PORTREVISION= 1 > CATEGORIES= lang > MASTER_SITES= http://static.rust-lang.org/dist/:src \ > https://static.rust-lang.org/dist/:rust_bootstrap \ >diff --git a/lang/rust/files/patch-src_librustc__back_target_freebsd__base.rs b/lang/rust/files/patch-src_librustc__back_target_freebsd__base.rs >new file mode 100644 >index 000000000000..7f4a6160e648 >--- /dev/null >+++ b/lang/rust/files/patch-src_librustc__back_target_freebsd__base.rs >@@ -0,0 +1,12 @@ >+Return struct similar to OpenBSD >+ >+--- src/librustc_back/target/freebsd_base.rs.orig 2017-07-17 22:10:50 UTC >++++ src/librustc_back/target/freebsd_base.rs >+@@ -31,6 +31,7 @@ pub fn opts() -> TargetOptions { >+ target_family: Some("unix".to_string()), >+ linker_is_gnu: true, >+ has_rpath: true, >++ is_like_openbsd: true, >+ pre_link_args: args, >+ position_independent_executables: true, >+ exe_allocation_crate: super::maybe_jemalloc(),
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 223047
:
187212
|
187394