[gentoo-commits] repo/gentoo:master commit in: dev-perl/Devel-NYTProf/files/

2021-08-26 Thread Sam James
commit: 6b588913738657cad6d656ad085ce248263c0d59
Author: Michael Mair-Keimberger  levelnine  at>
AuthorDate: Wed Aug 25 14:38:42 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Aug 26 22:32:34 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b588913

dev-perl/Devel-NYTProf: remove unused patch(es)

Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger  levelnine.at>
Signed-off-by: Sam James  gentoo.org>

 .../files/Devel-NYTProf-6.06-cpprun.patch  | 36 --
 1 file changed, 36 deletions(-)

diff --git a/dev-perl/Devel-NYTProf/files/Devel-NYTProf-6.06-cpprun.patch 
b/dev-perl/Devel-NYTProf/files/Devel-NYTProf-6.06-cpprun.patch
deleted file mode 100644
index 786a525a7dc..000
--- a/dev-perl/Devel-NYTProf/files/Devel-NYTProf-6.06-cpprun.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From aaa04b28c99e0d2bf244dbcb274b4df6fe6fa50d Mon Sep 17 00:00:00 2001
-From: Kent Fredric 
-Date: Tue, 7 Jul 2020 23:08:00 +1200
-Subject: Allow CPP override in ENV
-
-When Perl is built with -Dcpp="$(gc-getCPP)", the end result is:
-
-- $Config{cpp} = "${CHOST}-gcc"
-- $Config{cpprun} = "${CHOST}-gcc -E"
-
-And of course, Devel-NYTProf uses the former, and so it tries to compile
-the damn header instead of just preprocessing it.
-
-This provides a correction, and an override.
-
-Bug: https://github.com/timbunce/devel-nytprof/issues/139

- Makefile.PL | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/Makefile.PL b/Makefile.PL
-index 60025de..6786e29 100644
 a/Makefile.PL
