From owner-svn-ports-head@freebsd.org Sat Apr 7 02:02:07 2018 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 A9404F9AC8B; Sat, 7 Apr 2018 02:02:07 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5752E81F15; Sat, 7 Apr 2018 02:02:07 +0000 (UTC) (envelope-from swills@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 525881A4FB; Sat, 7 Apr 2018 02:02:07 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w37227MK029335; Sat, 7 Apr 2018 02:02:07 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w37227lF029333; Sat, 7 Apr 2018 02:02:07 GMT (envelope-from swills@FreeBSD.org) Message-Id: <201804070202.w37227lF029333@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Sat, 7 Apr 2018 02:02:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r466704 - in head/sysutils/p5-BSD-Process: . files X-SVN-Group: ports-head X-SVN-Commit-Author: swills X-SVN-Commit-Paths: in head/sysutils/p5-BSD-Process: . files X-SVN-Commit-Revision: 466704 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 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: Sat, 07 Apr 2018 02:02:07 -0000 Author: swills Date: Sat Apr 7 02:02:06 2018 New Revision: 466704 URL: https://svnweb.freebsd.org/changeset/ports/466704 Log: sysutils/p5-BSD-Process: fix seg fault on 11.1 and newer PR: 227104 Reported by: Barrie Modified: head/sysutils/p5-BSD-Process/Makefile (contents, props changed) head/sysutils/p5-BSD-Process/files/patch-Process.xs (contents, props changed) Modified: head/sysutils/p5-BSD-Process/Makefile ============================================================================== --- head/sysutils/p5-BSD-Process/Makefile Sat Apr 7 01:44:11 2018 (r466703) +++ head/sysutils/p5-BSD-Process/Makefile Sat Apr 7 02:02:06 2018 (r466704) @@ -3,7 +3,7 @@ PORTNAME= BSD-Process PORTVERSION= 0.07 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils perl5 MASTER_SITES= CPAN MASTER_SITE_SUBDIR= CPAN:DLAND Modified: head/sysutils/p5-BSD-Process/files/patch-Process.xs ============================================================================== --- head/sysutils/p5-BSD-Process/files/patch-Process.xs Sat Apr 7 01:44:11 2018 (r466703) +++ head/sysutils/p5-BSD-Process/files/patch-Process.xs Sat Apr 7 02:02:06 2018 (r466704) @@ -1,6 +1,6 @@ --- Process.xs.orig 2013-06-22 16:19:28 UTC +++ Process.xs -@@ -291,7 +291,12 @@ HV *_procinfo (struct kinfo_proc *kp, in +@@ -291,7 +291,12 @@ HV *_procinfo (struct kinfo_proc *kp, int resolve) { hv_store(h, "advlock", 7, newSViv(NO_FREEBSD_4x(P_FLAG(P_ADVLOCK))), 0); hv_store(h, "controlt", 8, newSViv(NO_FREEBSD_4x(P_FLAG(P_CONTROLT))), 0); @@ -13,3 +13,11 @@ #if __FreeBSD_version < 802501 hv_store(h, "noload", 6, newSViv(NO_FREEBSD_4x(P_FLAG(P_NOLOAD))), 0); #endif +@@ -441,6 +446,7 @@ _list(int request, int param) + kip = _proc_request(kd, request, param, &nr); + if (kip) { + int p; ++ EXTEND(SP,nr); + for (p = 0; p < nr; ++kip, ++p) { + #if PERL_API_VERSION == 5 && PERL_VERSION == 6 + EXTEND(SP,1);