Blame SOURCES/CPAN-2.18-Replace-configuration-directory-string-with-a-marke.patch

cf6c8e
From c6f460b4bb60352e40e25efe72acd3c2bd14f216 Mon Sep 17 00:00:00 2001
cf6c8e
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
cf6c8e
Date: Wed, 28 Jan 2015 13:21:10 +0100
cf6c8e
Subject: [PATCH] Replace configuration directory string with a marker
cf6c8e
MIME-Version: 1.0
cf6c8e
Content-Type: text/plain; charset=UTF-8
cf6c8e
Content-Transfer-Encoding: 8bit
cf6c8e
cf6c8e
This allows to redefine the configuration directory name at build
cf6c8e
time.
cf6c8e
cf6c8e
Signed-off-by: Petr Písař <ppisar@redhat.com>
cf6c8e
---
cf6c8e
 Makefile.PL              | 10 +++++-----
cf6c8e
 README                   | 10 +++++-----
cf6c8e
 lib/CPAN.pm              | 10 +++++-----
cf6c8e
 lib/CPAN/HandleConfig.pm |  2 +-
cf6c8e
 scripts/cpan-mirrors     |  2 +-
cf6c8e
 5 files changed, 17 insertions(+), 17 deletions(-)
cf6c8e
cf6c8e
diff --git a/Makefile.PL b/Makefile.PL
cf6c8e
index 2cd2f82..3b826cf 100644
cf6c8e
--- a/Makefile.PL
cf6c8e
+++ b/Makefile.PL
cf6c8e
@@ -353,21 +353,21 @@ record-session :
cf6c8e
 	$(PERL) -Ilib -MCPAN -e '$$CPAN::Suppress_readline=$$CPAN::Echo_readline=1;shell' | tee ttt.out
cf6c8e
 
cf6c8e
 run-with-sqlite :
cf6c8e
-	$(PERL) -I$$HOME/.cpan -Ilib -MCPAN::SQLite -MCPAN::MyConfig -MCPAN -e '$$CPAN::Config->{use_sqlite}++; $$CPAN::Config->{sqlite_dbname}="cpandb-sqlite"; shell'
cf6c8e
+	$(PERL) -I$$HOME/.XCPANCONFIGNAMEX -Ilib -MCPAN::SQLite -MCPAN::MyConfig -MCPAN -e '$$CPAN::Config->{use_sqlite}++; $$CPAN::Config->{sqlite_dbname}="cpandb-sqlite"; shell'
cf6c8e
 
cf6c8e
 testrun_very_offline : rm_mirrored_by run_emu_offline
cf6c8e
 
cf6c8e
 testrun_emu_offline :
cf6c8e
-	$(PERL) -I$$HOME/.cpan -Ilib -MCPAN::MyConfig -MCPAN -e '@CPAN::Defaultsites = qw(file:///dev/null); $$CPAN::Config->{urllist} = []; shell'
cf6c8e
+	$(PERL) -I$$HOME/.XCPANCONFIGNAMEX -Ilib -MCPAN::MyConfig -MCPAN -e '@CPAN::Defaultsites = qw(file:///dev/null); $$CPAN::Config->{urllist} = []; shell'
cf6c8e
 
cf6c8e
 rm_mirrored_by :
cf6c8e
-	rm -f $$HOME/.cpan/sources/MIRRORED.BY*
cf6c8e
+	rm -f $$HOME/.XCPANCONFIGNAMEX/sources/MIRRORED.BY*
cf6c8e
 
cf6c8e
 testrun_http_only :
cf6c8e
-	$(PERL) -I$$HOME/.cpan -Ilib -MCPAN::MyConfig -MCPAN -e '$$CPAN::Config->{urllist} = [qw(http://www.planet-elektronik.de/CPAN/)]; shell'
cf6c8e
+	$(PERL) -I$$HOME/.XCPANCONFIGNAMEX -Ilib -MCPAN::MyConfig -MCPAN -e '$$CPAN::Config->{urllist} = [qw(http://www.planet-elektronik.de/CPAN/)]; shell'
cf6c8e
 
cf6c8e
 urllist :
cf6c8e
-	$(PERL) -Ilib -MCPAN -MCPAN::FirstTime -e 'CPAN::FirstTime::init("$$ENV{HOME}/.cpan/CPAN/MyConfig", args => [qw(urllist)])'
cf6c8e
+	$(PERL) -Ilib -MCPAN -MCPAN::FirstTime -e 'CPAN::FirstTime::init("$$ENV{HOME}/.XCPANCONFIGNAMEX/CPAN/MyConfig", args => [qw(urllist)])'
cf6c8e
 
cf6c8e
 runadmin :
cf6c8e
 	$(PERL) -Ilib -MCPAN::Admin -eshell
cf6c8e
diff --git a/README b/README
cf6c8e
index aaf3101..2618d71 100644
cf6c8e
--- a/README
cf6c8e
+++ b/README
cf6c8e
@@ -269,7 +269,7 @@ DESCRIPTION
cf6c8e
       restarting the whole get/make/test/install procedure from scratch.
cf6c8e
 
cf6c8e
     Lockfile
cf6c8e
-      Interactive sessions maintain a lockfile, by default "~/.cpan/.lock".
cf6c8e
+      Interactive sessions maintain a lockfile, by default "~/.XCPANCONFIGNAMEX/.lock".
cf6c8e
       Batch jobs can run without a lockfile and not disturb each other.
cf6c8e
 
cf6c8e
       The shell offers to run in *downgraded mode* when another process is
cf6c8e
@@ -329,7 +329,7 @@ DESCRIPTION
cf6c8e
         "install_tested".
cf6c8e
 
cf6c8e
   mkmyconfig
cf6c8e
-    mkmyconfig() writes your own CPAN::MyConfig file into your "~/.cpan/"
cf6c8e
+    mkmyconfig() writes your own CPAN::MyConfig file into your "~/.XCPANCONFIGNAMEX/"
cf6c8e
     directory so that you can save your own preferences instead of the
cf6c8e
     system-wide ones.
cf6c8e
 
cf6c8e
@@ -530,7 +530,7 @@ CONFIGURATION
cf6c8e
 
cf6c8e
     Default values defined in the CPAN/Config.pm file can be overridden in a
cf6c8e
     user specific file: CPAN/MyConfig.pm. Such a file is best placed in
cf6c8e
-    "$HOME/.cpan/CPAN/MyConfig.pm", because "$HOME/.cpan" is added to the
cf6c8e
+    "$HOME/.XCPANCONFIGNAMEX/CPAN/MyConfig.pm", because "$HOME/.XCPANCONFIGNAMEX" is added to the
cf6c8e
     search path of the CPAN module before the use() or require() statements.
cf6c8e
     The mkmyconfig command writes this file for you.
cf6c8e
 
cf6c8e
@@ -2043,8 +2043,8 @@ FAQ
cf6c8e
 
cf6c8e
         You may want to configure something like
cf6c8e
 
cf6c8e
-          o conf make_arg "| tee -ai /root/.cpan/logs/make.out"
cf6c8e
-          o conf make_install_arg "| tee -ai /root/.cpan/logs/make_install.out"
cf6c8e
+          o conf make_arg "| tee -ai /root/.XCPANCONFIGNAMEX/logs/make.out"
cf6c8e
+          o conf make_install_arg "| tee -ai /root/.XCPANCONFIGNAMEX/logs/make_install.out"
cf6c8e
 
cf6c8e
         so that STDOUT is captured in a file for later inspection.
cf6c8e
 
cf6c8e
diff --git a/lib/CPAN.pm b/lib/CPAN.pm
cf6c8e
index 4f02850..2c117b4 100644
cf6c8e
--- a/lib/CPAN.pm
cf6c8e
+++ b/lib/CPAN.pm
cf6c8e
@@ -1771,7 +1771,7 @@ restarting the whole get/make/test/install procedure from scratch.
cf6c8e
 
cf6c8e
 =item Lockfile
cf6c8e
 
cf6c8e
-Interactive sessions maintain a lockfile, by default C<~/.cpan/.lock>.
cf6c8e
+Interactive sessions maintain a lockfile, by default C<~/.XCPANCONFIGNAMEX/.lock>.
cf6c8e
 Batch jobs can run without a lockfile and not disturb each other.
cf6c8e
 
