Opened 4 years ago

Closed 13 months ago

#60564 closed enhancement (duplicate)

Make setting known_fail yes also prevent looking for archives

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by:
Priority: Normal Milestone:
Component: base Version: 2.6.2
Keywords: Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Some ports do this (this is from gcc49):

if {${os.platform} eq "darwin" && ([vercmp $xcodeversion 9.0] > 0)} {
    known_fail      yes
    depends_lib
    depends_run
    archive_sites
    pre-fetch {
        ui_error "building ${name} is not supported with Xcode 9 or greater"
        return -code error {unsupported platform}
    }
}

In other words in addition to setting known_fail yes and printing an error message, it clears archive_sites. This is probably intended to stop MacPorts from spending time checking for an archive that we already know does not exist. Maybe MacPorts base could arrange for archive_sites to be cleared automatically when known_fail yes is used, or it could use some other method to prevent checking for the presence of archives.

A separate ticket tracks clearing dependencies.

Change History (3)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:2 Changed 4 years ago by ctreleaven (Craig Treleaven)

See also #59640

comment:3 Changed 13 months ago by jmroot (Joshua Root)

Milestone: MacPorts Future
Resolution: duplicate
Status: newclosed

Effectively taken care of via #60566.

Note: See TracTickets for help on using tickets.