Package: dpkg Version: 1.13.11.1 Severity: minor Tags: patch Hi,
as explained in groff_char(7), ` and ' are replaced by quotation marks when processed by groff, which means that cut'n'pasting these examples produce errors, which is quite annoying. Here is a patch. Denis
Index: man/C/dpkg.1 =================================================================== --- man/C/dpkg.1 (révision 50) +++ man/C/dpkg.1 (copie de travail) @@ -544,7 +544,7 @@ .SH EXAMPLES To list packages related to the editor vi: .br -\fB dpkg \-l '*vi*'\fP +\fB dpkg \-l \(aq*vi*\(aq\fP .br To see the entries in \fI/var/lib/dpkg/available\fP on two packages: Index: man/C/dpkg-query.1 =================================================================== --- man/C/dpkg-query.1 (révision 50) +++ man/C/dpkg-query.1 (copie de travail) @@ -22,7 +22,7 @@ .T .nf - \fBdpkg\-query \-l 'libc5*'\fP + \fBdpkg\-query \-l \(aqlibc5*\(aq\fP .fi .TP \fB\-W\fP | \fB\-\-show\fP \fIpackage-name-pattern\fP ... Index: man/C/dpkg-name.1 =================================================================== --- man/C/dpkg-name.1 (révision 50) +++ man/C/dpkg-name.1 (copie de travail) @@ -30,12 +30,12 @@ something similar (depending on whatever information is in the control part of `bar\-foo.deb'). .TP -.B find /root/debian/ \-name '*.deb' | xargs \-n 1 dpkg\-name \-a +.B find /root/debian/ \-name \(aq*.deb\(aq | xargs \-n 1 dpkg\-name \-a All files with the extension `deb' in the directory /root/debian and its subdirectory's will be renamed by dpkg\-name if required into names with no architecture information. .TP -.B find \-name '*.deb' | xargs \-n 1 dpkg\-name \-a \-o \-s \-c +.B find \-name \(aq*.deb\(aq | xargs \-n 1 dpkg\-name \-a \-o \-s \-c .B Don't do this. Your archive will be messed up completely because a lot of packages don't come with section information. Index: man/C/dpkg-architecture.1 =================================================================== --- man/C/dpkg-architecture.1 (révision 50) +++ man/C/dpkg-architecture.1 (copie de travail) @@ -74,9 +74,9 @@ dpkg-buildpackage accepts the \fB\-a\fR option and passes it to dpkg\-architecture. Other examples: .PP -CC=i386\-gnu\-gcc dpkg-architecture \f(CW\*(C`\-c\*(C'\fR debian/rules build +CC=i386\-gnu\-gcc dpkg\-architecture \f(CW\*(C`\-c\*(C'\fR debian/rules build .PP -eval `dpkg\-architecture \f(CW\*(C`\-u\*(C'\fR` +eval \`dpkg\-architecture \f(CW\*(C`\-u\*(C'\fR\` .SH "VARIABLES" .IX Header "VARIABLES" The following variables are set by dpkg\-architecture: @@ -130,15 +130,15 @@ Instead of: .IP .nf -ARCH=`dpkg \-\-print\-architecture` +ARCH=\`dpkg \-\-print\-architecture\` configure $(\s-1ARCH\s0)\-linux .fi .PP please use the following: .IP .nf -\&\s-1DEB_BUILD_GNU_TYPE\s0 := $(shell dpkg-architecture \-qDEB_BUILD_GNU_TYPE) -\&\s-1DEB_HOST_GNU_TYPE\s0 := $(shell dpkg-architecture \-qDEB_HOST_GNU_TYPE) +\&\s-1DEB_BUILD_GNU_TYPE\s0 := $(shell dpkg\-architecture \-qDEB_BUILD_GNU_TYPE) +\&\s-1DEB_HOST_GNU_TYPE\s0 := $(shell dpkg\-architecture \-qDEB_HOST_GNU_TYPE) configure \-\-build=$(\s-1DEB_BUILD_GNU_TYPE\s0) \-\-host=$(\s-1DEB_HOST_GNU_TYPE\s0) .fi @@ -147,7 +147,7 @@ Instead of: .IP .nf -ARCH=`dpkg \-\-print\-architecture` +ARCH=\`dpkg \-\-print\-architecture\` ifeq ($(\s-1ARCH\s0),alpha) ... endif @@ -156,7 +156,7 @@ please use: .IP .nf -\&\s-1DEB_HOST_ARCH\s0 := $(shell dpkg-architecture \-qDEB_HOST_ARCH) +\&\s-1DEB_HOST_ARCH\s0 := $(shell dpkg\-architecture \-qDEB_HOST_ARCH) ifeq ($(\s-1DEB_HOST_ARCH\s0),alpha) ... @@ -229,7 +229,7 @@ .PP You don't need the full set. Choose a consistent set which contains the values you use in the rules file. For example, if you only need the host -Debian architecture, `DEB_HOST_ARCH=`dpkg \-\-print\-architecture` +Debian architecture, `DEB_HOST_ARCH=\`dpkg \-\-print\-architecture\`' is sufficient (this is indeed the Debian architecture of the build machine, but remember that we are only trying to be backward compatible with native compilation).