[MacPorts] #64913: vlang fails for PowerPC: -latomic flag needed, Header file <sys/errno.h>, needed for module `sync` was not found
MacPorts
noreply at macports.org
Sun Apr 10 09:45:52 UTC 2022
#64913: vlang fails for PowerPC: -latomic flag needed, Header file <sys/errno.h>,
needed for module `sync` was not found
---------------------------+-------------------------------------------
Reporter: barracuda156 | Owner: harens
Type: defect | Status: accepted
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: powerpc, leopard, snowleopard
Port: vlang |
---------------------------+-------------------------------------------
Comment (by harens):
Oh I know why this happened. It's because the line numbers are changing
when we remove lines from before. Here's the corrected version:
{{{#!bash
> sudo port extract vlang
> # Remove errno header
> sudo sed -i "" "10d" "$(port work
vlang)/v-weekly.2022.13/vlib/sync/sync_darwin.c.v"
> # Remove -no-pie flag
> sudo sed -i "" "252d" "$(port work
vlang)/v-weekly.2022.13/vlib/v/builder/cc.v"
> sudo sed -i "" "91227d" "$(port work vlang)/vc-
de63146da0a0f93628f8a65e70267e2c8d4c7ce1/v.c"
> # Remove Objective-C Flag
> sudo sed -i "" "334d" "$(port work
vlang)/v-weekly.2022.13/vlib/v/builder/cc.v"
> sudo sed -i "" "91300d" "$(port work vlang)/vc-
de63146da0a0f93628f8a65e70267e2c8d4c7ce1/v.c"
> sudo port -o install vlang
}}}
--
Ticket URL: <https://trac.macports.org/ticket/64913#comment:28>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list