#591 closed defect (fixed)
port install creates directories for symlinked dir's
Reported by: | ranger@… | Owned by: | landonf (Landon Fuller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 1.0 |
Keywords: | Cc: | ||
Port: |
Description
Some packages install files that should be a symlink to a directory. They're correct inside the destroot, but when port install subsequently installs them, it does it as a directory.
This wouldn't have been noticed until now, since installing an RPM of the package over the existing install freaks out, since RPM (well cpio) won't let you unpack a symlink over a directory.
Attachments (1)
Change History (7)
comment:1 Changed 21 years ago by ssen@…
comment:2 Changed 21 years ago by ranger@…
blocked: | → 581 |
---|
comment:3 Changed 21 years ago by landonf@…
Status: | new → assigned |
---|
comment:4 Changed 21 years ago by landonf@…
Owner: | changed from darwinports-bugs@… to landonf@… |
---|---|
Status: | assigned → new |
comment:5 Changed 21 years ago by landonf@…
The problem is in install_element in base/src/port1.0/portinstall.tcl Tcl's "file isdirectory" procedure follows the sym link. Should check if the file is a link before creating the directory, and if so, create the link correctly. This may also require mangling in the directory_dig procedure in portinstall.tcl
Changed 21 years ago by ranger@…
Attachment: | portinstall-symlinkdir.patch added |
---|
fix for symlinked directory problem
Note: See
TracTickets for help on using
tickets.
port install should use "cd destroot; pax -rw . /"
You think I'm joking, but I'm not.