Bug#905191: libecm1-dev: unhandled symlink to directory conversion: /usr/share/doc/PACKAGE

2018-10-26 Thread Andreas Beckmann
Followup-For: Bug #905191
Control: found -1 libecm1-dev

This still doesn't work ... because libecm1-dev.maintscript is
incorrectly named as libecm1-dev.mainscript (missing t).
(bump version, again)


Andreas



Bug#905191: libecm1-dev: unhandled symlink to directory conversion: /usr/share/doc/PACKAGE

2018-10-14 Thread Jerome BENOIT
Hi,

On 14/10/18 14:11, Andreas Beckmann wrote:
> On 2018-10-14 11:37, Tobias Hansen wrote:
>> It looks like it's just a typo in the maintscript. The path is 
>> /usr/share/doc/libecm1-dev-common but the mainscript file is:
>>
>> symlink_to_dir /usr/share/doc/libecm1-dev /usr/share/doc/libecm1-common-dev 
>> 7.0.4+ds-2~

Aaaah !



> 
> Thanks Tobias, that seems to be the plausible cause. Didn't have much
> time recently to dig into that, was still on my todo list.
> 
> Don't forget to bump the version in the maintscript when uploading the
> fix, should probably be 7.0.4+ds-4~

I will fix it as sson as I can.

Thanks,
Jerome

> 
> 
> Andreas
> 

-- 
Jerome BENOIT | calculus+at-rezozer^dot*net
https://qa.debian.org/developer.php?login=calcu...@rezozer.net
AE28 AE15 710D FF1D 87E5  A762 3F92 19A6 7F36 C68B



signature.asc
Description: OpenPGP digital signature


Bug#905191: libecm1-dev: unhandled symlink to directory conversion: /usr/share/doc/PACKAGE

2018-10-14 Thread Andreas Beckmann
On 2018-10-14 11:37, Tobias Hansen wrote:
> It looks like it's just a typo in the maintscript. The path is 
> /usr/share/doc/libecm1-dev-common but the mainscript file is:
> 
> symlink_to_dir /usr/share/doc/libecm1-dev /usr/share/doc/libecm1-common-dev 
> 7.0.4+ds-2~

Thanks Tobias, that seems to be the plausible cause. Didn't have much
time recently to dig into that, was still on my todo list.

Don't forget to bump the version in the maintscript when uploading the
fix, should probably be 7.0.4+ds-4~


Andreas



Bug#905191: libecm1-dev: unhandled symlink to directory conversion: /usr/share/doc/PACKAGE

2018-10-14 Thread Tobias Hansen
It looks like it's just a typo in the maintscript. The path is 
/usr/share/doc/libecm1-dev-common but the mainscript file is:

symlink_to_dir /usr/share/doc/libecm1-dev /usr/share/doc/libecm1-common-dev 
7.0.4+ds-2~

Best,
Tobias

On Fri, 5 Oct 2018 09:49:34 +0400 Jerome BENOIT  wrote:
> Hi Andreas,
> 
> I thought that I fixed this issue.
> 
> The difficulty here is that I am blind here:
> how can I reproduce the issue on my own  ?
> 
> Thanks,
> Jerome
> 
> --
> Jerome BENOIT | calculus+at-rezozer^dot*net
> https://qa.debian.org/developer.php?login=calcu...@rezozer.net
> AE28 AE15 710D FF1D 87E5  A762 3F92 19A6 7F36 C68B
> 



Bug#905191: libecm1-dev: unhandled symlink to directory conversion: /usr/share/doc/PACKAGE

2018-10-05 Thread Jerome BENOIT
Hi Andreas,

I thought that I fixed this issue.

The difficulty here is that I am blind here:
how can I reproduce the issue on my own  ?

Thanks,
Jerome

--
Jerome BENOIT | calculus+at-rezozer^dot*net
https://qa.debian.org/developer.php?login=calcu...@rezozer.net
AE28 AE15 710D FF1D 87E5  A762 3F92 19A6 7F36 C68B



signature.asc
Description: OpenPGP digital signature


Bug#905191: libecm1-dev: unhandled symlink to directory conversion: /usr/share/doc/PACKAGE

2018-08-01 Thread Andreas Beckmann
Package: libecm1-dev
Version: 7.0.4+ds-2
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:

  stretch -> buster

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/#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/#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.
Do not forget to add 'Pre-Depends: ${misc:Pre-Depends}' in d/control.
See dpkg-maintscript-helper(1) and dh_installdeb(1) for details.


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

0m29.3s ERROR: FAIL: silently overwrites files via directory symlinks:
  /usr/share/doc/libecm1-dev/AUTHORS (libecm1-dev:amd64) != 
/usr/share/doc/libecm1-dev-common/AUTHORS (?)
/usr/share/doc/libecm1-dev -> libecm1-dev-common
  /usr/share/doc/libecm1-dev/NEWS.gz (libecm1-dev:amd64) != 
/usr/share/doc/libecm1-dev-common/NEWS.gz (?)
/usr/share/doc/libecm1-dev -> libecm1-dev-common
  /usr/share/doc/libecm1-dev/README.gz (libecm1-dev:amd64) != 
/usr/share/doc/libecm1-dev-common/README.gz (?)
/usr/share/doc/libecm1-dev -> libecm1-dev-common
  /usr/share/doc/libecm1-dev/README.lib.gz (libecm1-dev:amd64) != 
/usr/share/doc/libecm1-dev-common/README.lib.gz (?)
/usr/share/doc/libecm1-dev -> libecm1-dev-common
  /usr/share/doc/libecm1-dev/changelog.Debian.gz (libecm1-dev:amd64) != 
/usr/share/doc/libecm1-dev-common/changelog.Debian.gz (libecm1-dev-common)
/usr/share/doc/libecm1-dev -> libecm1-dev-common
  /usr/share/doc/libecm1-dev/changelog.gz (libecm1-dev:amd64) != 
/usr/share/doc/libecm1-dev-common/changelog.gz (libecm1-dev-common)
/usr/share/doc/libecm1-dev -> libecm1-dev-common
  /usr/share/doc/libecm1-dev/copyright (libecm1-dev:amd64) != 
/usr/share/doc/libecm1-dev-common/copyright (libecm1-dev-common)
/usr/share/doc/libecm1-dev -> libecm1-dev-common
  /usr/share/doc/libecm1-dev/examples (libecm1-dev:amd64) != 
/usr/share/doc/libecm1-dev-common/examples (?)
/usr/share/doc/libecm1-dev -> libecm1-dev-common
  /usr/share/doc/libecm1-dev/examples/Makefile (libecm1-dev:amd64) != 
/usr/share/doc/libecm1-dev-common/examples/Makefile (?)
/usr/share/doc/libecm1-dev -> libecm1-dev-common
  /usr/share/doc/libecm1-dev/examples/ecmfactor.c (libecm1-dev:amd64) != 
/usr/share/doc/libecm1-dev-common/examples/ecmfactor.c (?)
/usr/share/doc/libecm1-dev -> libecm1-dev-common


cheers,

Andreas


libecm1-dev_7.0.4+ds-2.log.gz
Description: application/gzip