New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install_lib.pl emits warnings when installperl is run with destdir #10314
Comments
From @toddrCreated by @toddrrunning 'LD_LIBRARY_PATH=/usr/home/build/perl-5.12.0 ./perl installperl --destdir=/var/local/tmp/perl-root' Use of uninitialized value $dev2 in numeric eq (==) at ./install_lib.pl line 123. replacing == with the smart match operator seems to be the best DWIM fix. Perl Info
|
From @toddrInline Patchdiff --git a/install_lib.pl b/install_lib.pl
index ae8ba0a..8d37a0c 100644
--- a/install_lib.pl
+++ b/install_lib.pl
@@ -120,7 +120,7 @@ sub samepath {
my($dev1, $ino1, $dev2, $ino2);
($dev1, $ino1) = stat($p1);
($dev2, $ino2) = stat($p2);
- ($dev1 == $dev2 && $ino1 == $ino2);
+ ($dev1 ~~ $dev2 && $ino1 ~~ $ino2);
}
else {
1; |
From @toddrThis should probably be a 5.12.1 item On Apr 16, 2010, at 6:03 PM, Todd Rinaldo (via RT) wrote:
|
From @toddrA patch was provided in the ticket to change install_lib.pl to use the smart match operator so the warnings won't happen. Could this be added to blead please? Thanks, |
From @toddrInline Patchdiff --git a/install_lib.pl b/install_lib.pl
index ae8ba0a..8d37a0c 100644
--- a/install_lib.pl
+++ b/install_lib.pl
@@ -120,7 +120,7 @@ sub samepath {
my($dev1, $ino1, $dev2, $ino2);
($dev1, $ino1) = stat($p1);
($dev2, $ino2) = stat($p2);
- ($dev1 == $dev2 && $ino1 == $ino2);
+ ($dev1 ~~ $dev2 && $ino1 ~~ $ino2);
}
else {
1; |
From @toddrProviding proper formatted patch |
From @toddrFrom 61babc283d0de2c35102870aaf7ce06efa10b6e6 Mon Sep 17 00:00:00 2001 running the following produces 7 warnings like this on my system: Use of uninitialized value $dev2 in numeric eq (==) at ./install_lib.pl line 123. replacing == with ~~ (the smart match operator) seems to be the best DWIM fix. install_lib.pl | 2 +- Inline Patchdiff --git a/install_lib.pl b/install_lib.pl
index ae8ba0a..8d37a0c 100644
--- a/install_lib.pl
+++ b/install_lib.pl
@@ -120,7 +120,7 @@ sub samepath {
my($dev1, $ino1, $dev2, $ino2);
($dev1, $ino1) = stat($p1);
($dev2, $ino2) = stat($p2);
- ($dev1 == $dev2 && $ino1 == $ino2);
+ ($dev1 ~~ $dev2 && $ino1 ~~ $ino2);
}
else {
1;
--
1.7.2 |
The RT System itself - Status changed from 'new' to 'open' |
@rafl - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#74444 (status was 'resolved')
Searchable as RT74444$
The text was updated successfully, but these errors were encountered: