diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-perl/Clipboard | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-perl/Clipboard')
-rw-r--r-- | dev-perl/Clipboard/Clipboard-0.130.0-r3.ebuild | 26 | ||||
-rw-r--r-- | dev-perl/Clipboard/Manifest | 5 | ||||
-rw-r--r-- | dev-perl/Clipboard/files/Clipboard-0.130.0-insecure-tempfile.patch | 23 | ||||
-rw-r--r-- | dev-perl/Clipboard/files/Clipboard-0.130.0-no-dot-inc.patch | 45 | ||||
-rw-r--r-- | dev-perl/Clipboard/metadata.xml | 16 |
5 files changed, 115 insertions, 0 deletions
diff --git a/dev-perl/Clipboard/Clipboard-0.130.0-r3.ebuild b/dev-perl/Clipboard/Clipboard-0.130.0-r3.ebuild new file mode 100644 index 000000000000..e66f219513ff --- /dev/null +++ b/dev-perl/Clipboard/Clipboard-0.130.0-r3.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=KING +DIST_VERSION=0.13 +inherit perl-module virtualx + +DESCRIPTION="Copy and paste with any OS" + +SLOT="0" +KEYWORDS="amd64 arm ppc ppc64 x86" +IUSE="" + +# See bug 521890. +PATCHES=( + "${FILESDIR}"/"${P}"-insecure-tempfile.patch + "${FILESDIR}"/"${P}"-no-dot-inc.patch +) + +RDEPEND="x11-misc/xclip" + +src_test() { + virtx perl-module_src_test +} diff --git a/dev-perl/Clipboard/Manifest b/dev-perl/Clipboard/Manifest new file mode 100644 index 000000000000..cded7d0f85f8 --- /dev/null +++ b/dev-perl/Clipboard/Manifest @@ -0,0 +1,5 @@ +AUX Clipboard-0.130.0-insecure-tempfile.patch 655 BLAKE2B 4051298d2779e7f8350136ce4109fca010cd10389975cf9d8ee0906f5dcd6b67026fcdca413ac048f12cb71c21d0487fa474f71175a46691414097cb8591a6d1 SHA512 adfb20e03ceb6d8abbe7901c2c03d292f3a41692878394bccb6604d34d786c3d3f8ae1643530234ec015655a0047c406ca8d9ec4c806b0da0646bce024fb6666 +AUX Clipboard-0.130.0-no-dot-inc.patch 1186 BLAKE2B 698830824a23a0dac1b40b43cd77b184352ec3fdc171134efed30225512a8f2b54e0d4584f20f527f6075205f294609d25a8093d4fca592aea8c4e699c4877f7 SHA512 cc6e24586323b90ce64513ea5a81e64f1c9f5f06390cd2dd4d2f3bc24e82c107cf9c03e637b614068d07597f3ca49cacd51bc168089506ab2bdbdc0410129c2b +DIST Clipboard-0.13.tar.gz 21616 BLAKE2B 6e46f36fcfbcbd61ca35dddb85b16da49ee7b2d6f3e0cf6b15e90a5730b649d0bb960108c33d6896903570f3baaf5ce871511dfd3a1330625b9974190fb408bc SHA512 29792efabee3bdbd808c445714f344608f79799561029d3311b3c263e7bd52ddd8be6e17773f2e027b0d38afecd5d7057af3a129e053c1c01928cf2c5a12bd6b +EBUILD Clipboard-0.130.0-r3.ebuild 461 BLAKE2B 5cd8e194d30d3773093c9f7bd610e349be28734579d086758aef5899cfff08ae0e789c7c5d45bdbdd06a8fba4acb4711b5c1f38b39f35593df5d04b01bec24ce SHA512 da10b24a5813b2efeaba0389e767ffa6f5fd0fa6a1e6ffe3bc763fa5ef87765d58dbd71f1e95e9382e07981a2ec2346c7d8a487a91aa1c12ccc120f19c3b93e4 +MISC metadata.xml 647 BLAKE2B 035eff8bc4070bc851c89442f2175379af802e68b566f7ae29d9df31a49e50a64143724bb1b6814d81ab8ff72b45f004840bd3bdea59dbca9d3b9618602f948a SHA512 dff9edef9bca1249129e68f2c2d3d582d39c3c753b00a5c664cee0f0b8080038e72ec4e81d5e77245a4c0fdc912c074e03f4602dc1de196db0763dce14ba3e72 diff --git a/dev-perl/Clipboard/files/Clipboard-0.130.0-insecure-tempfile.patch b/dev-perl/Clipboard/files/Clipboard-0.130.0-insecure-tempfile.patch new file mode 100644 index 000000000000..1fd452c61481 --- /dev/null +++ b/dev-perl/Clipboard/files/Clipboard-0.130.0-insecure-tempfile.patch @@ -0,0 +1,23 @@ +Description: Fix insecure use of temporary files. + This is CVE-2014-5509. +Origin: vendor +Bug: https://rt.cpan.org/Public/Bug/Display.html?id=98435 +Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=98435 +Author: gregor herrmann <gregoa@debian.org> +Last-Update: 2016-08-13 + +--- a/scripts/clipedit ++++ b/scripts/clipedit +@@ -1,10 +1,11 @@ + #!/usr/bin/perl + use strict; + use Clipboard; ++use File::Temp qw( tempfile ); + + my $orig = Clipboard->paste; + +-my $tmpfilename = "/tmp/clipedit$$"; ++my ($tmpfile, $tmpfilename) = tempfile(); + open my $tmpfile, ">$tmpfilename" or die "Failure to open $tmpfilename: $!"; + print $tmpfile $orig; + close $tmpfile; diff --git a/dev-perl/Clipboard/files/Clipboard-0.130.0-no-dot-inc.patch b/dev-perl/Clipboard/files/Clipboard-0.130.0-no-dot-inc.patch new file mode 100644 index 000000000000..1e9c31be70e9 --- /dev/null +++ b/dev-perl/Clipboard/files/Clipboard-0.130.0-no-dot-inc.patch @@ -0,0 +1,45 @@ +From 389b272f8696b86f594726544a8280e43cd2ffc6 Mon Sep 17 00:00:00 2001 +From: Kent Fredric <kentnl@gentoo.org> +Date: Thu, 19 Oct 2017 10:21:36 +1300 +Subject: Fix Makefile.PL & Tests for '.' in @INC removal under Perl 5.26+ + +Bug: https://bugs.gentoo.org/615138 +Bug: https://rt.cpan.org/Ticket/Display.html?id=121056 +--- + Makefile.PL | 1 + + t/drivers.t | 2 ++ + t/mock.t | 2 ++ + 3 files changed, 5 insertions(+) + +diff --git a/Makefile.PL b/Makefile.PL +index 08468ac..ab60784 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -1,3 +1,4 @@ ++use lib '.'; + use inc::Module::Install; + name('Clipboard'); + author('Ryan King <rking@panoptic.com>'); +diff --git a/t/drivers.t b/t/drivers.t +index 1ae7014..de2478f 100644 +--- a/t/drivers.t ++++ b/t/drivers.t +@@ -1,3 +1,5 @@ ++use File::Spec::Functions qw(rel2abs); ++use lib rel2abs('.'); + use Test::Clipboard; + use strict; # XXX make Test::Clipboard do this + my %map = qw( +diff --git a/t/mock.t b/t/mock.t +index fbd76f0..2a50ebb 100644 +--- a/t/mock.t ++++ b/t/mock.t +@@ -1,3 +1,5 @@ ++use File::Spec::Functions qw(rel2abs); ++use lib rel2abs('.'); + use Test::Clipboard; + use Test::MockClipboard; + use strict; # XXX make Test::Clipboard do this +-- +2.14.2 + diff --git a/dev-perl/Clipboard/metadata.xml b/dev-perl/Clipboard/metadata.xml new file mode 100644 index 000000000000..040e0e7ce256 --- /dev/null +++ b/dev-perl/Clipboard/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>perl@gentoo.org</email> + <name>Gentoo Perl Project</name> + </maintainer> + <upstream> + <remote-id type="cpan">Clipboard</remote-id> + <remote-id type="cpan-module">Clipboard</remote-id> + <remote-id type="cpan-module">Clipboard::MacPasteboard</remote-id> + <remote-id type="cpan-module">Clipboard::Win32</remote-id> + <remote-id type="cpan-module">Clipboard::Xclip</remote-id> + <remote-id type="cpan-module">PhonyClipboard</remote-id> + </upstream> +</pkgmetadata> |