Welcome to CRUX bug tracking.
FS#15 - pkgutils: symlink handling
Attached to Project:
CRUX
Opened by Mark Rosenstand (mark) - Saturday, 18 March 2006, 08:31 GMT
Last edited by Anonymous Submitter - Saturday, 03 June 2006, 17:21 GMT
Opened by Mark Rosenstand (mark) - Saturday, 18 March 2006, 08:31 GMT
Last edited by Anonymous Submitter - Saturday, 03 June 2006, 17:21 GMT
|
DetailsWhen uninstalling a package that had files in /usr/var, something strange happened on removal:
# pkgrm foo pkgrm: could not remove /usr/var/: Not a directory This was unexpected because /usr/var is owned by \'filesystem\'. Use attached Pkgfile to reproduce. BTW: A pkgutils category under tools would be nice. |
This task depends upon
Regarding symlinks: \'pkginfo -o\' and \'pkgadd -u\' are both unaware of them too, which can lead to confusing errors.
$ $sudo pkgadd foo#1.0-1.pkg.tar.gz
$ pkginfo -o var/foo
Package File
foo usr/var/foo/
$ sudo pkgadd -u foo#1.0-1.pkg.tar.gz
$ echo $?
0
$ sudo pkgrm foo
$ echo $?
0
I think that ATM is fixed.
I run into the issue again:
json-c, version 0.10, installs some headers into /usr/include/json. As of version 0.11 the directory /usr/include/json-c is used instead, but to keep backwards compatibility a symbolic link json-c -> json is added.
An update with pkgadd fails:
pkgadd -u json-c#0.11-1.pkg.tar.gz
usr/include/json
pkgadd: listed file(s) already installed (use -f to ignore and overwrite)