Просмотр исходного кода

Set PERL_DL_NONLAZY to 1 in perl scripts called by configuration scripts

* scripts/dpkg-divert.pl, scripts/update-alternatives.pl,
scripts/install-info.pl, scripts/dpkg-statoverride.pl: Set
PERL_DL_NONLAZY to 1 so that the usage of Locale::Gettext doesn't
cause run-time failures when this perl binary module is not
compiled for the corresponding perl version (and this happens in
configuration scripts, in particular preinst, during upgrades).
See http://bugs.debian.org/479711 for details.
Raphael Hertzog лет назад: 18
Родитель
Сommit
b5b9b42fce
6 измененных файлов с 27 добавлено и 0 удалено
  1. 9 0
      ChangeLog
  2. 2 0
      debian/changelog
  3. 4 0
      scripts/dpkg-divert.pl
  4. 4 0
      scripts/dpkg-statoverride.pl
  5. 4 0
      scripts/install-info.pl
  6. 4 0
      scripts/update-alternatives.pl

+ 9 - 0
ChangeLog

@@ -1,3 +1,12 @@
+2008-06-09  Raphael Hertzog  <hertzog@debian.org>
+
+	* scripts/dpkg-divert.pl, scripts/update-alternatives.pl,
+	scripts/install-info.pl, scripts/dpkg-statoverride.pl: Set
+	PERL_DL_NONLAZY to 1 so that the usage of Locale::Gettext doesn't
+	cause run-time failures when this perl binary module is not
+	compiled for the corresponding perl version (and this happens in
+	configuration scripts, in particular preinst, during upgrades).
+
 2008-06-08  Raphael Hertzog  <hertzog@debian.org>
 2008-06-08  Raphael Hertzog  <hertzog@debian.org>
 
 
 	* scripts/Dpkg/Source/Patch.pm (analyze): Be less strict in
 	* scripts/Dpkg/Source/Patch.pm (analyze): Be less strict in

+ 2 - 0
debian/changelog

@@ -18,6 +18,8 @@ dpkg (1.14.20) UNRELEASED; urgency=low
   * The automatically created patches (in source package formats "2.0" and
   * The automatically created patches (in source package formats "2.0" and
     "3.0 (quilt)") will now contain "/dev/null" as previous filename when the
     "3.0 (quilt)") will now contain "/dev/null" as previous filename when the
     patch creates a new file (instead of putting the same name).
     patch creates a new file (instead of putting the same name).
+  * Set PERL_DL_NONLZY to 1 in perl scripts that are likely to be called in
+    package's configuration scripts to work around the perl bug #479711.
 
 
   [ Helge Kreutzmann ]
   [ Helge Kreutzmann ]
   * Fix a typo in dselect.1
   * Fix a typo in dselect.1

+ 4 - 0
scripts/dpkg-divert.pl

@@ -1,5 +1,9 @@
 #!/usr/bin/perl --
 #!/usr/bin/perl --
 
 
+BEGIN { # Work-around for bug #479711 in perl
+    $ENV{PERL_DL_NONLAZY} = 1;
+}
+
 use strict;
 use strict;
 use warnings;
 use warnings;
 
 

+ 4 - 0
scripts/dpkg-statoverride.pl

@@ -1,5 +1,9 @@
 #! /usr/bin/perl
 #! /usr/bin/perl
 
 
+BEGIN { # Work-around for bug #479711 in perl
+    $ENV{PERL_DL_NONLAZY} = 1;
+}
+
 use strict;
 use strict;
 use warnings;
 use warnings;
 
 

+ 4 - 0
scripts/install-info.pl

@@ -1,5 +1,9 @@
 #!/usr/bin/perl --
 #!/usr/bin/perl --
 
 
+BEGIN { # Work-around for bug #479711 in perl
+    $ENV{PERL_DL_NONLAZY} = 1;
+}
+
 use Text::Wrap;
 use Text::Wrap;
 use Dpkg;
 use Dpkg;
 use Dpkg::Gettext;
 use Dpkg::Gettext;

+ 4 - 0
scripts/update-alternatives.pl

@@ -1,5 +1,9 @@
 #!/usr/bin/perl --
 #!/usr/bin/perl --
 
 
+BEGIN { # Work-around for bug #479711 in perl
+    $ENV{PERL_DL_NONLAZY} = 1;
+}
+
 use strict;
 use strict;
 use warnings;
 use warnings;