sysutils/reptyr: update to 0.8.0

This update includes support for reptyr -T on FreeBSD, along with a flurry
of fixes for running on FreeBSD and all patches from the ports tree have
been applied upstream.

PR:		249994
Approved by:	andoriyu@gmail.com (maintainer)
This commit is contained in:
Kyle Evans 2020-09-30 00:13:09 +00:00
parent 00cbc5f1b5
commit e7bae0c686
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=550633
4 changed files with 5 additions and 57 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= reptyr
PORTVERSION= 0.6.3a
PORTREVISION= 2
PORTVERSION= 0.8.0
CATEGORIES= sysutils
MAINTAINER= andoriyu@gmail.com
@ -13,7 +12,7 @@ LICENSE= MIT
USE_GITHUB= yes
GH_ACCOUNT= nelhage
GH_TAGNAME= 6fb15adb4552e170bcd5e648803da83dba57283b
GH_TAGNAME= reptyr-${PORTVERSION}
MAKE_ARGS= BASHCOMPDIR=${PREFIX}/share/bash-completion/completions \
MANDIR=${MANPREFIX}/man

View File

@ -1,2 +1,3 @@
SHA256 (nelhage-reptyr-0.6.3a-6fb15adb4552e170bcd5e648803da83dba57283b_GH0.tar.gz) = 9ee7983de2f4ab8bb56e3fdbcaad20d03733e75befb34003f95eddaface655f8
SIZE (nelhage-reptyr-0.6.3a-6fb15adb4552e170bcd5e648803da83dba57283b_GH0.tar.gz) = 28883
TIMESTAMP = 1601416039
SHA256 (nelhage-reptyr-0.8.0-reptyr-0.8.0_GH0.tar.gz) = 4b470ed2a0d25fed591739fa9613ce7ad3d0377891eb56cbe914e3c85db46ca8
SIZE (nelhage-reptyr-0.8.0-reptyr-0.8.0_GH0.tar.gz) = 32239

View File

@ -1,36 +0,0 @@
commit 308f60064fee6d5707514b65f6acad656a8a4feb
Author: Raphael Kubo da Costa <rakuco@FreeBSD.org>
Date: Tue Feb 2 19:04:11 2016 +0100
FreeBSD: Do not try to cast NULL to int.
Passing NULL to the data parameter in calls to ptrace(2) causes failures
on 64-bit FreeBSD 9 installations, where GCC 4.2.1 complains like this:
platform/freebsd/arch/x86_common.h: In function 'arch_get_register':
platform/freebsd/arch/x86_common.h:48: warning: cast from pointer to integer of different size
platform/freebsd/arch/x86_common.h: In function 'arch_set_register':
platform/freebsd/arch/x86_common.h:57: warning: cast from pointer to integer of different size
platform/freebsd/arch/x86_common.h:59: warning: cast from pointer to integer of different size
platform/freebsd/freebsd_ptrace.c: In function 'ptrace_memcpy_to_child':
platform/freebsd/freebsd_ptrace.c:267: warning: cast from pointer to integer of different size
platform/freebsd/freebsd_ptrace.c: In function 'ptrace_memcpy_from_child':
platform/freebsd/freebsd_ptrace.c:282: warning: cast from pointer to integer of different size
Make ptrace_command pass 0 to _ptrace_command so that the final
expansion looks like this:
__ptrace_command((cld), (req), (void*)(addr), (int)(0))
instead of
__ptrace_command((cld), (req), (void*)(addr), (int)(((void*)0)))
--- platform/freebsd/freebsd_ptrace.c
+++ platform/freebsd/freebsd_ptrace.c
@@ -47,7 +47,7 @@
static int __ptrace_command(struct ptrace_child *child, int req,
void *, int);
-#define ptrace_command(cld, req, ...) _ptrace_command(cld, req, ## __VA_ARGS__, NULL, NULL)
+#define ptrace_command(cld, req, ...) _ptrace_command(cld, req, ## __VA_ARGS__, 0, 0)
#define _ptrace_command(cld, req, addr, data, ...) __ptrace_command((cld), (req), (void*)(addr), (int)(data))

View File

@ -1,16 +0,0 @@
Fix the build on FreeBSD 9:
cc1: warnings being treated as errors
platform/freebsd/freebsd.c: In function 'check_proc_stopped':
platform/freebsd/freebsd.c:57: warning: 'state' may be used uninitialized in this function
--- platform/freebsd/freebsd.c.orig 2015-06-05 21:41:48 UTC
+++ platform/freebsd/freebsd.c
@@ -54,7 +54,7 @@ int check_pgroup(pid_t target) {
int check_proc_stopped(pid_t pid, int fd) {
struct procstat *procstat;
struct kinfo_proc *kp;
- int state;
+ int state = 0;
unsigned int cnt;
procstat = procstat_open_sysctl();