[MacPorts] #59463: Binary-only mode requested with no usable archive sites configured

MacPorts noreply at macports.org
Wed Oct 23 22:04:54 UTC 2019


#59463: Binary-only mode requested with no usable archive sites configured
------------------------+--------------------
 Reporter:  ryandesign  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  base        |    Version:  2.6.2
 Keywords:              |       Port:
------------------------+--------------------
 I reported this before in #54743 with regard to a Portfile in the main
 ports tree and it was fixed. But the problem still exists if the Portfile
 is not in the ports tree:

 {{{
 $ cd /tmp/icu
 $ ls
 Portfile        files
 $ sudo port -b install
 Error: Failed to archivefetch icu: Binary-only mode requested with no
 usable archive sites configured
 Error: See /opt/local/var/macports/logs/_private_tmp_icu/icu/main.log for
 details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port icu failed
 $
 }}}

 In this case, if I try without the `-b` flag, MacPorts unexpectedly tries
 to build from source:

 {{{
 $ sudo port install
 --->  Fetching distfiles for icu
 --->  Verifying checksums for icu
 --->  Extracting icu
 --->  Applying patches to icu
 --->  Configuring icu
 ^CError: Aborted: SIGINT received.
 }}}

 I don't want a build from source. I want the binary.

 Overwriting the Portfile in the main ports tree allows me to install the
 binary:

 {{{
 $ sudo cp Portfile $(port file icu)
 $ sudo cp files/* $(port dir icu)/files/
 $ sudo port -b install icu
 --->  Fetching archive for icu
 --->  Attempting to fetch icu-58.2_2.darwin_18.x86_64.tbz2 from
 http://packages.macports.org/icu
 --->  Attempting to fetch icu-58.2_2.darwin_18.x86_64.tbz2.rmd160 from
 http://packages.macports.org/icu
 --->  Installing icu @58.2_2
 --->  Deactivating icu @65.1_0
 --->  Cleaning icu
 --->  Activating icu @58.2_2
 --->  Cleaning icu
 }}}

 But it's dumb that I have to do that.

-- 
Ticket URL: <https://trac.macports.org/ticket/59463>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list