summaryrefslogtreecommitdiff
path: root/dev-perl/Devel-SmallProf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-05-18 00:10:51 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-05-18 00:10:51 +0100
commiteccb70a7f91b2d22582587f26d1a28bb31408b45 (patch)
tree3223e1fd54201bcf4ebecac6fbe87361cbe643e2 /dev-perl/Devel-SmallProf
parenta2810985afabcc31d3eace5e61d8ea25b852ba17 (diff)
gentoo resync : 18.05.2019
Diffstat (limited to 'dev-perl/Devel-SmallProf')
-rw-r--r--dev-perl/Devel-SmallProf/Devel-SmallProf-2.20.0-r4.ebuild23
-rw-r--r--dev-perl/Devel-SmallProf/Manifest2
-rw-r--r--dev-perl/Devel-SmallProf/files/Devel-SmallProf-2.20.0-perl528.patch42
3 files changed, 67 insertions, 0 deletions
diff --git a/dev-perl/Devel-SmallProf/Devel-SmallProf-2.20.0-r4.ebuild b/dev-perl/Devel-SmallProf/Devel-SmallProf-2.20.0-r4.ebuild
new file mode 100644
index 000000000000..cf2637c44aaf
--- /dev/null
+++ b/dev-perl/Devel-SmallProf/Devel-SmallProf-2.20.0-r4.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=SALVA
+DIST_VERSION=2.02
+inherit perl-module
+
+DESCRIPTION="Per-line Perl profiler"
+
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}/${P}-defined.patch"
+ "${FILESDIR}/${P}-perl526.patch"
+ "${FILESDIR}/${P}-perl528.patch"
+)
+# note: dont use parallel here
+# tests need each others exit state
+DIST_TEST="do"
diff --git a/dev-perl/Devel-SmallProf/Manifest b/dev-perl/Devel-SmallProf/Manifest
index 6437b572a9ea..435796f5cb1d 100644
--- a/dev-perl/Devel-SmallProf/Manifest
+++ b/dev-perl/Devel-SmallProf/Manifest
@@ -1,5 +1,7 @@
AUX Devel-SmallProf-2.20.0-defined.patch 723 BLAKE2B b31ed94cb96dfeb5261ea13c75876c9a8f45e6b1835358d4f797b324b041e13bf3c3cea3062a7c8340b978bd36f900514193cfc1fee8b1b7bc99a29917d210af SHA512 8b40f44bfbcafb5199d335781de5c654d62b95ef6a3ae41afdb4db349b4822de51d456690f4ed124bdac757326be43dbb31b6d22a0020b7137a2aa7b3d328171
AUX Devel-SmallProf-2.20.0-perl526.patch 1992 BLAKE2B f0766b6f32410d17bdeba10d207f4c9ba3f9627de37a29d91b0f58e1936803e6c99db7cc4e4da49055351350156e4b11adc46df2400ff368f2c2f1ecdc08019b SHA512 90f6c02e7aee8ab68a5812a31eb0896e3fa45e91ecb31a7b2022ceafd288413045a38d83311e9e319bee3ac9483d4c3e6e61c1c151c6d5f63497f675064fdb6f
+AUX Devel-SmallProf-2.20.0-perl528.patch 1308 BLAKE2B 944973ed509d0752eb92bc02bc36a67e81659da9fdb403a0a9d551781a500af9e029c28a8007ad6a3803351703066116d33bf9f6d9323af93a4b1550810919d9 SHA512 2ab4fa1f17a50b9c59126b7e6cda0e498f78f5c94c6b5e3fedf112d0a25a18659a5a602bed879b101474a1a61dee4353a55b8b59d710f9558bafbde0c1fc3294
DIST Devel-SmallProf-2.02.tar.gz 9367 BLAKE2B a9c058469d5fe80fdce61d080e3f4c90a443ed2cc8decee4ed28047b49d52de5f89abc52bb77085297d310183a59b299aa23ce911747cee26a9a149e41ac324c SHA512 f97ccacf3668feaccb5eda8e451c0c00a434df4051f9f2cb1c2f85cb9285e98c9f1198789467c21cabaddb667ba09b4fb56073075e9307881c7a71a820607743
EBUILD Devel-SmallProf-2.20.0-r3.ebuild 419 BLAKE2B 332218655dd3169b0ae0bc74826dcdc8bba3a37162a0b059d35f87bf669e0added3b33f12a861f5de199885fc30bb6d851b89715f56c29b05c0fbe233131d49d SHA512 6496121f14cfa329d5a224dc12593a30560242a3b8097c4370a2f27f7b8df462186cc6dee8bd10d61761b123958f8042694740cef14f82c765a2e3a60663700a
+EBUILD Devel-SmallProf-2.20.0-r4.ebuild 452 BLAKE2B 18e2f299c94a04f415cc1a5c8fd89f93cc7db3eab77984edd5113d9dc9b33c1ad7eb002d6e71d46a74e5771fc9254839b44182b58f548ce7708a39b00ed0731c SHA512 18c241dce6ac465cba4a8fbad7adaffab6c82b554a92d14da741f87d568d21b8a019e80687983dea2d20ea33df72e1df1effd2cfd143dc2c1d59a6d55ad1891c
MISC metadata.xml 451 BLAKE2B dc54dcce9a8a34acc65d7f5ddda92ca6317bcf12271792b9705a607ffcd5534019fd5720496e8886ade3c45b8f24b8a9a3a5784b93e6bb3e47929b3a7c8591fb SHA512 0b8fcc223fb2027ca143df6c813cc31de5ac5a59c62ccb7cc8dff4d081f86e129a2c1efcbdb747711170cdb6625a12700852b0d12c22ab36879b5805404d0fbe
diff --git a/dev-perl/Devel-SmallProf/files/Devel-SmallProf-2.20.0-perl528.patch b/dev-perl/Devel-SmallProf/files/Devel-SmallProf-2.20.0-perl528.patch
new file mode 100644
index 000000000000..3417fa00327c
--- /dev/null
+++ b/dev-perl/Devel-SmallProf/files/Devel-SmallProf-2.20.0-perl528.patch
@@ -0,0 +1,42 @@
+From fd31925e40127b2f45518efbcee60ae7f2da30ae Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
+Date: Fri, 29 Jun 2018 13:27:51 +0200
+Subject: [PATCH] Remove DB::sub declaration
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Tests fail with Perl 5.28.0:
+
+t/part1.t .. No DB::sub routine defined at t/part1.t line 1.
+BEGIN failed--compilation aborted at t/part1.t line 2.
+
+SmallProf.pm contains DB::sub declaration without a
+corresponding definition with an exaplanation "even if it
+is not used it has to be declared!"
+
+If I remove the declaration, tests pass. Tests pass even on Perl
+5.26.2. It seems the hack is not needed anymore and it is even
+harmfull to Perl 5.28.0.
+
+Signed-off-by: Petr Písař <ppisar@redhat.com>
+---
+ lib/Devel/SmallProf.pm | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/lib/Devel/SmallProf.pm b/lib/Devel/SmallProf.pm
+index 4fdd66a..63a94a6 100644
+--- a/lib/Devel/SmallProf.pm
++++ b/lib/Devel/SmallProf.pm
+@@ -16,8 +16,6 @@ our ($profile, $drop_zeros, $grep_format, %packages);
+ my ($cdone, $done, $cstart, $start, $prevf, $prevl, $nulltime,
+ %listings, %profiles, %times, %ctimes);
+
+-sub sub; # even if it is not used it has to be declared!
+-
+ sub DB {
+ $profile || return;
+
+--
+2.14.4
+