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

Bug#519269: marked as done (lintian: diversion check complains about diversons following policy)



Your message dated Thu, 12 Mar 2009 05:32:03 +0000
with message-id <E1LhdWV-0002nF-8D@ries.debian.org>
and subject line Bug#518966: fixed in lintian 2.2.8
has caused the Debian Bug report #518966,
regarding lintian: diversion check complains about diversons following policy
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
518966: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=518966
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: lintian
Version: 2.2.7
Severity: important

Hi,

E: openoffice.org-qa-tools: remove-of-unknown-diversion usr/lib/openoffice/basis3.0/presets/basic/Standard/script.xlb postrm:102
N: 
N:    The maintainer script removes a diversion that it didn't add. If you're
N:    cleaning up unnecessary diversions from older versions of the package,
N:    remove them in preinst or postinst instead of waiting for postrm to do
N:    it.
N:    
N:    Severity: important, Certainty: certain
N: 
E: openoffice.org-qa-tools: orphaned-diversion usr/lib/openoffice/basis3.0/presets/basic/Standard/script.xlb preinst
N: 
N:    A diversion was added for the file, but not removed. This means your
N:    package doesn't restore the previous state after removal.
N:    
N:    Severity: important, Certainty: certain
N: 

Let's look at the files:

--- snip ---
#!/bin/sh

# postrm script for openoffice.org-qa-tools

THIS_PACKAGE=openoffice.org-qa-tools
THIS_SCRIPT=postrm

set -e

#INCLUDE_SHELL_LIB#

case "$1" in remove)
	dpkg-divert --package $THIS_PACKAGE --remove --rename --divert \
	    /usr/lib/openoffice/basis3.0/presets/basic/Standard/script.xlb.no-smoketest \
	    /usr/lib/openoffice/basis3.0/presets/basic/Standard/script.xlb
	;;
esac

#DEBHELPER#

exit 0
--- snip --

--- snip ---
#!/bin/sh

# preinst script for openoffice.org-qa-tools

THIS_PACKAGE=openoffice.org-qa-tools
THIS_SCRIPT=preinst

set -e

#INCLUDE_SHELL_LIB#

case "$1" in install|upgrade)
	dpkg-divert --package $THIS_PACKAGE --add --rename --divert \
	    /usr/lib/openoffice/basis3.0/presets/basic/Standard/script.xlb.no-smoketest \
	    /usr/lib/openoffice/basis3.0/presets/basic/Standard/script.xlb
	;;
esac

#DEBHELPER#

exit 0
--- snip ---

