Ticket #20887: file-attributes-no-root.diff

File file-attributes-no-root.diff, 1.4 KB (added by jonthn+macports@…, 15 years ago)

Patch that permits to install expat

  • src/port1.0/portinstall.tcl

     
    7777   
    7878    # if the file is a symlink, do not try to set file attributes
    7979    if {[file type $src_element] != "link"} {
    80         eval file attributes {$dst_element} [file attributes $src_element]
     80        eval file attributes {$dst_element} -group [file attributes $src_element -group ]
     81        eval file attributes {$dst_element} -owner [file attributes $src_element -owner ]
     82        eval file attributes {$dst_element} -permissions [file attributes $src_element -permissions ]
     83        eval file attributes {$dst_element} -readonly [file attributes $src_element -readonly ]
     84        if {![file isdirectory $src_element]} {
     85         eval file attributes {$dst_element} -creator [file attributes $src_element -creator ]
     86         eval file attributes {$dst_element} -type [file attributes $src_element -type ]
     87         eval file attributes {$dst_element} -rsrclength [file attributes $src_element -rsrclength ]
     88
     89         # man page don't like this one. Don't know why
     90         #eval file attributes {$dst_element} -hidden [file attributes $src_element -hidden ]
     91        }
    8192        # set mtime on installed element
    8293        file mtime $dst_element [file mtime $src_element]
    8394    }