Sfoglia il codice sorgente

Make dpkg-architecture not print the warning about a missmatch between
gcc target machine type and GNU target system type if the actions are
'-e' or '-i'.

Guillem Jover 20 anni fa
parent
commit
6e2356c0e9
3 ha cambiato i file con 10 aggiunte e 1 eliminazioni
  1. 6 0
      ChangeLog
  2. 3 0
      debian/changelog
  3. 1 1
      scripts/dpkg-architecture.pl

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+2006-01-28  Guillem Jover  <guillem@debian.org>
+
+	* scripts/dpkg-architecture.pl: Do not print the warning about a
+	missmatch between gcc target machine type and GNU target system
+	type if the actions are '-e' or '-i'.
+
 2006-01-27  Frank Lichtenheld  <djpig@debian.org>
 
 	* scripts/dpkg-shlibdeps.pl: Honor LD_LIBRARY_PATH when

+ 3 - 0
debian/changelog

@@ -29,6 +29,9 @@ dpkg (1.13.13~) unstable; urgency=low
   * Document the correct format string for dpkg-query --showformat option.
     Update -l example and lower case the program name in the title header.
     Thanks to Zefram <zefram@fysh.org>. Closes: #174976
+  * Make dpkg-architecture not print the warning about a missmatch between
+    gcc target machine type and GNU target system type if the actions are
+    '-e' or '-i'.
 
  --
 

+ 1 - 1
scripts/dpkg-architecture.pl

@@ -200,7 +200,7 @@ $deb_host_gnu_type = $req_host_gnu_type if $req_host_gnu_type ne '';
 
 #$gcc = `\${CC:-gcc} --print-libgcc-file-name`;
 #$gcc =~ s!^.*gcc-lib/(.*)/\d+(?:.\d+)*/libgcc.*$!$1!s;
-&warn("Specified GNU system type $deb_host_gnu_type does not match gcc system type $gcc.") if ($gcc ne '') && ($gcc ne $deb_host_gnu_type);
+&warn("Specified GNU system type $deb_host_gnu_type does not match gcc system type $gcc.") if !($req_is_arch or $req_eq_arch) && ($gcc ne '') && ($gcc ne $deb_host_gnu_type);
 
 # Split the Debian and GNU names
 ($deb_host_arch_os, $deb_host_arch_cpu) = &split_debian($deb_host_arch);