]> git.donarmstrong.com Git - debian/debian-policy.git/commitdiff
Fix multiarch FHS exception for i386 in light of recent discussions
authorSteve Langasek <steve.langasek@canonical.com>
Mon, 21 Mar 2011 09:17:14 +0000 (02:17 -0700)
committerRuss Allbery <rra@debian.org>
Mon, 4 Apr 2011 02:46:09 +0000 (19:46 -0700)
The current value of DEB_HOST_GNU_TYPE on i386 is unsuitable for
cross-distro standardization, because it varies according to the default CPU
target of the toolchain.  Discussion with the toolchain and dpkg maintainers
yielded an alternative solution, a new dpkg-architecture variable
DEB_HOST_MULTIARCH which is committed to dpkg upstream in commit
af3153d09aa3ed5597d6d415e5ab7cc3ba972e7c and will be included in the upload
of dpkg 1.16.0.  Update Policy to document this new requirement for
multiarch.

policy.sgml
upgrading-checklist.sgml

index 6e04c813f9861ef90e421f15cce2c6ec6b46d986..c708a18620a18bc14e9cdf19b4a7bd8fc8bce263 100644 (file)
@@ -6027,13 +6027,13 @@ install -m644 debian/shlibs.<var>package</var> debian/<var>package</var>/DEBIAN/
                   <file>/lib/<var>triplet</var></file> and
                   <file>/usr/lib/<var>triplet</var></file>, where
                   <tt><var>triplet</var></tt> is the value returned by
-                  <tt>dpkg-architecture -qDEB_HOST_GNU_TYPE</tt> for the
+                  <tt>dpkg-architecture -qDEB_HOST_MULTIARCH</tt> for the
                   architecture of the package.  Packages may <em>not</em>
                   install files to any <var>triplet</var> path other
                   than the one matching the architecture of that package;
                   for instance, an <tt>Architecture: amd64</tt> package
                   containing 32-bit x86 libraries may not install these
-                  libraries to <file>/usr/lib/i486-linux-gnu</file>.
+                  libraries to <file>/usr/lib/i386-linux-gnu</file>.
                   <footnote>
                     This is necessary in order to reserve the directories for
                     use in cross-installation of library packages from other
index e69607733ac978fd805ada3cb0deae562ed28234..2138b5ccec240182956e357fbe1ca9407fa47abb 100644 (file)
@@ -58,6 +58,13 @@ Unreleased.
   that install <prgn>/usr/bin/mailx</prgn> and implement at least the
   POSIX-required interface.
   </item>
+<tag>9.1.1</tag>
+  <item>Packages installing to architecture-specific subdirectories of
+  <file>/url/lib</file> must use the value returned by
+  <prgn>dpkg-architecture -qDEB_HOST_MULTIARCH</prgn>, not by
+  <prgn>dpkg-architecture -qDEB_HOST_GNU_TYPE</prgn>; this is a path change
+  on i386 architectures and a no-op for other architectures.
+  </item>
 </taglist></p>
 
 <sect> Version 3.9.1.0