Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148695668
D11574.1788131299.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D11574.1788131299.diff
View Options
Index: head/lang/rust/Makefile
===================================================================
--- head/lang/rust/Makefile
+++ head/lang/rust/Makefile
@@ -3,6 +3,7 @@
PORTNAME= rust
PORTVERSION?= 1.19.0
+PORTREVISION?= 1
CATEGORIES= lang
MASTER_SITES= http://static.rust-lang.org/dist/:src \
https://static.rust-lang.org/dist/:rust_bootstrap \
Index: head/lang/rust/files/patch-src_libbacktrace_fileline.c
===================================================================
--- head/lang/rust/files/patch-src_libbacktrace_fileline.c
+++ head/lang/rust/files/patch-src_libbacktrace_fileline.c
@@ -0,0 +1,42 @@
+--- src/libbacktrace/fileline.c.orig 2017-06-06 00:42:59 UTC
++++ src/libbacktrace/fileline.c
+@@ -38,8 +38,39 @@ POSSIBILITY OF SUCH DAMAGE. */
+ #include <fcntl.h>
+ #include <stdlib.h>
+
++#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__)
++#include <sys/sysctl.h>
++#include <limits.h>
++#endif
++
+ #include "backtrace.h"
+ #include "internal.h"
++
++#if !defined(HAVE_GETEXECNAME) && defined(KERN_PROC_PATHNAME)
++/* Return pathname of executable or 0 on failure. */
++#define HAVE_GETEXECNAME
++static char execname[PATH_MAX + 1];
++static const char *
++getexecname(void)
++{
++ size_t path_len = sizeof(execname);
++ int mib[] = {
++ CTL_KERN,
++#if defined(__NetBSD__)
++ KERN_PROC_ARGS,
++ -1,
++ KERN_PROC_PATHNAME,
++#else
++ KERN_PROC,
++ KERN_PROC_PATHNAME,
++ -1,
++#endif
++ };
++ u_int miblen = sizeof(mib) / sizeof(mib[0]);
++ int rc = sysctl(mib, miblen, execname, &path_len, NULL, 0);
++ return rc ? NULL : execname;
++}
++#endif /* !HAVE_GETEXECNAME && KERN_PROC_PATHNAME */
+
+ #ifndef HAVE_GETEXECNAME
+ #define getexecname() NULL
Index: head/lang/rust/pkg-message
===================================================================
--- head/lang/rust/pkg-message
+++ head/lang/rust/pkg-message
@@ -1,12 +0,0 @@
-======================================================================
-
-Printing Rust backtraces requires procfs(5) mounted on /proc .
-If you have not already done so, please do the following:
-
- mount -t procfs proc /proc
-
-To make it permanent, you need the following lines in /etc/fstab:
-
- proc /proc procfs rw 0 0
-
-======================================================================
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 30, 11:08 PM (11 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29488832
Default Alt Text
D11574.1788131299.diff (2 KB)
Attached To
Mode
D11574: lang/rust: drop /proc usage for RUST_BACKTRACE
Attached
Detach File
Event Timeline
Log In to Comment