This both is *exactly* what is written in policy, Appendix E.
(well, except if test -> case)

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages lintian depends on:
ii  binutils               2.19.1-1          The GNU assembler, linker and bina
ii  diffstat               1.46-1            produces graph of changes introduc
ii  dpkg-dev               1.14.25           Debian package development tools
ii  file                   4.26-2            Determines file type using "magic"
ii  gettext                0.17-6            GNU Internationalization utilities
ii  intltool-debian        0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii  libipc-run-perl        0.82-1            Perl module for running processes
ii  libparse-debianchangel 1.1.1-2           parse Debian changelogs and output
ii  libtimedate-perl       1.1600-9          Time and date functions for Perl
ii  liburi-perl            1.37+dfsg-1       Manipulates and accesses URI strin
ii  man-db                 2.5.4-1           on-line manual pager
ii  perl [libdigest-sha-pe 5.10.0-19         Larry Wall's Practical Extraction 

lintian recommends no packages.

Versions of packages lintian suggests:
pn  binutils-multiarch            <none>     (no description available)
ii  libtext-template-perl         1.44-1.2   Text::Template perl module
ii  man-db                        2.5.4-1    on-line manual pager

-- debconf-show failed



--- End Message ---
--- Begin Message ---
Source: lintian
Source-Version: 2.2.8

We believe that the bug you reported is fixed in the latest version of
lintian, which is due to be installed in the Debian FTP archive:

lintian_2.2.8.dsc
  to pool/main/l/lintian/lintian_2.2.8.dsc
lintian_2.2.8.tar.gz
  to pool/main/l/lintian/lintian_2.2.8.tar.gz
lintian_2.2.8_all.deb
  to pool/main/l/lintian/lintian_2.2.8_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 518966@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Russ Allbery <rra@debian.org> (supplier of updated lintian package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 11 Mar 2009 21:50:58 -0700
Source: lintian
Binary: lintian
Architecture: source all
Version: 2.2.8
Distribution: unstable
Urgency: low
Maintainer: Debian Lintian Maintainers <lintian-maint@debian.org>
Changed-By: Russ Allbery <rra@debian.org>
Description: 
 lintian    - Debian package checker
Closes: 518966 519300
Changes: 
 lintian (2.2.8) unstable; urgency=low
 .
   The "Policy 3.8.1" release.
 .
   * Summary of tag changes:
     + Added
       - dir-or-file-in-var-lock
       - dir-or-file-in-var-run
 .
   * checks/changelog-file.desc:
     + [RA] Using UTF-8 is now a Policy must and hence serious.
   * checks/control-file.desc:
     + [RA] Using UTF-8 is now a Policy must and hence serious.
   * checks/files{,.desc}:
     + [CW] Emit dir-or-file-in-var-lock or dir-or-file-in-var-run, as
       appropriate, for packages shipping directories or files in /var/lock
       or /var/run. See policy bug #514326.
   * checks/menus{,.desc}:
     + [RA] Revert the change to not require update-menus in postinst.
       This is still needed due to #518919.  Don't require update-menus in
       postrm for regular menu files, only for menu-methods, but also don't
       warn if it's present.  (Closes: #519300)
   * checks/scripts:
     + [RA] Policy allows scripts to assume that /bin/sh supports local
       with simple variable assignments.
     + [ADB] Check all added and removed diversions at once rather than
       as each maintainer script is processed.  This avoids differing
       results and false positives if the postrm is processed before other
       maintainer scripts.  (Closes: #518966)
 .
   * data/debhelper/*:
     + [RA] Refresh against unstable.
   * data/fields/virtual-packages:
     + [RA] Refresh against unstable.
   * data/files/fonts:
     + [RA] Refresh against unstable.
   * data/output/manual-references:
     + [RA] Refresh reference data against Policy 3.8.1, doc-base 0.9.1,
       and developers-reference 3.4.1.
   * data/standards-version/release-dates:
     + [RA] Add release date for 3.8.1.
 .
   * debian/control:
     + [RA] Update to standards version 3.8.1.
 .
   * lib/Dep.pm:
     + [RA] Remove, replaced with Lintian::Relation.
   * lib/Lintian/Collect/Binary.pm:
     + [RA] Fix POD errors.
   * lib/Lintian/Collect/Source.pm:
     + [RA] Fix POD errors.
   * lib/Lintian/Command.pm:
     + [RA] Fix POD errors.
 .
   * private/refresh-debhelper-data:
     + [RA] Remove symlinks as a (possibly temporary) workaround to
       packages that contain broken links to dh_* commands.
     + [RA] Exclude dh_gencontrol from debhelper commands that set
       ${misc:Depends} since it only sets it to empty when not already
       set.
   * private/refresh-fonts-data:
     + [RA] Correctly handle not specifying a Contents file on the command
       line.
 .
   * t/runtests:
     + [RA] Add support for running test scripts under t/scripts via prove
       (the standard Perl test harness).
Checksums-Sha1: 
 96cc4c6254dc6db679e72f7934892cc6650f279f 1163 lintian_2.2.8.dsc
 03de8ea5a4a818e2bc6559c99c1843dafd653aa6 638759 lintian_2.2.8.tar.gz
 9179d212a4a7b3d5888a36eb98be4d3fa81e1e0b 440986 lintian_2.2.8_all.deb
Checksums-Sha256: 
 b8ffcadff9d0ae7a38df0671ee80bc969510a1cd7d2e44914879cf0931ff1425 1163 lintian_2.2.8.dsc
 9fade43d2521d61537007f616927f64a7f93ea18646821b8ced66597d5402902 638759 lintian_2.2.8.tar.gz
 3dc7ad28ecd034810fabc79b8c7d9c29c2ca12c92e5a7826d614cf345af7e903 440986 lintian_2.2.8_all.deb
Files: 
 7748fc67b08609f0c6f751cb023ddea3 1163 devel optional lintian_2.2.8.dsc
 5151b74a9616421b8c563cc8ac4ba3f3 638759 devel optional lintian_2.2.8.tar.gz
 c0a83e9861d6b4519a87bb97711439d0 440986 devel optional lintian_2.2.8_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkm4mtEACgkQ+YXjQAr8dHbJ+QCcDRz9aHgH2sg0fkH+CcZ8Dv2v
MRkAoLhH/sItJ56i2d8mOUAkkUOU2Kkl
=J0IZ
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: