Opened 21 years ago

Closed 21 years ago

Last modified 19 years ago

#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)

portinstall-symlinkdir.patch (645 bytes) - added by ranger@… 21 years ago.
fix for symlinked directory problem

Download all attachments as: .zip

Change History (7)

comment:1 Changed 21 years ago by ssen@…

port install should use "cd destroot; pax -rw . /"

You think I'm joking, but I'm not.

comment:2 Changed 21 years ago by ranger@…

blocked: 581

comment:3 Changed 21 years ago by landonf@…

Status: newassigned

comment:4 Changed 21 years ago by landonf@…

Owner: changed from darwinports-bugs@… to landonf@…
Status: assignednew

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@…

fix for symlinked directory problem

comment:6 Changed 21 years ago by kevin@…

Resolution: fixed
Status: newclosed

Committed patch.

Note: See TracTickets for help on using tickets.