Преглед изворни кода

dpkg-shlibdeps: bugfix, avoid unwanted modification of @pkg_shlibs by my_find_library

Raphael Hertzog пре 19 година
родитељ
комит
c8b152c276
2 измењених фајлова са 4 додато и 1 уклоњено
  1. 2 0
      ChangeLog
  2. 2 1
      scripts/dpkg-shlibdeps.pl

+ 2 - 0
ChangeLog

@@ -5,6 +5,8 @@
 	* debian/rules: include cputable ostable triplettable in
 	build-tree so that they are available during make check (Dpkg.pm
 	exports ".." as $pkgdatadir during tests).
+	* scripts/dpkg-shlibdeps.pl: bugfix, avoid unwanted modification
+	of @pkg_shlibs by my_find_library.
 
 2007-10-14  Raphael Hertzog  <hertzog@debian.org>
 

+ 2 - 1
scripts/dpkg-shlibdeps.pl

@@ -434,7 +434,8 @@ sub my_find_library {
     # that provides shlibs file...)
     # TODO: we should probably replace that by a cleaner way to look into
     # the various temporary build directories...
-    foreach my $builddir (map { s{/DEBIAN/shlibs$}{}; $_ } @pkg_shlibs) {
+    my @copy = (@pkg_shlibs);
+    foreach my $builddir (map { s{/DEBIAN/shlibs$}{}; $_ } @copy) {
 	$file = find_library($lib, \@RPATH, $format, $builddir);
 	return $file if defined($file);
     }