cf6c8e
 The shell offers to run in I<downgraded mode> when another process is
cf6c8e
@@ -1845,7 +1845,7 @@ C<install_tested>.
cf6c8e
 
cf6c8e
 =head2 mkmyconfig
cf6c8e
 
cf6c8e
-mkmyconfig() writes your own CPAN::MyConfig file into your C<~/.cpan/>
cf6c8e
+mkmyconfig() writes your own CPAN::MyConfig file into your C<~/.XCPANCONFIGNAMEX/>
cf6c8e
 directory so that you can save your own preferences instead of the
cf6c8e
 system-wide ones.
cf6c8e
 
cf6c8e
@@ -2060,7 +2060,7 @@ in a file CPAN/Config.pm.
cf6c8e
 
cf6c8e
 Default values defined in the CPAN/Config.pm file can be
cf6c8e
 overridden in a user specific file: CPAN/MyConfig.pm. Such a file is
cf6c8e
-best placed in C<$HOME/.cpan/CPAN/MyConfig.pm>, because C<$HOME/.cpan> is
cf6c8e
+best placed in C<$HOME/.XCPANCONFIGNAMEX/CPAN/MyConfig.pm>, because C<$HOME/.XCPANCONFIGNAMEX> is
cf6c8e
 added to the search path of the CPAN module before the use() or
cf6c8e
 require() statements. The mkmyconfig command writes this file for you.
cf6c8e
 
cf6c8e
@@ -3803,8 +3803,8 @@ there is too much output to keep track of.
cf6c8e
 
cf6c8e
 You may want to configure something like
cf6c8e
 
cf6c8e
-  o conf make_arg "| tee -ai /root/.cpan/logs/make.out"
cf6c8e
-  o conf make_install_arg "| tee -ai /root/.cpan/logs/make_install.out"
cf6c8e
+  o conf make_arg "| tee -ai /root/.XCPANCONFIGNAMEX/logs/make.out"
cf6c8e
+  o conf make_install_arg "| tee -ai /root/.XCPANCONFIGNAMEX/logs/make_install.out"
cf6c8e
 
cf6c8e
 so that STDOUT is captured in a file for later inspection.
cf6c8e
 
cf6c8e
diff --git a/lib/CPAN/HandleConfig.pm b/lib/CPAN/HandleConfig.pm
cf6c8e
index c72439f..a6b92e8 100644
cf6c8e
--- a/lib/CPAN/HandleConfig.pm
cf6c8e
+++ b/lib/CPAN/HandleConfig.pm
cf6c8e
@@ -544,7 +544,7 @@ sub cpan_home_dir_candidates {
cf6c8e
     push @dirs, $ENV{USERPROFILE} if $ENV{USERPROFILE};
cf6c8e
 
cf6c8e
     $CPAN::Config->{load_module_verbosity} = $old_v;
cf6c8e
-    my $dotcpan = $^O eq 'VMS' ? '_cpan' : '.cpan';
cf6c8e
+    my $dotcpan = $^O eq 'VMS' ? '_XCPANCONFIGNAMEX' : '.XCPANCONFIGNAMEX';
cf6c8e
     @dirs = map { File::Spec->catdir($_, $dotcpan) } grep { defined } @dirs;
cf6c8e
     return wantarray ? @dirs : $dirs[0];
cf6c8e
 }
cf6c8e
diff --git a/scripts/cpan-mirrors b/scripts/cpan-mirrors
cf6c8e
index fe0e29c..493c140 100644
cf6c8e
--- a/scripts/cpan-mirrors
cf6c8e
+++ b/scripts/cpan-mirrors
cf6c8e
@@ -143,7 +143,7 @@ to your configuration.
cf6c8e
 
cf6c8e
 If you don't have a F<MIRRORED.BY> file, this program will download one
cf6c8e
 for you. It looks through your existing C<urllist> configuration and
cf6c8e
-then default locations. It stores it in C<~/.cpan> (or your configured
cf6c8e
+then default locations. It stores it in C<~/.XCPANCONFIGNAMEX> (or your configured
cf6c8e
 location to store files).
cf6c8e
 
cf6c8e
 =head1 TO DO
cf6c8e
-- 
cf6c8e
2.13.6
cf6c8e