From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EAD45138359 for ; Fri, 24 Jul 2020 07:29:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 430DCE0824; Fri, 24 Jul 2020 07:29:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2AB4AE0824 for ; Fri, 24 Jul 2020 07:29:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4498134F1FA for ; Fri, 24 Jul 2020 07:29:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D52FF29A for ; Fri, 24 Jul 2020 07:29:23 +0000 (UTC) From: "Kent Fredric" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kent Fredric" Message-ID: <1595575402.73e212f847dcf1c8834cbe36abf48ac9aab02a4e.kentnl@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Date-ICal/files/, dev-perl/Date-ICal/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-perl/Date-ICal/Date-ICal-2.678.0-r2.ebuild dev-perl/Date-ICal/files/Date-ICal-2.678-timegm-year.patch X-VCS-Directories: dev-perl/Date-ICal/ dev-perl/Date-ICal/files/ X-VCS-Committer: kentnl X-VCS-Committer-Name: Kent Fredric X-VCS-Revision: 73e212f847dcf1c8834cbe36abf48ac9aab02a4e X-VCS-Branch: master Date: Fri, 24 Jul 2020 07:29:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4f4b76be-0150-4e90-8d8c-bb9594014e52 X-Archives-Hash: b608a65212d3fc04207c6eb37b9e9eab commit: 73e212f847dcf1c8834cbe36abf48ac9aab02a4e Author: Kent Fredric gentoo org> AuthorDate: Fri Jul 24 07:22:35 2020 +0000 Commit: Kent Fredric gentoo org> CommitDate: Fri Jul 24 07:23:22 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73e212f8 dev-perl/Date-ICal: -r bump for EAPI7 & Bug #707790 - EAPI7 - Improve deps - Parallel tests - Fix handling of epoch re bug #707790 Bug: https://bugs.gentoo.org/707790 Package-Manager: Portage-2.3.103, Repoman-2.3.22 Signed-off-by: Kent Fredric gentoo.org> dev-perl/Date-ICal/Date-ICal-2.678.0-r2.ebuild | 32 ++++++++++++++++++++++ .../files/Date-ICal-2.678-timegm-year.patch | 27 ++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/dev-perl/Date-ICal/Date-ICal-2.678.0-r2.ebuild b/dev-perl/Date-ICal/Date-ICal-2.678.0-r2.ebuild new file mode 100644 index 00000000000..1a511d856e3 --- /dev/null +++ b/dev-perl/Date-ICal/Date-ICal-2.678.0-r2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DIST_AUTHOR=RBOW +DIST_VERSION=2.678 +inherit perl-module + +DESCRIPTION="ICal format date base module for Perl" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-perl/Date-Leapyear-1.30.0 + virtual/perl-Storable + virtual/perl-Time-HiRes + virtual/perl-Time-Local +" +BDEPEND="${RDEPEND} + virtual/perl-ExtUtils-MakeMaker + test? ( + >=virtual/perl-Test-Harness-2.250.0 + >=virtual/perl-Test-Simple-0.450.0 + ) +" +PATCHES=( + "${FILESDIR}/${PN}-2.678-timegm-year.patch" +) diff --git a/dev-perl/Date-ICal/files/Date-ICal-2.678-timegm-year.patch b/dev-perl/Date-ICal/files/Date-ICal-2.678-timegm-year.patch new file mode 100644 index 00000000000..a133c7ec7b1 --- /dev/null +++ b/dev-perl/Date-ICal/files/Date-ICal-2.678-timegm-year.patch @@ -0,0 +1,27 @@ +From 9d7e303d13541e9546b303a6eb5508bd23e204a5 Mon Sep 17 00:00:00 2001 +From: Kent Fredric +Date: Fri, 24 Jul 2020 18:04:44 +1200 +Subject: Always pass full year to timegm() + +Bug: https://rt.cpan.org/Ticket/Display.html?id=124548 +Bug: https://bugs.gentoo.org/707790 +--- + lib/Date/ICal.pm | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/Date/ICal.pm b/lib/Date/ICal.pm +index 39844af..fbfdbaf 100755 +--- a/lib/Date/ICal.pm ++++ b/lib/Date/ICal.pm +@@ -334,7 +334,7 @@ sub epoch { + + $epoch = + timegm( $self->sec, $self->min, $self->hour, $self->day, +- ( $self->month ) - 1, ( $self->year ) - 1900 ); ++ ( $self->month ) - 1, $self->year ); + } + + return $epoch; +-- +2.27.0 +