Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#28430 closed defect (fixed)

Can't install with packages on volume shared over Netatalk

Reported by: dave@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 2.0.0
Component: base Version: 1.9.2
Keywords: Cc:
Port:

Description

--->  Cleaning lzo
--->  Fetching archive for pkgconfig
Error: Target org.macports.archivefetch returned: lchown: /Volumes/Packages/darwin/x86_64: not owner
Error: Failed to install pkgconfig
Log for pkgconfig is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_pkgconfig/main.log
Error: The following dependencies were not installed: pkgconfig readline
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
saturn:~/Library/Keychains dave% 

Commenting out this use of chownAsRoot seemed to allow me to proceed:

# Perform a standard fetch, assembling fetch urls from
# the listed url variable and associated archive file
proc portarchivefetch::fetchfiles {args} {
    global archivefetch.fulldestpath UI_PREFIX
    global archivefetch.user archivefetch.password archivefetch.use_epsv \
           archivefetch.ignore_sslcert
    global portverbose ports_binary_only
    variable archivefetch_urls
    variable ::portfetch::urlmap

    if {![file isdirectory ${archivefetch.fulldestpath}]} {
        if {[catch {file mkdir ${archivefetch.fulldestpath}} result]} {
            elevateToRoot "archivefetch"
            set elevated yes
            if {[catch {file mkdir ${archivefetch.fulldestpath}} result]} {
                return -code error [format [msgcat::mc "Unable to create archive path: %s"] $result]
            }
        }
    }
#    chownAsRoot ${archivefetch.fulldestpath}
    if {[info exists elevated] && $elevated == yes} {

Change History (6)

comment:1 Changed 14 years ago by dave@…

Cc: dave@… added

Cc Me!

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Cc: dave@… removed
Component: portsbase

comment:3 Changed 14 years ago by dave@…

still a problem...

BTW, that change is in /opt/local/share/macports/Tcl/package1.0/portarchivefetch.tcl

comment:4 Changed 14 years ago by dave@…

probably the best option here, assuming the original call is useful in ordinary situations, would be to attempt the chown and simply ignore any errors. If we can't change permissions, we'll fail soon enough anyway.

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Milestone: MacPorts 2.0.0
Resolution: fixed
Status: newclosed

As of r77511, there is no separate archive dir.

comment:6 Changed 14 years ago by dave@…

I can't understand how that addresses the problem. If anything, it sounds like you've just made it harder (nearly impossible) for me to store packages on a remotely mounted volume. Am I missing something?

Note: See TracTickets for help on using tickets.