Bug#854859: Pending fixes for bugs in the lemonldap-ng package

gregor herrmann gregoa at debian.org
Sun Feb 12 13:51:49 UTC 2017


On Sun, 12 Feb 2017 13:15:49 +0100, Xavier wrote:

> > You probably want to create debian/lemonldap-ng-doc.maintscript (and drop
> > debian/lemonldap-ng-doc.preinst), with the following content:
> > 
> > symlink_to_dir /usr/share/doc/lemonldap-ng-doc/pages/documentation/current 1.3 1.9.7-3~
> > 
> > (based solely on the commit diff, I didn't look further into your package)
> > 
> 
> Thanks, it's ok now with:
> 
> dir_to_symlink
> /usr/share/doc/lemonldap-ng-doc/pages/documentation/current 1.3 1.4.6
> lemonldap-ng-doc

I think this is wrong, and Andreas' proposal looks right to me:
1) The switch is from a symlink to a dir
2) The version where this is _handled_ is now, i.e. 1.9.7-3~
3) The package name is not needed (but shouldn't hurt)


Now some testing would be good but my piuparts-fu is not good enough
to test this uprade between a package in the archive and a locally
built package ... So I tried manually in a jessie chroot, installed
lemonldap-ng-doc, and then upgraded to 1.9.7-2 from the archive / 1.9.7-3
with Xavier's version / 1.9.7-3 with Andreas' version, but all three
end up like this (that's from the 3rd one):

# dpkg -i /home/gregoa/src/git-pkg-perl/meta/packages/build-area/lemonldap-ng-doc_1.9.7-3_all.deb
(Reading database ... 11584 files and directories currently installed.)
Preparing to unpack .../lemonldap-ng-doc_1.9.7-3_all.deb ...
Unpacking lemonldap-ng-doc (1.9.7-3) over (1.3.3-1) ...
dpkg: warning: unable to delete old directory '/usr/share/doc/lemonldap-ng-doc/pages/documentation/1.3/applications': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/doc/lemonldap-ng-doc/pages/documentation/1.3': Directory not empty
Setting up lemonldap-ng-doc (1.9.7-3) ...

# ls -la /usr/share/doc/lemonldap-ng-doc/pages/documentation/current                             
lrwxrwxrwx 1 root root 3 Oct 15  2014 /usr/share/doc/lemonldap-ng-doc/pages/documentation/current -> 1.3

*headscratch*

Oh, there are no traces of the maintscript stuff in
lemonldap-ng-doc_1.9.7-3_all.deb!

*looking carefully*

debian/lemonldap-ng-doc.mainscript --> main_T_script

Yeah, this looks much better. Scripts in the deb, no warnings, and
/usr/share/doc/lemonldap-ng-doc/pages/documentation/current is a
directory.

Pushed to git, waiting with an upload for a test/sanity check of you
guys.


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at/ - Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Pogues: The Auld Triangle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20170212/6e555144/attachment.sig>


More information about the pkg-perl-maintainers mailing list