Please help with symlink_to_dir expression (Was: Bug#847234: r-cran-rcurl: directory vs. symlink conflict: /usr/lib/R/site-library/RCurl/examples)
- To: Debian Mentors List <debian-mentors@lists.debian.org>, 847234@bugs.debian.org
- Subject: Please help with symlink_to_dir expression (Was: Bug#847234: r-cran-rcurl: directory vs. symlink conflict: /usr/lib/R/site-library/RCurl/examples)
- From: Andreas Tille <andreas@an3as.eu>
- Date: Tue, 6 Dec 2016 22:36:52 +0100
- Message-id: <[🔎] 20161206213652.GB14497@an3as.eu>
- In-reply-to: <20161206180639.5354.33886.reportbug@zam581.zam.kfa-juelich.de>
- References: <20161206180639.5354.33886.reportbug@zam581.zam.kfa-juelich.de>
Hi,
On Tue, Dec 06, 2016 at 07:06:39PM +0100, Andreas Beckmann wrote:
> Package: r-cran-rcurl
> Version: 1.95-4.8-1
> Severity: serious
> User: debian-qa@lists.debian.org
> Usertags: piuparts
>
> ...
> >From the attached log (usually somewhere in the middle...):
>
> 2m19.9s INFO: dirname part contains a symlink:
> /usr/lib/R/site-library/RCurl/examples/CIS (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/CIS (?)
> /usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
> /usr/lib/R/site-library/RCurl/examples/CIS/cis.R (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/CIS/cis.R (?)
> /usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
> ...
I tried to fix this the following way. In the Jessie package
r-cran-rcurl_1.95-4.3-1+deb8u1_amd64.deb the examples link is:
$ readlink /usr/lib/R/site-library/RCurl/examples
../../../../share/doc/r-cran-rcurl/examples
Since in the package in unstable examples is a directory I tried
to fix the upgrade path by
$ cat debian/maintscript
symlink_to_dir /usr/lib/R/site-library/RCurl/examples ../../../../share/doc/r-cran-rcurl/examples 1.95-4.3-1
but this does not fix the situation. Seems I have missinterpreted the manpage
man dpkg-maintscript-helper
and I'm now asking for a hint how to do the maintainer script correctly.
Kind regards
Andreas.
--
http://fam-tille.de
Reply to: