Your message dated Mon, 29 May 2023 12:34:20 +0000
with message-id <e1q3c4q-004y7g...@fasolo.debian.org>
and subject line Bug#1036096: fixed in jed 1:0.99.20~pre.180+dfsg-1
has caused the Debian Bug report #1036096,
regarding jed,xjed: unhandled symlink to directory conversion: 
/usr/share/doc/PACKAGE
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 ow...@bugs.debian.org
immediately.)


-- 
1036096: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1036096
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: jed,xjed
Version: 1:0.99.20~pre.178+dfsg-4
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

an upgrade test with piuparts revealed that your package installs files
over existing symlinks and possibly overwrites files owned by other
packages. This usually means an old version of the package shipped a
symlink but that was later replaced by a real (and non-empty)
directory. This kind of overwriting another package's files cannot be
detected by dpkg.

This was observed on the following upgrade paths:

  bullseye -> sid

For /usr/share/doc/PACKAGE this may not be problematic as long as both
packages are installed, ship byte-for-byte identical files and are
upgraded in lockstep. But once one of the involved packages gets
removed, the other one will lose its documentation files, too,
including the copyright file, which is a violation of Policy 12.5:
https://www.debian.org/doc/debian-policy/ch-docs.html#copyright-information

For other overwritten locations anything interesting may happen.

Note that dpkg intentionally does not replace directories with symlinks
and vice versa, you need the maintainer scripts to do this.
See in particular the end of point 4 in
https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#details-of-unpack-phase-of-installation-or-upgrade

It is recommended to use the dpkg-maintscript-helper commands
'dir_to_symlink' and 'symlink_to_dir' (available since dpkg 1.17.14)
to perform the conversion, ideally using d/$PACKAGE.maintscript.
See dpkg-maintscript-helper(1) and dh_installdeb(1) for details.


>From the attached log (scroll to the bottom...):

0m42.0s ERROR: FAIL: silently overwrites files via directory symlinks:
  /usr/share/doc/jed/NEWS.Debian.gz (jed) != 
/usr/share/doc/jed-common/NEWS.Debian.gz (jed-common)
    /usr/share/doc/jed -> jed-common
  /usr/share/doc/jed/README.Debian (jed) != 
/usr/share/doc/jed-common/README.Debian (?)
    /usr/share/doc/jed -> jed-common
  /usr/share/doc/jed/TODO.Debian (jed) != /usr/share/doc/jed-common/TODO.Debian 
(?)
    /usr/share/doc/jed -> jed-common
  /usr/share/doc/jed/changelog.Debian.gz (jed) != 
/usr/share/doc/jed-common/changelog.Debian.gz (jed-common)
    /usr/share/doc/jed -> jed-common
  /usr/share/doc/jed/changelog.gz (jed) != 
/usr/share/doc/jed-common/changelog.gz (jed-common)
    /usr/share/doc/jed -> jed-common
  /usr/share/doc/jed/copyright (jed) != /usr/share/doc/jed-common/copyright 
(jed-common)
    /usr/share/doc/jed -> jed-common

0m46.5s ERROR: FAIL: silently overwrites files via directory symlinks:
  /usr/share/doc/xjed/NEWS.Debian.gz (xjed) != 
/usr/share/doc/jed-common/NEWS.Debian.gz (jed-common)
    /usr/share/doc/xjed -> jed-common
  /usr/share/doc/xjed/changelog.Debian.gz (xjed) != 
/usr/share/doc/jed-common/changelog.Debian.gz (jed-common)
    /usr/share/doc/xjed -> jed-common
  /usr/share/doc/xjed/changelog.gz (xjed) != 
/usr/share/doc/jed-common/changelog.gz (jed-common)
    /usr/share/doc/xjed -> jed-common
  /usr/share/doc/xjed/copyright (xjed) != /usr/share/doc/jed-common/copyright 
(jed-common)
    /usr/share/doc/xjed -> jed-common


This is probably an older bug that never showed up in piuparts
since jed/xjed could not be tested after jed-common had failed.


cheers,

Andreas

Attachment: jed_1:0.99.20~pre.178+dfsg-4.log.gz
Description: application/gzip


--- End Message ---
--- Begin Message ---
Source: jed
Source-Version: 1:0.99.20~pre.180+dfsg-1
Done: Rafael Laboissière <raf...@debian.org>

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

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 1036...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Rafael Laboissière <raf...@debian.org> (supplier of updated jed 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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 29 May 2023 06:47:01 -0300
Source: jed
Architecture: source
Version: 1:0.99.20~pre.180+dfsg-1
Distribution: experimental
Urgency: medium
Maintainer: Wookey <woo...@debian.org>
Changed-By: Rafael Laboissière <raf...@debian.org>
Closes: 1035692 1035780 1035839 1036096
Changes:
 jed (1:0.99.20~pre.180+dfsg-1) experimental; urgency=medium
 .
   * New upstream version 0.99.20~pre.180+dfsg
   * d/jed-common.lintian-overrides: Add override for Litian warning
     package-contains-documentation-outside-usr-share-doc
 .
 jed (1:0.99.20~pre.178+dfsg-6) unstable; urgency=medium
 .
   * d/*.maintscript: Add epoch to the version number in symlink_to_dir setting.
     The version in the {jed,xjed}.maintscript files is bumped to
     1:0.99.20~pre.178+dfsg-6~, such that the cleanup is performed on both
     upgrades from stable to testing (missed cleanup) and from testing to
     unstable (fixed cleanup).
     Thanks to Andreas Beckmann for spotting the problem and suggesting its 
solution.
     (Closes: #1036096)
 .
 jed (1:0.99.20~pre.178+dfsg-5) unstable; urgency=medium
 .
   * Add files d/{jed,xjed}.maintscript.
     These files allow the smooth transition for /usr/share/doc/{jed,xjed},
     which were symlinks before version 0.99.20~pre.151+dfsg-1 and are now
     real directories. (Closes: #1036096)
 .
 jed (1:0.99.20~pre.178+dfsg-4) unstable; urgency=medium
 .
   * d/jed-common.preinst: Avoid non-fatal abortion of the script.
     Thanks to Axel Beckert for the fix (Closes: #1035839)
 .
 jed (1:0.99.20~pre.178+dfsg-3) unstable; urgency=medium
 .
   * Fix upgrade of jed-common (closes: #1035780)
 .
     The previous version, which tried to fix Bug#1035692, messed up
     with the directory /usr/share/doc/jed-common/txt. This directory
     is not really needed and has been removed, with all filesit
     contained being kept in /usr/share/jed/doc/txt/. This version
     should allow a smooth transition of jed-common from both bullseye
     (version 0.99.19-8) and testing (version 0.99.20~pre.178+dfsg-1)
     into bookworm.
 .
     + d/clean: Restore previous version
     + d/jed-common.links: Reintroduce this file (for symlink etc/jed.d/README)
     + d/jed-common.maintscript: Remove file
     + d/rules: Keep files in /usr/share/jed/doc/txt
     + d/jed-common.preinst: Remove obsolete directory
       /usr/share/doc/jed-common/txt
 .
 jed (1:0.99.20~pre.178+dfsg-2) unstable; urgency=medium
 .
   * Avoid installing the *.txt help file over a directory symlink
     (closes: #1035692)
     + d/jed-common.maintscript: Add symlink_to_dir command for the
       directory /usr/share/jed/doc/txt
     + d/jed-common.links: Removed file
     + d/rules: Create file d/jed-common.links by adding individual
       symbolic links /usr/share/jed/doc/txt/*.txt point to the files in
       /usr/share/doc/jed-common/txt/
     + d/clean: Remove the file d/jed-common.links
Checksums-Sha1:
 aa3ab38164bd78fea318d33cc7333a2e05344f3f 2328 jed_0.99.20~pre.180+dfsg-1.dsc
 2ab286965ca3fcb4f62accb4e123a4fe55cea714 796628 
jed_0.99.20~pre.180+dfsg.orig.tar.xz
 3debd04b1f15d0c92c72558155e4bc9c54e05a90 31368 
jed_0.99.20~pre.180+dfsg-1.debian.tar.xz
Checksums-Sha256:
 99ce69bf4b0b14bcb5022d863a65c830d3474bf2ae3169465913fd24ae9e0743 2328 
jed_0.99.20~pre.180+dfsg-1.dsc
 4e6ed15196ef9c0495a298479bbbe3dc2c112588b381fe7f13344e7848a53d05 796628 
jed_0.99.20~pre.180+dfsg.orig.tar.xz
 578bbdaff710191ebf2c19d3f359a0631b046ca70edd8248582bc33bfa5862d2 31368 
jed_0.99.20~pre.180+dfsg-1.debian.tar.xz
Files:
 882740a1602d81dff111f33bbb889a3b 2328 editors optional 
jed_0.99.20~pre.180+dfsg-1.dsc
 171d2c5d63884c6a4adb99281760fd47 796628 editors optional 
jed_0.99.20~pre.180+dfsg.orig.tar.xz
 fe3971833a933212ef3a5b65224d1a4f 31368 editors optional 
jed_0.99.20~pre.180+dfsg-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQJGBAEBCAAwFiEEP0ZDkUmP6HS9tdmPISSqGYN4XJAFAmR0lp4SHHJhZmFlbEBk
ZWJpYW4ub3JnAAoJECEkqhmDeFyQnzIP/jul+q0QWNeKOawu5P1p+VmXqmzI87Qo
GLm5+MZGIJwSXBi1TjCT7qvBiRAyTnyD5Ds97L/Fal81F4S/+gwP7suaNx8pBwfg
MeMrd3wbN1TE3VmXG3F7CsX/cN3rmSvpR24i8v15WWRxZv5HO3p6gVXfj/g0P9g9
8r7OWL7uvt8N+ymlcmk/SwWHwZ7r8/s9YXhEWJipNzh0CKtn86zQUxYG4AWusjQl
pGz3XgYppJDOBYLav4Tjl3iqVO7NsSOMoku75BVeqiGsl2ojPnB3JGfBURktITGa
JQnsJbeavuR5626/l4Tf+Tz3lQJ0OzCJUYBP+lGHxIpACUQj1NpjEBVx+8Rp4B6e
gsGqhCwzuh+XEZpwrFbIIDmIMft6K8D18tLc+hpTNfaYhCGSfBeyAfxU068H1gL5
m67SMpDwfUgSi/9CBfQt9ygW7ehxiok8Fh4FWaqDMzfV/vY57LsxMl5eio6WZo2U
O3oun6XqsOBbpOymwIq2RS2j5oNNH6FgoHgBE6zs+a+fi8TKsMI6cgQ0nghj5NhS
XFe8RA573zAyLgHdErLjZjz9Y2jzeJ3R0rzNHkUiQBMiU9cDT8uP1jTwZZVl5k9G
QrRE96GeiRgcVI5TxaRsiYPE5IDPtHyyFdnVdjL5KdayLAzekm5cV2JamS9+En1R
GjyONbKenZ7i
=2SdY
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to