[MacPorts] #61719: PatchLocal wiki instructions fail to get distfile for new "arb-devel" port
MacPorts
noreply at macports.org
Tue Dec 1 23:56:31 UTC 2020
#61719: PatchLocal wiki instructions fail to get distfile for new "arb-devel" port
-----------------------+--------------------
Reporter: bernstei | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: wiki | Version:
Resolution: | Keywords:
Port: |
-----------------------+--------------------
Old description:
> I'm trying to follow the instructions in
> https://trac.macports.org/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 at 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?
New description:
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 at 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?
--
Comment (by ryandesign):
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.
--
Ticket URL: <https://trac.macports.org/ticket/61719#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list