[Debian-med-packaging] Bug#847234: r-cran-rcurl: directory vs. symlink conflict: /usr/lib/R/site-library/RCurl/examples
Andreas Beckmann
anbe at debian.org
Tue Dec 6 18:06:39 UTC 2016
Package: r-cran-rcurl
Version: 1.95-4.8-1
Severity: serious
User: debian-qa at 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:
jessie -> stretch
jessie -> 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#s-copyrightfile
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#s-unpackphase
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 (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
/usr/lib/R/site-library/RCurl/examples/CIS/cis1.R (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/CIS/cis1.R (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/chunks.S (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/chunks.S (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/cis1.R (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/cis1.R (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/concurrent.S (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/concurrent.S (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/concurrent.html (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/concurrent.html (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/concurrent.xml (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/concurrent.xml (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/curl.c (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/curl.c (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/download.R (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/download.R (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/elapsed.png (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/elapsed.png (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/encoding.R (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/encoding.R (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/ftpList.R (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/ftpList.R (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/getinfo.S (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/getinfo.S (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/headers.S (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/headers.S (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/headers2.S (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/headers2.S (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/html.S (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/html.S (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/logo.jpg (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/logo.jpg (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/multi.S (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/multi.S (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/nestedHTML.html (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/nestedHTML.html (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/nestedHTML.xml (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/nestedHTML.xml (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/omg.netrc (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/omg.netrc (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/passwd.S (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/passwd.S (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/passwd2.S (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/passwd2.S (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/passwdSSL.S (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/passwdSSL.S (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/post.c (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/post.c (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/post.html (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/post.html (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/postFormPasswd.R (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/postFormPasswd.R (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/progress.S (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/progress.S (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/proxy.R (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/proxy.R (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/readHeader.S (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/readHeader.S (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/soap.S (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/soap.S (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/speakeasy.S (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/speakeasy.S (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/system.png (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/system.png (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/time.R (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/time.R (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/upload.R (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/upload.R (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/user.png (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/user.png (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/worm.S (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/worm.S (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/xmlParse.html (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/xmlParse.html (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
/usr/lib/R/site-library/RCurl/examples/xmlParse.xml (r-cran-rcurl) != /usr/share/doc/r-cran-rcurl/examples/xmlParse.xml (?)
/usr/lib/R/site-library/RCurl/examples -> ../../../../share/doc/r-cran-rcurl/examples
cheers,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: r-cran-rcurl_1.95-4.8-1.log.gz
Type: application/gzip
Size: 42625 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20161206/c2592bea/attachment-0001.bin>
More information about the Debian-med-packaging
mailing list