Opened 9 years ago

Closed 8 years ago

#50870 closed defect (invalid)

Patching local portfile attempts to fetch from outside sources

Reported by: desertshadow@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.3.4
Keywords: Cc:
Port:

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

Following this guide, line by line, ends up with errors: wiki:howto/PatchLocal

When I get to the patching part, it tries to fetch from remote servers.

Here is the contents of /opt/local/etc/macports/sources.conf

file:///usr/local/ports
file:///Users/jonny/Projects/Active/macports/
rsync://rsync.macports.org/release/tarballs/ports.tar [defualt]
sh-3.2# port patch arb-devel
--->  Fetching distfiles for arb-devel
cd `port work arb-devel`

--->  Attempting to fetch arb-6.0.1-source.tgz from http://distfiles.macports.org/arb-devel
--->  Attempting to fetch arb-6.0.1-source.tgz from http://sea.us.distfiles.macports.org/macports/distfiles/arb-devel
--->  Attempting to fetch arb-6.0.1-source.tgz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/arb-devel
--->  Attempting to fetch arb-6.0.1-source.tgz from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/arb-devel
--->  Attempting to fetch arb-6.0.1-source.tgz from http://cjj.kr.distfiles.macports.org/arb-devel
--->  Attempting to fetch arb-6.0.1-source.tgz from http://nue.de.distfiles.macports.org/macports/distfiles/arb-devel
--->  Attempting to fetch arb-6.0.1-source.tgz from http://lil.fr.distfiles.macports.org/arb-devel
--->  Attempting to fetch arb-6.0.1-source.tgz from http://download.arb-home.de/release/arb-devel-6.0.1/
--->  Attempting to fetch arb-6.0.1-source.tgz from http://nou.nc.distfiles.macports.org/pub/macports/distfiles.macports.org/arb-devel
--->  Attempting to fetch arb-6.0.1-source.tgz from http://osl.no.distfiles.macports.org/arb-devel
--->  Attempting to fetch arb-6.0.1-source.tgz from http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/arb-devel
--->  Attempting to fetch arb-6.0.1-source.tgz from http://jog.id.distfiles.macports.org/macports/mpdistfiles/arb-devel
--->  Attempting to fetch arb-6.0.1-source.tgz from http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/arb-devel
--->  Attempting to fetch arb-6.0.1-source.tgz from http://jnb.za.distfiles.macports.org/distfiles/arb-devel
--->  Attempting to fetch arb-6.0.1-source.tgz from http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/arb-devel
--->  Attempting to fetch arb-6.0.1-source.tgz from http://svn.macports.org/repository/macports/distfiles/arb-devel
Error: org.macports.fetch for port arb-devel returned: fetch failed
Please see the log file for port arb-devel for details:
    /opt/local/var/macports/logs/_usr_local_ports_science_arb-devel/arb-devel/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port arb-devel failed
sh-3.2# cd `port work arb-devel`
sh-3.2# 

Change History (6)

comment:1 Changed 9 years ago by desertshadow@…

It won't let me edit my original ticket, but the correct contents are:

file:///usr/local/ports
file:///Users/jonny/Projects/Active/macports/
rsync://rsync.macports.org/release/tarballs/ports.tar [default]

comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Component: portsbase
Description: modified (diff)

That's true, MacPorts will try to fetch from remote servers even for local portfiles. What should MacPorts do instead?

comment:3 Changed 9 years ago by desertshadow@…

Perhaps I misunderstand, but file:///usr/local/ports includes all the files needed to build. It is also first in the list. I expect it will build using

file:///usr/local/ports

arb-devel doesn't exist on any remote servers, only locally. It is a new portfile.

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

sources.conf specifies where MacPorts will look for Portfiles and local patchfiles. The source code tarballs, however, will be downloaded from the location specified in the master_sites line in the Portfile.

comment:5 Changed 9 years ago by desertshadow@…

Ah, Perhaps this is not a problem then with macports, but with the tutorial on the macports website, for not mentioning to change the master_sites line in the port file.

comment:6 Changed 8 years ago by raimue (Rainer Müller)

Resolution: invalid
Status: newclosed

howto/PatchLocal is a wiki. If it needs changes, please just edit the page.

Note: See TracTickets for help on using tickets.