maintainer scripts handling symlink to directory conversion

2014-12-12 Thread Andreas Tille
Hi, I had a look into #771753 and noticed that the proper maintscripts that should deal with the issue are included into the packaging. However, I can confirm that it only works for package libavifile-0.7c2 but not for libavifile-0.7-bin and libavifile-0.7-dev. I had tried whether the

Re: maintainer scripts handling symlink to directory conversion

2014-12-12 Thread Ondřej Surý
I found two things you need to do to avoid breakages: 1. Strip trailing slash for any argument (especially the first argument, e.g. the path) 2. Strip full path for old_path, as readlink -f is a beast in case you have symlink-symlink-dir or something like that E.g. do: symlink_to_dir

Re: maintainer scripts handling symlink to directory conversion

2014-12-12 Thread Jean-Michel Nirgal Vourgère
Andreas Tille: I had a look into #771753 and noticed that the proper maintscripts that should deal with the issue are included into the packaging. However, I can confirm that it only works for package libavifile-0.7c2 but not for libavifile-0.7-bin and libavifile-0.7-dev. (...) Does

Re: maintainer scripts handling symlink to directory conversion

2014-12-12 Thread Andreas Tille
Hi, On Fri, Dec 12, 2014 at 02:11:59PM +0100, Ondřej Surý wrote: I found two things you need to do to avoid breakages: 1. Strip trailing slash for any argument (especially the first argument, e.g. the path) 2. Strip full path for old_path, as readlink -f is a beast in case you have

Re: maintainer scripts handling symlink to directory conversion

2014-12-12 Thread Andreas Tille
Hi Jean-Michel, On Fri, Dec 12, 2014 at 02:58:17PM +, Jean-Michel Nirgal Vourgère wrote: Andreas Tille: Does anybody have a clue why symlink_to_dir works perfectly for libavifile-0.7c2 but not for libavifile-0.7-bin and libavifile-0.7-dev? -bin and -dev are missing the Pre-Depends:

Re: maintainer scripts handling symlink to directory conversion

2014-12-12 Thread Ondřej Surý
This will never work: Unpacking libavifile-0.7-bin (1:0.7.48~20090503.ds-16.2) over (1:0.7.48~20090503.ds-16.2) ... as the old version is greater than version specified in *.maintscript. Please re-do the test in clean (wheezy, jessie) environment O. On Fri, Dec 12, 2014, at 16:28, Andreas

Re: maintainer scripts handling symlink to directory conversion

2014-12-12 Thread Andreas Tille
Hi, On Fri, Dec 12, 2014 at 04:33:11PM +0100, Ondřej Surý wrote: This will never work: Unpacking libavifile-0.7-bin (1:0.7.48~20090503.ds-16.2) over (1:0.7.48~20090503.ds-16.2) ... as the old version is greater than version specified in *.maintscript. Please re-do the test in clean