Skip Menu |

This queue is for tickets about the Test-Harness CPAN distribution.

Report information
The Basics
Id: 69335
Status: rejected
Priority: 0/
Queue: Test-Harness

People
Owner: Nobody in particular
Requestors: vincent [...] vinc17.net
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 3.23
Fixed in: (no value)



Subject: TAP/Harness.pm not installed
The TAP/Harness.pm file is not installed. This makes the installation of various modules fails, because this file is required for testing them. The problem seems to come from that fact that the installation directory is ignored for some parts: installation of Test-Harness 3.23 tries to uninstall files from the system installation (in /usr), while I'm installing the module in my HOME directory. The system is Debian/lenny, with perl v5.10.0 (from Debian). The libtest-harness-perl Debian package isn't installed. I'm going to ask the sysadmin to install it and do a full reinstall of Perl modules, hoping this would work as a workaround. In the mean time, here's what I get with "force install Test::Harness" and here's my configuration: Show quoted text
cpan> force install Test::Harness
Running install for module 'Test::Harness' Running make for A/AN/ANDYA/Test-Harness-3.23.tar.gz Prepending /home/vlefevre/.cpan/build/Test-Harness-3.23-XUuaBD/blib/arch /home/vlefevre/.cpan/build/Test-Harness-3.23-XUuaBD/blib/lib to PERL5LIB for 'get' Has already been unwrapped into directory /home/vlefevre/.cpan/build/Test-Harness-3.23-XUuaBD Prepending /home/vlefevre/.cpan/build/Test-Harness-3.23-XUuaBD/blib/arch /home/vlefevre/.cpan/build/Test-Harness-3.23-XUuaBD/blib/lib to PERL5LIB for 'make' Has already been made Prepending /home/vlefevre/.cpan/build/Test-Harness-3.23-XUuaBD/blib/arch /home/vlefevre/.cpan/build/Test-Harness-3.23-XUuaBD/blib/lib to PERL5LIB for 'test' Running make test Has already been tested successfully Running make install Prepending /home/vlefevre/.cpan/build/Test-Harness-3.23-XUuaBD/blib/arch /home/vlefevre/.cpan/build/Test-Harness-3.23-XUuaBD/blib/lib to PERL5LIB for 'install' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING: WARNING: Failed chmod(438, /usr/share/perl/5.10/Test/Harness.pm): Operation not permitted !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ERROR: Cannot unlink '/usr/share/perl/5.10/Test/Harness.pm': Permission denied !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! at -e line 1 make: *** [pure_perl_install] Error 13 ANDYA/Test-Harness-3.23.tar.gz /usr/bin/make install UNINST=1 -- NOT OK Failed during this command: ANDYA/Test-Harness-3.23.tar.gz : install NO Show quoted text
cpan> o conf
$CPAN::Config options from '/home/vlefevre/.cpan/CPAN/MyConfig.pm': commit [Commit changes to disk] defaults [Reload defaults from disk] help [Short help about 'o conf' usage] init [Interactive setting of all options] applypatch undef auto_commit [0] build_cache [10] build_dir [/home/vlefevre/.cpan/build] build_dir_reuse undef build_requires_install_policy undef bzip2 [/bin/bzip2] cache_metadata [1] check_sigs undef colorize_debug undef colorize_output undef colorize_print undef colorize_warn undef commandnumber_in_prompt undef commands_quote undef cpan_home [/home/vlefevre/.cpan] curl [/usr/bin/curl] dontload_hash dontload_list undef ftp [/usr/bin/ftp] ftp_passive [1] ftp_proxy [] getcwd [cwd] gpg [/usr/bin/gpg] gzip [/bin/gzip] histfile [/home/vlefevre/.cpan/histfile] histsize [100] http_proxy [] inactivity_timeout [0] index_expire [1] inhibit_startup_message [0] keep_source_where [/home/vlefevre/.cpan/sources] load_module_verbosity undef lynx [/usr/bin/lynx] make [/usr/bin/make] make_arg [-j2] make_install_arg [UNINST=1] make_install_make_command [/usr/bin/make] makepl_arg [PREFIX=/home/vlefevre/debian5 SITELIBEXP=/home/vlefevre/debian5/lib/site_perl LIB=/home/vlefevre/debian5/lib/site_perl INSTALLMAN1DIR=/home/vlefevre/debian5/share/man/man1 INSTALLSITEMAN1DIR=/home/vlefevre/debian5/share/man/man1 INSTALLMAN3DIR=/home/vlefevre/debian5/share/man/man3 INSTALLSITEMAN3DIR=/home/vlefevre/debian5/share/man/man3] mbuild_arg [] mbuild_install_arg [--uninst 1] mbuild_install_build_command [./Build] mbuildpl_arg [] ncftp undef ncftpget [/usr/bin/ncftpget] no_proxy [] pager [less -is] password undef patch undef prefer_installer [EUMM] prefs_dir undef prerequisites_policy [ask] proxy_pass undef proxy_user undef randomize_urllist undef scan_cache [atstart] shell [/home/vlefevre/x86_64/bin/zsh] show_unparsable_versions undef show_upload_date [1] show_zero_versions undef tar [/bin/tar] tar_verbosity undef term_is_latin [1] term_ornaments undef test_report undef unzip [/usr/bin/unzip] urllist 0 [http://cpan.cict.fr/] 1 [http://cpan.mirrors.easynet.fr/] 2 [ftp://ftp.pasteur.fr/pub/computing/CPAN/] 3 [ftp://ftp.u-strasbg.fr/CPAN] use_sqlite undef username undef wait_list undef wget [/usr/bin/wget] yaml_load_code undef yaml_module undef
This is not a bug in Test::Harness bug an issue with the configuration of your CPAN client. You'll have similar problems upgrading other core modules. The main issue is that you've set CPAN to uninstall the existing module before installing the new one (mbuild_install_arg and make_install_arg set to uninst=1). This is only possible if you are root, and it's usually a bad idea. It means the CPAN shell will uninstall the version of Test::Harness installed by Debian. You don't want to do that, leave the modules installed by Debian be and let Debian manage them. The version you install should be loaded by Perl first. To stop the CPAN shell from uninstalling the Debian copies, unset mbuild_install_arg and make_install_arg. o conf mbuild_install_arg '' o conf make_install_arg '' That should fix things. If you need any more help, I'd suggest contacting the Perl beginners list or ask on stackoverflow.com. http://learn.perl.org/faq/beginners.html
From: vincent [...] vinc17.org
Le Jeu 07 Jui 2011 18:36:00, MSCHWERN a écrit : Show quoted text
> The main issue is that you've set CPAN to uninstall the existing module > before installing the new one (mbuild_install_arg and make_install_arg > set to uninst=1). This is only possible if you are root, and it's > usually a bad idea.
I've never set them (and didn't know what they meant). This was the default config from CPAN.pm 1.87 (done 5 years ago).
From: vincent [...] vinc17.org
Le Jeu 07 Jui 2011 21:30:13, vincent@vinc17.org a écrit : Show quoted text
> I've never set them (and didn't know what they meant). This was the > default config from CPAN.pm 1.87 (done 5 years ago).
I don't know why the RT system changed the status with my reply. I've run cpan after removing my old MyConfig.pm file, and the default config is now correct concerning make_install_arg and mbuild_install_arg.
On Thu Jul 07 21:38:09 2011, vincent@vinc17.org wrote: Show quoted text
> I don't know why the RT system changed the status with my reply.
I just does that. Its simultaneously useful and annoying. If you're all set, don't reply. Show quoted text
> I've run cpan after removing my old MyConfig.pm file, and the default > config is now correct concerning make_install_arg and mbuild_install_arg.
Good. In the past, vendors have configured the CPAN shell in odd ways.