[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#76593: compface: manual page is not compressed



"HA" => Hakan Ardo <hakan@debian.org>

    HA> I'm afraid you have bumped into some bug in the package
    HA> system. I'v just checked the .deb package on my ftp mirror
    HA> and it does not contain the duplicated man page:

Ah, but you built the binaries yourself.  The PowerPC binaries are
(generally) built by a build-daemon, with little or no manual
intervention.  When I check the PowerPC deb with ``dpkg
--contents'', I see the following:

drwxr-xr-x root/root         0 2000-10-30 08:39:12 ./
drwxr-xr-x root/root         0 2000-10-30 08:39:12 ./usr/
drwxr-xr-x root/root         0 2000-10-30 08:39:13 ./usr/bin/
-rwxr-xr-x root/root     13864 2000-10-30 08:39:13 ./usr/bin/compface
-rwxr-xr-x root/root      7012 2000-10-30 08:39:13 ./usr/bin/uncompface
drwxr-xr-x root/root         0 2000-10-30 08:39:12 ./usr/share/
drwxr-xr-x root/root         0 2000-10-30 08:39:12 ./usr/share/man/
drwxr-xr-x root/root         0 2000-10-30 08:39:11 ./usr/share/man/man1/
lrwxrwxrwx root/root         0 2000-10-30 08:39:12 ./usr/share/man/man1/uncompface.1.gz -> compface.1.gz
-rw-r--r-- root/root      1137 2000-10-30 08:39:10 ./usr/share/man/man1/compface.1.gz
-rw-r--r-- root/root      2374 2000-10-30 08:39:04 ./usr/share/man/man1/compface.1
drwxr-xr-x root/root         0 2000-10-30 08:39:12 ./usr/share/doc/
drwxr-xr-x root/root         0 2000-10-30 08:39:10 ./usr/share/doc/compface/
-rw-r--r-- root/root      1275 2000-10-30 08:39:10 ./usr/share/doc/compface/compface.README
-rw-r--r-- root/root      1212 2000-10-30 08:39:10 ./usr/share/doc/compface/README
-rw-r--r-- root/root      2947 2000-10-30 08:39:10 ./usr/share/doc/compface/copyright
-rw-r--r-- root/root      1825 2000-10-30 08:39:10 ./usr/share/doc/compface/changelog.Debian.gz

You'll notice that there's both a compface.1.gz and a compface.1
in the man1 directory.

When I tried building the packages myself, I ran into the
following, which appears to be the problem:

diziet% dpkg-buildpackage -b -uc -rfakeroot
dpkg-buildpackage: source package is libcompface
dpkg-buildpackage: source version is 1989.11.11-17.3
dpkg-buildpackage: source maintainer is Hakan Ardo <hakan@debian.org>
dpkg-buildpackage: build architecture is powerpc
 fakeroot debian/rules clean DEB_BUILD_ARCH=powerpc DEB_BUILD_GNU_CPU=powerpc DEB_BUILD_GNU_SYSTEM=linux DEB_BUILD_GNU_TYPE=powerpc-linux DEB_HOST_ARCH=powerpc DEB_HOST_GNU_CPU=powerpc DEB_HOST_GNU_SYSTEM=linux DEB_HOST_GNU_TYPE=powerpc-linux
test -f debian/rules
rm -rf static shared static5 shared5
rm -f build build-*
.
.
.
### Installing architecture dependent files...
mkdir debian/tmp/usr/share
mkdir debian/tmp/usr/share/doc
mv debian/tmp/usr/man debian/tmp/usr/share/
mv debian/tmp/usr/doc/compface debian/tmp/usr/share/doc/
mv debian/tmp/usr/doc/libcompfaceg1 debian/tmp/usr/share/doc/
cp debian/copyright debian/tmp/usr/share/doc/libcompfaceg1
cp debian/README.debian debian/tmp/usr/share/doc/libcompfaceg1
cp debian/changelog debian/tmp/usr/share/doc/libcompfaceg1/changelog.Debian
gzip -9 debian/tmp/usr/share/doc/libcompfaceg1/changelog.Debian
mv debian/tmp/usr/doc/libcompfaceg1-dev debian/tmp/usr/share/doc/
gzip -9 debian/tmp/usr/share/man/man1/compface.1
rm debian/tmp/usr/share/man/man1/uncompface.1 
ln -s compface.1.gz debian/tmp/usr/share/man/man1/uncompface.1.gz
gzip -9 debian/tmp/usr/share/man/man3/compface.3
debstd 
------------- debstd processing for GNU/Linux --------------
-- Installing Documentation
-- Looking for manpages in sourcepackage
compface.1 compface.3 
** Package libcompfaceg1
-- Moving files from debian/tmp into libcompfaceg1
-- Checking for executable binaries in package
DEBIAN/postinst Script
DEBIAN/prerm Script
-- Figuring out dependencies of ELF libaries
-- Compressing Documentation
gzip: compressed data not written to a terminal. Use -f to force compression.
For help, type: gzip -h
-- Checking Symlinks
dpkg-deb: building package `libcompfaceg1' in `../libcompfaceg1_1989.11.11-17.3_powerpc.deb'.
** Package compface
-- Moving files from debian/tmp into compface
-- Checking for executable binaries in package
usr/bin/compface ELF Binary
usr/bin/uncompface ELF Binary
DEBIAN/postinst Script
DEBIAN/prerm Script
-- Figuring out dependencies of ELF objects
-- Compressing/Converting Manpages
gzip: usr/share/man/man1/compface.1.gz already has .gz suffix -- unchanged
gzip: usr/share/man/man1/compface.1.gz already exists; do you wish to overwrite (y or n)? n
	not overwritten
-- Compressing Documentation
gzip: compressed data not written to a terminal. Use -f to force compression.
For help, type: gzip -h
-- Checking Symlinks
dpkg-deb: building package `compface' in `../compface_1989.11.11-17.3_powerpc.deb'.
** Main Package libcompfaceg1-dev
-- Processing provided static libraries
Static Library debian/tmp/usr/lib/libcompface.a
-- Checking for executable binaries in package
DEBIAN/postinst Script
DEBIAN/prerm Script
-- Compressing/Converting Manpages
gzip: usr/share/man/man3/compface.3.gz already exists; do you wish to overwrite (y or n)? n
	not overwritten
gzip: usr/share/man/man3/compface.3.gz already has .gz suffix -- unchanged
-- Compressing Documentation
-- Checking Symlinks
Dangling symlink ./usr/doc/libcompface pointing to libcompfaceg1
Dangling symlink ./usr/lib/libcompface.so pointing to libcompface.so.1.0.0
--------------- debstd processing finished --------------
rm -rf debian/tmp/usr/man
.
.
.


Notice that the build process asks whether the existing compressed
file should be overwritten twice -- once for compface.1 and once
for compface.3.  It does that because you've compressed the files
manually, in debian/rules, but then debstd tries to compress them
again.

You can fix the problem by either removing your commands to
compress stuff, or adding a ``-c'' flag to stop debstd from
compressing documentation.

   CMC

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               c@eskimo.com                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 



Reply to: