Changeset 62393


Ignore:
Timestamp:
Jan 6, 2010, 1:35:13 PM (10 years ago)
Author:
ryandesign@…
Message:

archcheck-1.0.tcl: Test for the existence of the file before checking its architecture, because sometimes dependencies get built incorrectly and don't contain the file we're checking; see #23057

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/archcheck-1.0.tcl

    r61899 r62393  
    5656            set file [file join ${prefix} ${file}]
    5757        }
     58       
     59        # Make sure the file exists -- there have been cases where dylibs are
     60        # inexplicably absent (e.g. #23057).
     61        if {![file exists ${file}]} {
     62            ui_error "The file ${file} does not exist, though it was"
     63            ui_error "expected to have been provided by one of ${name}'s dependencies. Try"
     64            ui_error "rebuilding the port that should have provided that file by running"
     65            ui_error ""
     66            ui_error "    sudo port -n upgrade --force <portname>"
     67            ui_error ""
     68            return -code error "missing required file"
     69        }
     70       
    5871        set file_archs [string trim [strsed [exec lipo -info ${file}] {s/.*://}]]
    5972        set file_archs [string map {ppc7400 ppc} ${file_archs}]
Note: See TracChangeset for help on using the changeset viewer.