Opened 11 months ago
Closed 11 months ago
#68905 closed defect (invalid)
No coreutils on macOS 14.2?
Reported by: | jbaraban | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | coreutils |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
$ sudo port install coreutils Error: Port coreutils not found
Why is coreutils not available on Sonoma arm64? How can I fix this? Thanks.
Change History (8)
comment:1 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|
comment:2 follow-up: 5 Changed 11 months ago by jbaraban
Thanks - I still get the same error message after running that. Looking at its output though, I notice this:
Failed to parse file sysutils/coreutils/Portfile: invalid command name "<<<<<<<"
When I comment out 3 lines in the Portfile that have invalid characters like that (they look like git comments), then everything works.
comment:3 follow-up: 4 Changed 11 months ago by jmroot (Joshua Root)
Are you using a git checkout for your ports tree?
comment:4 Changed 11 months ago by jbaraban
How would I check, and should I be? I see some indications for rsync and some for git when I poke around in /opt/local.
I think I am - here is the end of sources.conf:
#rsync://rsync.macports.org/release/tarballs/ports.tar [default] file:///opt/local/var/macports/sources/github.com/macports/macports-ports/ [default]
If I recall correctly, that change was part of getting wine working on arm64. I'll try to go back to the default rsync.
Replying to jmroot:
Are you using a git checkout for your ports tree?
comment:5 follow-up: 6 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
Replying to jbaraban:
Thanks - I still get the same error message after running that. Looking at its output though, I notice this:
Failed to parse file sysutils/coreutils/Portfile: invalid command name "<<<<<<<"
If you were using rsync, the entire ports tree would get replaced every time you sudo port sync
(or selfupdate
), and our copy of that Portfile doesn't contain those characters, so since you have a different copy of that file you must be using git, and you must have edited that file manually to make some change, and when you later ran sudo port sync
(or selfupdate
) again the incoming changes conflicted with what you had changed before, resulting in git inserting those conflict markers for you to help you see what changes you made vs what changes we made. The solution, if you want to continue using git, is to edit that file and either resolve the conflict or just revert the changes you made to that file.
comment:6 follow-up: 7 Changed 11 months ago by jbaraban
Thanks - either way seems to work for coreutils, so this ticket seems resolved. At the moment I can't check that everything works properly because I'm stuck on the gobject-introspection issue (#68909) - any chance they're related?
Replying to ryandesign:
Replying to jbaraban:
Thanks - I still get the same error message after running that. Looking at its output though, I notice this:
Failed to parse file sysutils/coreutils/Portfile: invalid command name "<<<<<<<"If you were using rsync, the entire ports tree would get replaced every time you
sudo port sync
(orselfupdate
), and our copy of that Portfile doesn't contain those characters, so since you have a different copy of that file you must be using git, and you must have edited that file manually to make some change, and when you later ransudo port sync
(orselfupdate
) again the incoming changes conflicted with what you had changed before, resulting in git inserting those conflict markers for you to help you see what changes you made vs what changes we made. The solution, if you want to continue using git, is to edit that file and either resolve the conflict or just revert the changes you made to that file.
comment:7 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
comment:8 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Run
sudo port -d selfupdate