Opened 4 years ago
Closed 4 years ago
#61760 closed defect (fixed)
Octave assumes gcc variant and port names are always the same
Reported by: | Isaacych | Owned by: | Chris Jones <jonesc@…> |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | cjones051073 (Chris Jones) | |
Port: | octave |
Description
After
sudo port install octave
Then I received the output
---> Computing dependencies for octave Error: Dependency 'gccdevel' not found.
I checked the port related to gccdevel. I found ports called libgcc-devel and gcc-devel. Could it possibly just a typo for the octave installation procedure? Is there any way to refer gccdevel to gcc-devel during installation?
The version I am trying to install is:
sudo port list octave
octave @5.2.0 math/octave
Thanks!
Change History (7)
comment:1 Changed 4 years ago by kencu (Ken)
comment:2 Changed 4 years ago by kencu (Ken)
Cc: | cjones051073 added |
---|
Young Christopher, your public beckons...
comment:3 Changed 4 years ago by kencu (Ken)
Keywords: | Octave removed |
---|---|
Port: | gcc-devel added; Octave removed |
Summary: | Octave dependency problem for Big Sur with apple silicon → compilers PG refers to nonexistent gccdevel |
comment:4 Changed 4 years ago by kencu (Ken)
well something is funny -- Chris had it one way, now changed it to this way, that seems broken <https://github.com/macports/macports-ports/commit/d9b5e26e2007f4e964983069da4a076e8e1196f9#diff-18ddf39afeaaff209d51f90863e28c1242959b72fdd895504f6485a300d18163>
We'll have to let him straighten it out, after a flurry of commits.
comment:5 Changed 4 years ago by cjones051073 (Chris Jones)
No, that change I made above is correct.
The line
set compilers.gcc_default gccdevel
sets the default 'variant' name, *not* the port name that that variant uses. The variant name is 'gccdevel' and the compiler port associated to that is 'gcc-devel'
The issue is previously the port name and variant name was always the same, and some ports had made the assumption this would always be the case. Octave is doing the same here and needs to be fixed to not do this.
See
where I added a method to the PG to access the correct port depends for a given fortran variant, and
which uses it.
Octave needs to do the same.
comment:6 Changed 4 years ago by cjones051073 (Chris Jones)
Port: | octave added; gcc-devel removed |
---|---|
Summary: | compilers PG refers to nonexistent gccdevel → Octave assumes gcc variant and port names are always the same |
comment:7 Changed 4 years ago by Chris Jones <jonesc@…>
Owner: | set to Chris Jones <jonesc@…> |
---|---|
Resolution: | → fixed |
Status: | new → closed |
uhhh -- yup, probably! Thanks. Typo.
<https://github.com/macports/macports-ports/blob/625eeb4906ebb1133e29f7ab13456324abb92af6/_resources/port1.0/group/compilers-1.0.tcl#L87>