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

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