Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.

X Report information
Id: 5903
Status: resolved
Left: 0 min
Priority: 0/0
Queue: ExtUtils-Install

Owner: YVES <yves [...] cpan.org>
Requestors: jand [...] ActiveState.com
Cc:
AdminCc:

Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)

X Attachments



X History Display mode: Brief headersFull headers
#   Sat Apr 03 15:38:00 2004 MSCHWERN - Ticket created  
Subject: Reduce ExtUtils::Install verbosity
[text/plain 4.5k]
I've been looking at the diffs between the latest ActivePerl release and the
standard Perl distribution and found a number of changes that should be
integrated back, in my opinion. Most of them reduce the amount of
"informational" messages printed out during normal usage. These messages
often crowd out actual errors, so new users don't recognize when something
actually requires their attention.

The attached first patch suppresses some logging from ExtUtils::Install.
The MakeMaker tests rely on these messages, so we call them with
`make install VERBINST=1`.

The patch also modifies the architecture string written by `make ppd` to
include the Perl version number for Perl 5.8 and later to differentiate
between binary incompatible versions.

All diffs are against Perl 5.8.3, but apply against perl-current with offsets.

Cheers,
-Jan

--- lib/ExtUtils/Install.pm~ Mon Mar 22 16:02:25 2004
+++ lib/ExtUtils/Install.pm Mon Mar 22 16:04:01 2004
@@ -205,7 +205,7 @@
if ($pack{'write'}) {
$dir = install_rooted_dir(dirname($pack{'write'}));
mkpath($dir,0,0755) unless $nonono;
- print "Writing $pack{'write'}\n";
+ print "Writing $pack{'write'}\n" if $verbose;
$packlist->write(install_rooted_file($pack{'write'})) unless $nonono;
}
}
@@ -370,7 +370,7 @@
}
# if not verbose, we just say nothing
} else {
- print "Unlinking $targetfile (shadowing?)\n";
+ print "Unlinking $targetfile (shadowing?)\n" if $verbose;
forceunlink($targetfile);
}
}
--- lib/ExtUtils/MM_Unix.pm~ Mon Mar 22 16:02:25 2004
+++ lib/ExtUtils/MM_Unix.pm Mon Mar 22 16:04:01 2004
@@ -3357,7 +3357,14 @@

}

- $ppd_xml .= sprintf <<'PPD_OUT', $Config{archname};
+
+ my $archname = $Config{archname};
+ if ($^V ge v5.8) {
+# archname did not change from 5.6 to 5.8, but those versions may not be not
+binary compatible
+# so now we append the part of the version that changes when binary
+compatibility may change
+ $archname .= "-". substr($Config{version},0,3);
+ }
+ $ppd_xml .= sprintf <<'PPD_OUT', $archname;
<OS NAME="$(OSNAME)" />
<ARCHITECTURE NAME="%s" />
PPD_OUT
--- lib/ExtUtils/t/basic.t~ Mon Mar 22 16:02:26 2004
+++ lib/ExtUtils/t/basic.t Mon Mar 22 16:04:02 2004
@@ -96,7 +96,13 @@
' <DEPENDENCY>' );
like( $ppd_html, qr{^\s*<OS NAME="$Config{osname}" />}m,
' <OS>' );
-like( $ppd_html, qr{^\s*<ARCHITECTURE NAME="$Config{archname}" />}m,
+my $archname = $Config{archname};
+if ($^V ge v5.8) {
+# archname did not change from 5.6 to 5.8, but those versions may not be not
+binary compatible
+# so now we append the part of the version that changes when binary
+compatibility may change
+ $archname .= "-". substr($Config{version},0,3);
+}
+like( $ppd_html, qr{^\s*<ARCHITECTURE NAME="$archname" />}m,
' <ARCHITECTURE>');
like( $ppd_html, qr{^\s*<CODEBASE HREF="" />}m, ' <CODEBASE>');
like( $ppd_html, qr{^\s*</IMPLEMENTATION>}m, ' </IMPLEMENTATION>');
@@ -118,7 +124,7 @@
diag $test_out;


-my $install_out = run("$make install");
+my $install_out = run("$make install VERBINST=1");
is( $?, 0, 'install' ) || diag $install_out;
like( $install_out, qr/^Installing /m );
like( $install_out, qr/^Writing /m );
@@ -138,7 +144,7 @@
SKIP: {
skip "VMS install targets do not preserve $(PREFIX)", 8 if $Is_VMS;

- $install_out = run("$make install PREFIX=elsewhere");
+ $install_out = run("$make install VERBINST=1 PREFIX=elsewhere");
is( $?, 0, 'install with PREFIX override' ) || diag $install_out;
like( $install_out, qr/^Installing /m );
like( $install_out, qr/^Writing /m );
@@ -157,7 +163,7 @@
SKIP: {
skip "VMS install targets do not preserve $(DESTDIR)", 10 if $Is_VMS;

- $install_out = run("$make install PREFIX= DESTDIR=other");
+ $install_out = run("$make install VERBINST=1 PREFIX= DESTDIR=other");
is( $?, 0, 'install with DESTDIR' ) ||
diag $install_out;
like( $install_out, qr/^Installing /m );
@@ -197,7 +203,7 @@
SKIP: {
skip "VMS install targets do not preserve $(PREFIX)", 9 if $Is_VMS;

- $install_out = run("$make install PREFIX=elsewhere DESTDIR=other/");
+ $install_out = run("$make install VERBINST=1 PREFIX=elsewhere
+DESTDIR=other/");
is( $?, 0, 'install with PREFIX override and DESTDIR' ) ||
diag $install_out;
like( $install_out, qr/^Installing /m );

#   Sat Dec 18 21:32:21 2004 MSCHWERN - Correspondence added  
[text/plain 187b]
http://www.makemaker.org/wiki/index.cgi?ModulesForSale

ExtUtils::Install is set to be moved into its own distribution so I'll
just pass the buck along to whomever winds up handling that.
#   Sat Dec 18 21:32:22 2004 MSCHWERN - Status changed from 'new' to 'stalled'  
#   Wed May 10 15:35:45 2006 MSCHWERN - Queue changed from ExtUtils-MakeMaker to ExtUtils-Install  
#   Sat Mar 01 10:59:36 2008 YVES - Correspondence added  
[text/plain 662b]
On Sat Apr 03 15:38:00 2004, MSCHWERN wrote:
> I've been looking at the diffs between the latest ActivePerl release
> and the
> standard Perl distribution and found a number of changes that should
> be
> integrated back, in my opinion. Most of them reduce the amount of
> "informational" messages printed out during normal usage. These
> messages
> often crowd out actual errors, so new users don't recognize when
> something
> actually requires their attention.

This report is quite old, can it be closed from the POV of
ExtUtils::Install? Quite a bit of effort has gone into both win32
support and how information is reported back to the user.

cheers,
Yves
#   Sat Mar 01 10:59:40 2008 RT_System - Status changed from 'stalled' to 'open'  
#   Sat Mar 01 11:01:02 2008 YVES - Taken  
#   Sat Mar 01 11:10:02 2008 YVES - Status changed from 'open' to 'stalled'  
#   Wed Jul 16 06:34:37 2008 GAAS - Correspondence added  
[text/plain 237b]
This is a stripped down version of the patch (relative to 1.50) that we
have had in ActivePerl for a long time. It's an improvement if the
"Writing $file" noise for each file installed should only show when
verbosity is turned up a bit.

[application/octet-stream 2.3k]
Message body not shown because it is too large or is not plain text.
#   Wed Jul 16 06:34:52 2008 RT_System - Status changed from 'stalled' to 'open'  
#   Wed Nov 05 16:11:44 2008 YVES - Correspondence added  
[text/plain 19b]
Resolved in 1.50_02
#   Wed Nov 05 16:11:46 2008 YVES - Status changed from 'open' to 'resolved'