Opened 3 years ago

Last modified 3 years ago

#61719 closed defect

PatchLocal wiki instructions fail to get distfile for new "arb-devel" port — at Version 2

Reported by: bernstei Owned by:
Priority: Normal Milestone:
Component: wiki Version:
Keywords: Cc:
Port:

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

I'm trying to follow the instructions in wiki:howto/PatchLocal to make a patch for grace (to fix the XmRegisterConverters issue). I can get through step 1, but the first item in step 2 "port patch grace-devel" doesn't work. It tries to download dist files for grace-devel-5.1.25.tar.gz from various mirrors, which obviously don't exist:

bernsteiadmin@vpn214062 ports % sudo port patch grace-devel
Portfile changed since last build; discarding previous state.
--->  Fetching distfiles for grace-devel
--->  Attempting to fetch grace-devel-5.1.25.tar.gz from https://ywg.ca.distfiles.macports.org/mirror/macports/distfiles/grace-devel
--->  Attempting to fetch grace-devel-5.1.25.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/grace-devel

I'm not sure how it's supposed to work - am I supposed to be making a local copy of the distfile, and that step is missing? Or does it need to be told that the dist files to download are still called "grace", but after the local patch has been applied the port should be named "grace-devel", and that step is missing?

Change History (2)

comment:1 Changed 3 years ago by bernstei

Summary: patch wiki instructions failPatchLocal wiki instructions fail to get distfile for new "arb-devel" port

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

Description: modified (diff)

I'm not sure why the wiki advises you to rename the port to have a "-devel" suffix. We usually use the "-devel" suffix for development versions, as opposed to most ports which are for stable versions. The default values of several variables in a portfile are based on its name, so if you change a port's name, that will also change what file it tries to download, unless you override it in the port. And of course ports depend on other ports by name. If you were trying to patch grace because it is a dependency of another port, your patched version will not satisfy the dependency if you've renamed it.

Note: See TracTickets for help on using tickets.