FreeBSD Bugzilla – Attachment 225446 Details for
Bug 256330
devel/delve: Update to 1.6.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
delve.diff
delve.diff (text/plain), 2.85 KB, created by
Dmitry Wagin
on 2021-06-01 09:19:39 UTC
(
hide
)
Description:
delve.diff
Filename:
MIME Type:
Creator:
Dmitry Wagin
Created:
2021-06-01 09:19:39 UTC
Size:
2.85 KB
patch
obsolete
>diff --git a/devel/delve/Makefile b/devel/delve/Makefile >index 343b33aec..226c7bf03 100644 >--- a/devel/delve/Makefile >+++ b/devel/delve/Makefile >@@ -1,6 +1,6 @@ > PORTNAME= delve > DISTVERSIONPREFIX= v >-DISTVERSION= 1.6.0 >+DISTVERSION= 1.6.1 > CATEGORIES= devel > > MAINTAINER= dmitry.wagin@ya.ru >diff --git a/devel/delve/distinfo b/devel/delve/distinfo >index 3d05feb72..75c3386e7 100644 >--- a/devel/delve/distinfo >+++ b/devel/delve/distinfo >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1612113058 >-SHA256 (go-delve-delve-v1.6.0_GH0.tar.gz) = a10a6fc40d87572c6d3f3becdb1a289269e17526d038749f2fa04dd9f591f26a >-SIZE (go-delve-delve-v1.6.0_GH0.tar.gz) = 7629850 >+TIMESTAMP = 1622023017 >+SHA256 (go-delve-delve-v1.6.1_GH0.tar.gz) = e73f7fc063632268d3bdf53486aeafd98cceb8f86f4af56903dedfebaefe690d >+SIZE (go-delve-delve-v1.6.1_GH0.tar.gz) = 7686466 >diff --git a/devel/delve/files/patch-pkg_proc_native_proc__freebsd.c b/devel/delve/files/patch-pkg_proc_native_proc__freebsd.c >new file mode 100644 >index 000000000..dc77c6b35 >--- /dev/null >+++ b/devel/delve/files/patch-pkg_proc_native_proc__freebsd.c >@@ -0,0 +1,52 @@ >+--- pkg/proc/native/proc_freebsd.c.orig 2021-05-19 07:24:05 UTC >++++ pkg/proc/native/proc_freebsd.c >+@@ -3,11 +3,13 @@ >+ #include <sys/queue.h> >+ #include <sys/sysctl.h> >+ #include <sys/user.h> >++#include <sys/types.h> >+ >+ #include <libprocstat.h> >+ #include <libutil.h> >+ #include <stdlib.h> >+ #include <string.h> >++#include <errno.h> >+ >+ #include "proc_freebsd.h" >+ >+@@ -66,21 +68,23 @@ int find_status(int pid){ >+ return (status); >+ } >+ >+-int get_entry_point(int pid) { >++uintptr_t get_entry_point(int pid) { >+ void *ep = NULL; >+ >++ errno = EINVAL; >++ >+ struct procstat *ps = procstat_open_sysctl(); >+ if (ps == NULL) >+- return -1; >++ return 0; >+ >+ uint cnt = 0; >+ struct kinfo_proc *kipp = procstat_getprocs(ps, KERN_PROC_PID, pid, &cnt); >+ if (cnt == 0) >+- return -1; >++ return 0; >+ >+ Elf_Auxinfo *auxv = procstat_getauxv(ps, kipp, &cnt); >+ if (auxv == NULL) >+- return -1; >++ return 0; >+ >+ for (int i = 0; i < cnt; i++) { >+ if (auxv[i].a_type == AT_ENTRY) { >+@@ -89,5 +93,6 @@ int get_entry_point(int pid) { >+ } >+ } >+ procstat_freeauxv(ps, auxv); >+- return (int)ep; >++ errno = 0; >++ return (uintptr_t)ep; >+ } >diff --git a/devel/delve/files/patch-pkg_proc_native_proc__freebsd.h b/devel/delve/files/patch-pkg_proc_native_proc__freebsd.h >new file mode 100644 >index 000000000..c5ef91004 >--- /dev/null >+++ b/devel/delve/files/patch-pkg_proc_native_proc__freebsd.h >@@ -0,0 +1,10 @@ >+--- pkg/proc/native/proc_freebsd.h.orig 2021-05-19 07:24:05 UTC >++++ pkg/proc/native/proc_freebsd.h >+@@ -1,4 +1,6 @@ >++#include <sys/types.h> >++ >+ char * find_command_name(int pid); >+ char * find_executable(int pid); >+ int find_status(int pid); >+-int get_entry_point(int pid); >++uintptr_t get_entry_point(int pid);
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
Flags:
dmitry.wagin
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 256330
: 225446