--- /dev/null
+From ccae912f85bde814a8286786dea50ecd8afde014 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentfredric@gmail.com>
+Date: Mon, 5 Jun 2017 22:03:46 +1200
+Subject: [PATCH] Disable network IO tests when NO_NETWORK_TESTING in ENV
+
+Network tests are sandboxed in Portage in some conditions,
+so disabling tests unless explicitly asked for is required.
+---
+ t/Area.t | 7 +++++++
+ t/Artist.t | 7 +++++++
+ t/Label.t | 7 +++++++
+ t/Recording.t | 7 +++++++
+ t/Release.t | 7 +++++++
+ 5 files changed, 35 insertions(+)
+
+diff --git a/t/Area.t b/t/Area.t
+index 143d72a..dd54a70 100644
+--- a/t/Area.t
++++ b/t/Area.t
+@@ -1,3 +1,10 @@
++BEGIN {
++ if ( $ENV{NO_NETWORK_TESTING} ) {
++ print '1..0 # SKIP Network connections required for this test';
++ exit;
++ }
++}
++
+ use strict;
+ use Test::More;
+
+diff --git a/t/Artist.t b/t/Artist.t
+index 5b6c47a..cfe2a4c 100644
+--- a/t/Artist.t
++++ b/t/Artist.t
+@@ -1,3 +1,10 @@
++BEGIN {
++ if ( $ENV{NO_NETWORK_TESTING} ) {
++ print '1..0 # SKIP Network connections required for this test';
++ exit;
++ }
++}
++
+ use strict;
+ use Test::More;
+
+diff --git a/t/Label.t b/t/Label.t
+index 9da331e..09887ca 100644
+--- a/t/Label.t
++++ b/t/Label.t
+@@ -1,3 +1,10 @@
++BEGIN {
++ if ( $ENV{NO_NETWORK_TESTING} ) {
++ print '1..0 # SKIP Network connections required for this test';
++ exit;
++ }
++}
++
+ use strict;
+ use Test::More;
+
+diff --git a/t/Recording.t b/t/Recording.t
+index 4077221..fa28295 100644
+--- a/t/Recording.t
++++ b/t/Recording.t
+@@ -1,3 +1,10 @@
++BEGIN {
++ if ( $ENV{NO_NETWORK_TESTING} ) {
++ print '1..0 # SKIP Network connections required for this test';
++ exit;
++ }
++}
++
+ use strict;
+ use Test::More;
+
+diff --git a/t/Release.t b/t/Release.t
+index 146b9fe..1ed12ba 100644
+--- a/t/Release.t
++++ b/t/Release.t
+@@ -1,3 +1,10 @@
++BEGIN {
++ if ( $ENV{NO_NETWORK_TESTING} ) {
++ print '1..0 # SKIP Network connections required for this test';
++ exit;
++ }
++}
++
+ use strict;
+ use Test::More;
+
+--
+2.12.2
+
<?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>
-<maintainer type="project">
-<email>sound@gentoo.org</email>
-<name>Gentoo Sound project</name>
-</maintainer>
-<upstream>
-<remote-id type="cpan">WebService-MusicBrainz</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Artist</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Label</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Query</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Release</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::ReleaseGroup</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::Alias</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::AliasList</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::Artist</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::ArtistList</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::Disc</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::DiscList</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::ISRC</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::ISRCList</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::Label</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::LabelList</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::Metadata</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::Puid</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::PuidList</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::Rating</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::Relation</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::RelationList</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::Release</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::ReleaseEvent</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::ReleaseEventList</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::ReleaseGroup</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::ReleaseGroupList</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::ReleaseList</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::Tag</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::TagList</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::Track</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::TrackList</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::UserRating</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::UserTag</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Response::UserTagList</remote-id>
-<remote-id type="cpan-module">WebService::MusicBrainz::Track</remote-id>
-</upstream>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sound@gentoo.org</email>
+ <name>Gentoo Sound project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpan">WebService-MusicBrainz</remote-id>
+ <remote-id type="cpan-module">WebService::MusicBrainz</remote-id>
+ <remote-id type="cpan-module">WebService::MusicBrainz::Request</remote-id>
+ </upstream>
</pkgmetadata>