-+++ b/Makefile.PL
-@@ -59,7 +59,7 @@ utime time(), time(), "t/test40pmc.pmc"
- 
- # --- Discover how much of stdio is implemented
- 
--my $cpp = $Config{cpp} || do {
-+my $cpp = $ENV{CPP} || $Config{cpprun} || do {
- warn "Warning: cpp not found in your perl config.  Falling back to 
'cat'\n";
- 'cat';
- };
--- 
-2.27.0
-



[gentoo-commits] repo/gentoo:master commit in: dev-perl/Devel-NYTProf/files/, dev-perl/Devel-NYTProf/

2020-07-07 Thread Kent Fredric
commit: b33708c82c512b98ac90631edbc10a4bcb06cce6
Author: Kent Fredric  gentoo  org>
AuthorDate: Tue Jul  7 12:00:12 2020 +
Commit: Kent Fredric  gentoo  org>
CommitDate: Tue Jul  7 12:00:45 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b33708c8

dev-perl/Devel-NYTProf: -r bump fix for bug  #724506

- EAPI7
- Add subslot deps for zlib
- Ensure CFLAGS passed to make/compiler
- Fix problem introduced by -Dcpp=$(tc-getCPP) in dev-lang/perl where
  Devel-NYTProf incorrectly uses $Config{cpp} instead of
  $Config{cpprun}, which results in trying to invoke $GCC to
  pre-process headers for grep-based feature detection, where it
  *SHOULD* be invoking "$GCC -E", which in turn, leads to trying
  to compile system headers and in turn, writing precompiled headers
  to /usr/include, tripping a sandbox violation.

Bug: https://bugs.gentoo.org/724506
Bug: https://github.com/timbunce/devel-nytprof/issues/139
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Kent Fredric  gentoo.org>

 .../Devel-NYTProf/Devel-NYTProf-6.60.0-r1.ebuild   | 56 ++
 .../files/Devel-NYTProf-6.06-cpprun.patch  | 36 ++
 dev-perl/Devel-NYTProf/metadata.xml|  1 +
 3 files changed, 93 insertions(+)

diff --git a/dev-perl/Devel-NYTProf/Devel-NYTProf-6.60.0-r1.ebuild 
b/dev-perl/Devel-NYTProf/Devel-NYTProf-6.60.0-r1.ebuild
new file mode 100644
index 000..9771cb81e12
--- /dev/null
+++ b/dev-perl/Devel-NYTProf/Devel-NYTProf-6.60.0-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DIST_AUTHOR=TIMB
+DIST_VERSION=6.06
+DIST_EXAMPLES=("demo/*")
+inherit perl-module toolchain-funcs
+
+DESCRIPTION="Powerful feature-rich perl source code profiler"
+
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   >=dev-perl/File-Which-1.90.0
+   virtual/perl-Getopt-Long
+   dev-perl/JSON-MaybeXS
+   virtual/perl-Scalar-List-Utils
+   virtual/perl-XSLoader
+   sys-libs/zlib:0=
+"
+DEPEND="
+   sys-libs/zlib:0=
+"
+BDEPEND="${RDEPEND}
+   virtual/perl-ExtUtils-MakeMaker
+   test? (
+   >=virtual/perl-Test-Simple-0.840.0
+   >=dev-perl/Test-Differences-0.60.0
+   )
+"
+PERL_RM_FILES=(
+   t/68-hashline.t
+   t/71-moose.t
+   t/72-autodie.t
+   t/90-pod.t
+   t/91-pod_coverage.t
+   t/92-file_port.t
+)
+PATCHES=(
+   "${FILESDIR}/${PN}-6.06-cpprun.patch"
+)
+src_configure() {
+   tc-export CPP
+   perl-module_src_configure
+}
+src_compile() {
+   mymake=(
+   "OPTIMIZE=${CFLAGS}"
+   )
+   perl-module_src_compile
+}

diff --git a/dev-perl/Devel-NYTProf/files/Devel-NYTProf-6.06-cpprun.patch 
b/dev-perl/Devel-NYTProf/files/Devel-NYTProf-6.06-cpprun.patch
new file mode 100644
index 000..786a525a7dc
--- /dev/null
+++ b/dev-perl/Devel-NYTProf/files/Devel-NYTProf-6.06-cpprun.patch
@@ -0,0 +1,36 @@
+From aaa04b28c99e0d2bf244dbcb274b4df6fe6fa50d Mon Sep 17 00:00:00 2001
+From: Kent Fredric 
+Date: Tue, 7 Jul 2020 23:08:00 +1200
+Subject: Allow CPP override in ENV
+
+When Perl is built with -Dcpp="$(gc-getCPP)", the end result is:
+
+- $Config{cpp} = "${CHOST}-gcc"
+- $Config{cpprun} = "${CHOST}-gcc -E"
+
+And of course, Devel-NYTProf uses the former, and so it tries to compile
+the damn header instead of just preprocessing it.
+
+This provides a correction, and an override.
+
+Bug: https://github.com/timbunce/devel-nytprof/issues/139
+---
+ Makefile.PL | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 60025de..6786e29 100644
+--- a/Makefile.PL
 b/Makefile.PL
+@@ -59,7 +59,7 @@ utime time(), time(), "t/test40pmc.pmc"
+ 
+ # --- Discover how much of stdio is implemented
+ 
+-my $cpp = $Config{cpp} || do {
++my $cpp = $ENV{CPP} || $Config{cpprun} || do {
+ warn "Warning: cpp not found in your perl config.  Falling back to 
'cat'\n";
+ 'cat';
+ };
+-- 
+2.27.0
+

diff --git a/dev-perl/Devel-NYTProf/metadata.xml 
b/dev-perl/Devel-NYTProf/metadata.xml
index c4728df9c2e..ccc473b0639 100644
--- a/dev-perl/Devel-NYTProf/metadata.xml
+++ b/dev-perl/Devel-NYTProf/metadata.xml
@@ -20,5 +20,6 @@
 Devel::NYTProf::SubCallInfo
 Devel::NYTProf::SubInfo
 Devel::NYTProf::Util
+SVG
   
 



[gentoo-commits] repo/gentoo:master commit in: dev-perl/Devel-NYTProf/files/, dev-perl/Devel-NYTProf/

2017-10-07 Thread Kent Fredric
commit: 04fb4184cf25f90f8390454c48ff3cdcd9d71881
Author: Kent Fredric  gentoo  org>
AuthorDate: Sat Oct  7 19:13:18 2017 +
Commit: Kent Fredric  gentoo  org>
CommitDate: Sat Oct  7 19:13:46 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04fb4184

dev-perl/Devel-NYTProf: Fix test failure without '.' in @INC bug #615734

Closes: https://bugs.gentoo.org/615734
Package-Manager: Portage-2.3.8, Repoman-2.3.3

 dev-perl/Devel-NYTProf/Devel-NYTProf-6.40.0.ebuild |  4 +--
 .../files/Devel-NYTProf-6.40.0-perl526.patch   | 41 ++
 2 files changed, 43 insertions(+), 2 deletions(-)

diff --git a/dev-perl/Devel-NYTProf/Devel-NYTProf-6.40.0.ebuild 
b/dev-perl/Devel-NYTProf/Devel-NYTProf-6.40.0.ebuild
index c14b6b0b04c..ca15e9d531f 100644
--- a/dev-perl/Devel-NYTProf/Devel-NYTProf-6.40.0.ebuild
+++ b/dev-perl/Devel-NYTProf/Devel-NYTProf-6.40.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -29,7 +29,7 @@ DEPEND="${RDEPEND}
>=dev-perl/Test-Differences-0.60.0
)
 "
-
+PATCHES=( "${FILESDIR}/${P}-perl526.patch" )
 src_test() {
perl_rm_files t/90-pod.t t/91-pod_coverage.t t/92-file_port.t \
t/71-moose.t t/72-autodie.t t/68-hashline.t

diff --git a/dev-perl/Devel-NYTProf/files/Devel-NYTProf-6.40.0-perl526.patch 
b/dev-perl/Devel-NYTProf/files/Devel-NYTProf-6.40.0-perl526.patch
new file mode 100644
index 000..cd81f120ddd
--- /dev/null
+++ b/dev-perl/Devel-NYTProf/files/Devel-NYTProf-6.40.0-perl526.patch
@@ -0,0 +1,41 @@
+From 461055d041e0e08f5fe851461db42ea7121fa39f Mon Sep 17 00:00:00 2001
+From: Kent Fredric 
+Date: Sun, 8 Oct 2017 07:44:14 +1300
+Subject: Fix test failures on Perl 5.26 w/ PERL_USE_UNSAFE_INC=0
+
+Perl 5.26+ removes '.' from the default @INC, and this breaks the
+mechanism internally where @INC-prefixes are stripped from fid_fileinfo
+names ( in ::FileInfo.pm ).
+
+This breaks tests due to the sample 'rdt' files expecting single-token
+comparators relative to 't/', instead getting a fully qualified path in
+the "got" side of the test.
+
+This remedies this by ensuring a fully-qualified path to "t/" is in
+@INC for the aforementioned prefix-stripper to pick-up on.
+
+Bug: https://github.com/timbunce/devel-nytprof/issues/108
+Bug: https://bugs.gentoo.org/615734
+Bug: https://github.com/timbunce/devel-nytprof/pull/112
+---
+ t/lib/NYTProfTest.pm | 4 
+ 1 file changed, 4 insertions(+)
+
+diff --git a/t/lib/NYTProfTest.pm b/t/lib/NYTProfTest.pm
+index 9c29627..7fb5381 100644
+--- a/t/lib/NYTProfTest.pm
 b/t/lib/NYTProfTest.pm
+@@ -69,6 +69,10 @@ my $text_extn_info = {
+ pf=> { order => 50, tests => 2, },
+ };
+ 
++# having t/* in @INC is necessary for prefix-stripping
++# to reduce test-file names down to the single tokens
++# that are used in the comparison-output files.
++unshift @INC, File::Spec->rel2abs('./t') if -d 't';
+ chdir('t') if -d 't';
+ 
+ if (-d '../blib') {
+-- 
+2.14.1
+