Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#11417 closed defect (fixed)

BUG : port dependents crashes if not use in single user mode

Reported by: yves@… Owned by: jmpalacios (Juan Manuel Palacios)
Priority: Normal Milestone: MacPorts 1.4
Component: base Version:
Keywords: Cc:
Port:

Description

Or is it really necessary to touch the map file ?

Bilbo:~/macports/dports/gnome/inkscape yves$ port dependents gtkmm shell command "touch /Users/Shared/dports/receipts/dep_map" returned error 1 Command output: touch: /Users/Shared/dports/receipts/dep_map: Permission denied

while executing

"system "touch $map_file""

(procedure "receipt_flat::open_dep_map" line 10) invoked from within

"${darwinports::registry.format}::open_dep_map $args"

(procedure "registry::open_dep_map" line 3) invoked from within

"registry::open_dep_map"

("uplevel" body line 2) invoked from within

"uplevel 1 $block"

(procedure "foreachport" line 16) invoked from within

"foreachport $portlist {

registry::open_dep_map set deplist [registry::list_dependents $portname]

if { [llength $deplist] > 0 } {

set dl [li..."

(procedure "action_dependents" line 3) invoked from within

"$action_proc $action $portlist [array get global_options]"

(procedure "process_cmd" line 49) invoked from within

"process_cmd $remaining_args"

invoked from within

"if { [llength $remaining_args] > 0 } {

# If there are remaining arguments, process those as a command

# Exit immediately, by default, unless we'r..."

(file "/opt/local/bin/port" line 2584)

Change History (6)

comment:1 Changed 18 years ago by jmpalacios (Juan Manuel Palacios)

Milestone: MacPorts 1.4

comment:2 Changed 18 years ago by kballard (Lily Ballard)

My guess is it touches the file, so when it tries to read it, it can assume the file exists and doesn't have to deal with an error if it doesn't. In other words, a lame attempt to avoid dealing with errors.

Of course, I haven't actually read the code, but that's the only reason I can think of to touch the file.

comment:3 Changed 18 years ago by kballard (Lily Ballard)

Hrm, re-reading your original error, it seems to be trying to touch /Users/Shared/dports/receipts/dep_map. Did you change your portdbpath in /opt/local/etc/ports/ports.conf?

Incidentally, the error should only happen if dep_map doesn't exist.

comment:4 Changed 18 years ago by kballard (Lily Ballard)

Resolution: fixed
Status: newclosed

Fixed in [22769]

comment:5 Changed 17 years ago by nox@…

Priority: ExpectedNormal

comment:6 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Merged into release_1_4 branch in r22770.

-jmpp

Note: See TracTickets for help on using tickets.