pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/p5-B-COW



Module Name:    pkgsrc
Committed By:   mef
Date:           Sun Apr 26 13:31:28 UTC 2020

Added Files:
        pkgsrc/devel/p5-B-COW: DESCR Makefile PLIST distinfo

Log Message:
(devel/p5-B-COW) import p5-B-COW-0.004

B::COW provides some naive additional B helpers to check the COW
status of one SvPV.  COW or Copy On Write introduction

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,


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/p5-B-COW/DESCR \
    pkgsrc/devel/p5-B-COW/Makefile pkgsrc/devel/p5-B-COW/PLIST \
    pkgsrc/devel/p5-B-COW/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/p5-B-COW/DESCR
diff -u /dev/null pkgsrc/devel/p5-B-COW/DESCR:1.1
--- /dev/null   Sun Apr 26 13:31:28 2020
+++ pkgsrc/devel/p5-B-COW/DESCR Sun Apr 26 13:31:28 2020
@@ -0,0 +1,16 @@
+B::COW provides some naive additional B helpers to check the COW
+status of one SvPV.  COW or Copy On Write introduction
+
+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,
Index: pkgsrc/devel/p5-B-COW/Makefile
diff -u /dev/null pkgsrc/devel/p5-B-COW/Makefile:1.1
--- /dev/null   Sun Apr 26 13:31:28 2020
+++ pkgsrc/devel/p5-B-COW/Makefile      Sun Apr 26 13:31:28 2020
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2020/04/26 13:31:28 mef Exp $
+
+DISTNAME=      B-COW-0.004
+PKGNAME=       p5-${DISTNAME}
+CATEGORIES=    devel perl5
+MASTER_SITES=  https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/
+COMMENT=       Some naive additional B helpers to check the COW status of one SvPV
+LICENSE=       ${PERL5_LICENSE}
+
+PERL5_PACKLIST=        auto/B/COW/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/p5-B-COW/PLIST
diff -u /dev/null pkgsrc/devel/p5-B-COW/PLIST:1.1
--- /dev/null   Sun Apr 26 13:31:28 2020
+++ pkgsrc/devel/p5-B-COW/PLIST Sun Apr 26 13:31:28 2020
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2020/04/26 13:31:28 mef Exp $
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/usr/bin/make package"
+@comment TODO: 2. run "/usr/bin/make print-PLIST"
Index: pkgsrc/devel/p5-B-COW/distinfo
diff -u /dev/null pkgsrc/devel/p5-B-COW/distinfo:1.1
--- /dev/null   Sun Apr 26 13:31:28 2020
+++ pkgsrc/devel/p5-B-COW/distinfo      Sun Apr 26 13:31:28 2020
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/04/26 13:31:28 mef Exp $
+
+SHA1 (B-COW-0.004.tar.gz) = acfcd1214e39e980dcd24e33059255b8e92099b8
+RMD160 (B-COW-0.004.tar.gz) = 7e923587e6217bde4d63e41d746ca39612827349
+SHA512 (B-COW-0.004.tar.gz) = 97beaac8056e4aaeafb535a8e69f103632eb3746fa815313f84612414081155ab640299c18b4cb7b9ff0f61263cc1b9ce25de3313bbefce318163902a4503292
+Size (B-COW-0.004.tar.gz) = 18295 bytes



Home | Main Index | Thread Index | Old Index