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/Shell-EnvImporter | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-perl/Shell-EnvImporter')
4 files changed, 95 insertions, 0 deletions
diff --git a/dev-perl/Shell-EnvImporter/Manifest b/dev-perl/Shell-EnvImporter/Manifest new file mode 100644 index 000000000000..2a84e2bfd4e6 --- /dev/null +++ b/dev-perl/Shell-EnvImporter/Manifest @@ -0,0 +1,4 @@ +AUX Shell-EnvImporter-1.70.0-perl520.patch 1830 BLAKE2B 25e79b0a059f043b411bec0c3c42ef61bcc271803831acdc45dfa72d22841cb6d220ecd5ec0050abbd013233e9d9511327e8dca53d48baf37929d37c65d0d522 SHA512 f4f4d2d4d0fbdfdea984791d5a1d7065a9d8346d390d4eb29bae877e2f121cf0b80ae05b35d8e88d389186df46ca7e3cac79a2e21671a406c9dce12466eae164 +DIST Shell-EnvImporter-1.07.tar.gz 15655 BLAKE2B 4c839a8f888141c21ea9d9b9508bac940603cac57686b19a35f223768c1eac349c13ed04ce9c9d96b91379a364793875b726dca0ce3ced5aa5d2ba084292ffbd SHA512 44988bf8a13d6a8d73d4c0a2f40b23506af4cfab979beed4a135df92876697fa7831d51549bd77a46a32598818c6f50ad1742766e2e0295afb2bf09eecbfcd4d +EBUILD Shell-EnvImporter-1.70.0-r2.ebuild 585 BLAKE2B 1706e109613d8ccb3c47f1ed388ddd4f81c83467c3e7a3decae897cc5f07abc67853eb8405105066b1a79ea7039f3bea8124abb53debf1c3b4e046b42c6c6207 SHA512 9c272bbdd345ea1cb424f6109bf4baabc3148ad163a80e82427f169f73b74cf310e1fa3efb5661e02987cb7802c8101d9e90456a190af35e3cf144b06d32f75d +MISC metadata.xml 1165 BLAKE2B 29126907ff9e5d9532c585b70f659d6a88a1f289214072d8079be11c6273bef8c7ec2b28e0424fcc47ea48bb9cdfcec6f979a3305dcb15d1671af87ab351f303 SHA512 99985b1e87ea2df2a1db6037b4a50deb324880064cefa3eb9ba9aa9966fbf082084fa32ff280c36e3bd9066a16f484694369a2cae98e749111f13768cca410e0 diff --git a/dev-perl/Shell-EnvImporter/Shell-EnvImporter-1.70.0-r2.ebuild b/dev-perl/Shell-EnvImporter/Shell-EnvImporter-1.70.0-r2.ebuild new file mode 100644 index 000000000000..604ed2e10041 --- /dev/null +++ b/dev-perl/Shell-EnvImporter/Shell-EnvImporter-1.70.0-r2.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +MODULE_AUTHOR=DFARALDO +MODULE_VERSION=1.07 +inherit perl-module + +DESCRIPTION="Import environment variable changes from external commands or shell scripts" + +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="" + +DEPEND=">=dev-perl/Class-MethodMaker-2" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}-perl520.patch" ) + +SRC_TEST=no diff --git a/dev-perl/Shell-EnvImporter/files/Shell-EnvImporter-1.70.0-perl520.patch b/dev-perl/Shell-EnvImporter/files/Shell-EnvImporter-1.70.0-perl520.patch new file mode 100644 index 000000000000..4ccf44166f39 --- /dev/null +++ b/dev-perl/Shell-EnvImporter/files/Shell-EnvImporter-1.70.0-perl520.patch @@ -0,0 +1,48 @@ +Avoid warnings on perl 5.20. + +"Possible precedence issue with control flow operator + at Shell/EnvImporter/Result.pm line 88" + +This one is due to the fact that "return ..." binds more strongly than +"and", so the function would simply "return $self->shell_status == 0", +disregarding $self->command_status and $self->env_status. +Changing "and" to "&&" solves this issue. + +"Use of uninitialized value $_[1] in read at IO/Handle.pm" + +This is because we don't initialize the hash "%buf" into which we read. +Initializing the relevant keys with the empty string solves this issue. + +References: +* https://rt.cpan.org/Public/Bug/Display.html?id=86171 +* https://github.com/gentoo-perl/g-cpan/issues/6 +* https://github.com/gentoo-perl/g-cpan/issues/6 + +2014-10-21 Martin von Gagern + +diff -ur Shell-EnvImporter-1.07/lib/Shell/EnvImporter/Result.pm Shell-EnvImporter/lib/Shell/EnvImporter/Result.pm +--- Shell-EnvImporter-1.07/lib/Shell/EnvImporter/Result.pm 2006-09-01 03:53:30.000000000 +0200 ++++ Shell-EnvImporter/lib/Shell/EnvImporter/Result.pm 2014-10-21 09:34:00.814867969 +0200 +@@ -84,8 +84,8 @@ + ############### + my $self = shift; + +- return $self->shell_status == 0 and +- $self->command_status == 0 and ++ return $self->shell_status == 0 && ++ $self->command_status == 0 && + $self->env_status == 0; + + } +diff -ur Shell-EnvImporter-1.07/lib/Shell/EnvImporter/Shell.pm Shell-EnvImporter/lib/Shell/EnvImporter/Shell.pm +--- Shell-EnvImporter-1.07/lib/Shell/EnvImporter/Shell.pm 2009-07-03 07:00:30.000000000 +0200 ++++ Shell-EnvImporter/lib/Shell/EnvImporter/Shell.pm 2014-10-21 09:35:08.010881726 +0200 +@@ -183,7 +183,7 @@ + my $s = IO::Select->new($fh{'STDOUT'}, $fh{'STDERR'}); + + my $t0 = time; +- my %buf; ++ my %buf = (STDOUT => '', STDERR => ''); + while (1) { + + my @ready = $s->can_read(); diff --git a/dev-perl/Shell-EnvImporter/metadata.xml b/dev-perl/Shell-EnvImporter/metadata.xml new file mode 100644 index 000000000000..a9dd4b2cdb6a --- /dev/null +++ b/dev-perl/Shell-EnvImporter/metadata.xml @@ -0,0 +1,22 @@ +<?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">Shell-EnvImporter</remote-id> + <remote-id type="cpan-module">Shell::EnvImporter</remote-id> + <remote-id type="cpan-module">Shell::EnvImporter::Change</remote-id> + <remote-id type="cpan-module">Shell::EnvImporter::Result</remote-id> + <remote-id type="cpan-module">Shell::EnvImporter::Shell</remote-id> + <remote-id type="cpan-module">Shell::EnvImporter::Shell::bash</remote-id> + <remote-id type="cpan-module">Shell::EnvImporter::Shell::csh</remote-id> + <remote-id type="cpan-module">Shell::EnvImporter::Shell::ksh</remote-id> + <remote-id type="cpan-module">Shell::EnvImporter::Shell::perl</remote-id> + <remote-id type="cpan-module">Shell::EnvImporter::Shell::sh</remote-id> + <remote-id type="cpan-module">Shell::EnvImporter::Shell::tcsh</remote-id> + <remote-id type="cpan-module">Shell::EnvImporter::Shell::zsh</remote-id> + </upstream> +</pkgmetadata> |