From owner-svn-ports-head@freebsd.org Sun Feb 2 10:54:21 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CA300228359; Sun, 2 Feb 2020 10:54:21 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 489SWd4tGlz3LHX; Sun, 2 Feb 2020 10:54:21 +0000 (UTC) (envelope-from sunpoet@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 A2CACEC3E; Sun, 2 Feb 2020 10:54:21 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 012AsLaG071781; Sun, 2 Feb 2020 10:54:21 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 012AsKsh071776; Sun, 2 Feb 2020 10:54:20 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <202002021054.012AsKsh071776@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sun, 2 Feb 2020 10:54:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r524839 - in head/devel: . p5-B-COW X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/devel: . p5-B-COW X-SVN-Commit-Revision: 524839 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.29 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: Sun, 02 Feb 2020 10:54:21 -0000 Author: sunpoet Date: Sun Feb 2 10:54:20 2020 New Revision: 524839 URL: https://svnweb.freebsd.org/changeset/ports/524839 Log: Add p5-B-COW 0.002 B::COW provides some naive additional B helpers to check the COW status of one SvPV. A COWed SvPV is sharing its string (the PV) with other SvPVs. It's a (kind of) Read Only C string, that would be Copied On Write (COW). More than one SV can share the same PV, but when one PV need to alter it, it would perform a copy of it, decrease the COWREFCNT counter. One SV can then drop the COW flag when it's the only one holding a pointer to the PV. The COWREFCNT is stored at the end of the PV, after the the "\0". That value is limited to 255, when we reach 255, a new PV would be created, WWW: https://metacpan.org/release/B-COW Added: head/devel/p5-B-COW/ head/devel/p5-B-COW/Makefile (contents, props changed) head/devel/p5-B-COW/distinfo (contents, props changed) head/devel/p5-B-COW/pkg-descr (contents, props changed) head/devel/p5-B-COW/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sun Feb 2 10:46:40 2020 (r524838) +++ head/devel/Makefile Sun Feb 2 10:54:20 2020 (r524839) @@ -1747,6 +1747,7 @@ SUBDIR += p5-AutoLoader SUBDIR += p5-AutoXS-Header SUBDIR += p5-B-C + SUBDIR += p5-B-COW SUBDIR += p5-B-Compiling SUBDIR += p5-B-Deobfuscate SUBDIR += p5-B-Flags Added: head/devel/p5-B-COW/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-B-COW/Makefile Sun Feb 2 10:54:20 2020 (r524839) @@ -0,0 +1,23 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= B-COW +PORTVERSION= 0.002 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Additional B helpers to check COW status + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= perl5 +USE_PERL5= configure + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/B/COW/COW.so + +.include Added: head/devel/p5-B-COW/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-B-COW/distinfo Sun Feb 2 10:54:20 2020 (r524839) @@ -0,0 +1,3 @@ +TIMESTAMP = 1580562231 +SHA256 (B-COW-0.002.tar.gz) = fce7738147ef00bd342575d942d469d4a0002740ed6cdd73f121ef12bae8577c +SIZE (B-COW-0.002.tar.gz) = 18194 Added: head/devel/p5-B-COW/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-B-COW/pkg-descr Sun Feb 2 10:54:20 2020 (r524839) @@ -0,0 +1,12 @@ +B::COW provides some naive additional B helpers to check the COW status of one +SvPV. + +A COWed SvPV is sharing its string (the PV) with other SvPVs. It's a (kind of) +Read Only C string, that would be Copied On Write (COW). More than one SV can +share the same PV, but when one PV need to alter it, it would perform a copy of +it, decrease the COWREFCNT counter. One SV can then drop the COW flag when it's +the only one holding a pointer to the PV. The COWREFCNT is stored at the end of +the PV, after the the "\0". That value is limited to 255, when we reach 255, a +new PV would be created, + +WWW: https://metacpan.org/release/B-COW Added: head/devel/p5-B-COW/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-B-COW/pkg-plist Sun Feb 2 10:54:20 2020 (r524839) @@ -0,0 +1,3 @@ +%%SITE_ARCH%%/B/COW.pm +%%SITE_ARCH%%/auto/B/COW/COW.so +%%PERL5_MAN3%%/B::COW.3.gz